os.system executes the command in a subshell. The zenity command creates a pop up dialog. The sub shell has no idea of any desktops running.
When you run it manually in a terminal, your terminal knows of desktop environment (from .bashrc or .profile or wherever else it sets it up).
When you run it manually in a terminal, your terminal knows of desktop environment (from .bashrc or .profile or wherever else it sets it up).
Statistics: Posted by memjr — Mon Jun 03, 2024 5:39 pm