Skip to content

Commit cfe8da7

Browse files
committed
Add warning
1 parent 297b88b commit cfe8da7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tools/config_editor/compile.py

+9
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ def print_success(self, message: str) -> None:
6161
self.button_widget.add_class("-success")
6262
#print("Success: " + message) # For debugging
6363

64+
def print_warning(self, message: str) -> None:
65+
# Print warning message to the RichLog widget
66+
self.log_widget.write("[b bright_yellow]" + message)
67+
#print("Warning: " + message) # For debugging
68+
6469
def print_info(self, message: str) -> None:
6570
# Print info message to the RichLog widget
6671
self.log_widget.write("[b bright_cyan]" + message)
@@ -155,6 +160,10 @@ def compile_libs(self) -> None:
155160
self.print_error("Please change the ownership of generated files manually")
156161
else:
157162
self.print_success("Permissions changed successfully")
163+
elif self.app.setting_output_permissions == "0:0":
164+
self.print_warning("Permissions settings are set to root (0:0)")
165+
self.print_warning("Please change the ownership of generated files manually")
166+
self.print_warning("If you are compiling for Windows, you may ignore this warning")
158167
else:
159168
self.print_error("Invalid permissions format: " + self.app.setting_output_permissions)
160169
self.print_error("Please change the ownership of generated files manually")

tools/docker/entrypoint.sh

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ fi
1818
# Check if the mount point /arduino-esp32 exists
1919
if [ -d "/arduino-esp32" ] && [[ "$@" == "python3 tools/config_editor/app.py"* ]]; then
2020
# Running UI with mount point detected, adding -c and --output-permissions arguments
21+
echo "Output folder permissions: `stat -c "%u:%g" /arduino-esp32`"
2122
exec "$@" -c /arduino-esp32 --output-permissions `stat -c "%u:%g" /arduino-esp32`
2223
else
2324
# Running UI without mount point detected or running another command

0 commit comments

Comments
 (0)