File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,11 @@ def print_success(self, message: str) -> None:
61
61
self .button_widget .add_class ("-success" )
62
62
#print("Success: " + message) # For debugging
63
63
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
+
64
69
def print_info (self , message : str ) -> None :
65
70
# Print info message to the RichLog widget
66
71
self .log_widget .write ("[b bright_cyan]" + message )
@@ -155,6 +160,10 @@ def compile_libs(self) -> None:
155
160
self .print_error ("Please change the ownership of generated files manually" )
156
161
else :
157
162
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" )
158
167
else :
159
168
self .print_error ("Invalid permissions format: " + self .app .setting_output_permissions )
160
169
self .print_error ("Please change the ownership of generated files manually" )
Original file line number Diff line number Diff line change 18
18
# Check if the mount point /arduino-esp32 exists
19
19
if [ -d " /arduino-esp32" ] && [[ " $@ " == " python3 tools/config_editor/app.py" * ]]; then
20
20
# Running UI with mount point detected, adding -c and --output-permissions arguments
21
+ echo " Output folder permissions: ` stat -c " %u:%g" /arduino-esp32` "
21
22
exec " $@ " -c /arduino-esp32 --output-permissions ` stat -c " %u:%g" /arduino-esp32`
22
23
else
23
24
# Running UI without mount point detected or running another command
You can’t perform that action at this time.
0 commit comments