slgobinath / SafeEyes

Protect your eyes from eye strain using this simple and beautiful, yet extensible break reminder
http://slgobinath.github.io/SafeEyes/
GNU General Public License v3.0
1.41k stars 159 forks source link

Correctly detect GNOME in screensaver plugin and in utility.py #546

Closed antoninkriz closed 2 days ago

antoninkriz commented 7 months ago

I'm using Manjaro with GNOME 44 and 45 on my computers.

GNOME can be represented also as gnome-xorg and not only as gnome.

Currently GNOME isn't properly recognized, thus the locking screen feature is broken.

I added desktop_session.startswith('gnome') to detect possible GNOME sessions in utility.py and in the screensaver plugin.