![]() |
Python3: detect we're on Fremantle, Harmattan, SailfishOS
In C++ w/ Qt we'd use
Code:
int foo() { |
Re: Python3: detect we're on Fremantle, Harmattan, SailfishOS
Maybe something in platform? Sailfish below, I don't know what others return.
Code:
$ python3 And in case you're calling executables like notify-send, you can check if they're available with shutil.which. |
Re: Python3: detect we're on Fremantle, Harmattan, SailfishOS
Quote:
That's what I thought about, but it's the last resort. I didn't find anything useful in the platform module. Basically, I use the Python example from here [1] to show the notification on desktop. Since libnotify is unavailable, I guess I'll use a dbus call on Fremantle. |
All times are GMT. The time now is 07:24. |
vBulletin® Version 3.8.8