Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1225

Python • Re: Waveshare UPS battery monitoring script - help needed

$
0
0
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).

Statistics: Posted by memjr — Mon Jun 03, 2024 5:39 pm



Viewing all articles
Browse latest Browse all 1225

Trending Articles