Commit Graph

17 Commits

Author SHA1 Message Date
Tero Paloheimo d1eadd380d Remove use of distutils
As of Python 3.12 setuptools is no longer installed by default and
if setuptools is not installed distutils is not found and SafeEyes
fails to start.

Furthermore distutils is deprecated and should thus not be used
anymore. The packaging module provides a replacement for LooseVersion
and it is added in this commit.
2023-12-30 19:42:32 +02:00
Alyssa Rosenzweig 777d48603d
Fix with python3.12 (#544)
imp is deprecated in 3.4 and removed in 3.12. this caused safe eyes to
break on upgrading to fedora 39

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
2023-11-30 18:01:58 +00:00
akhil_s 776a8b81de Fix 'initialize_logging' function spelling 2023-10-16 10:17:56 -04:00
Ilario Gelmetti 5a993a4d60
Fix broken startup symlinks (#531)
* utility: create_startup_entry check link health

* model: init always run create_startup_entry

* utility: initialize_safeeyes don't call create_startup_entry

* utility: add force option to create_startup_entry

* model: do not create autostart, only repair broken

* utility: fix comment
2023-08-18 11:15:30 -04:00
Onur Alp Akin 684d16265a
Reverse-DNS scheme for icons & Broken initialize logic fix & Add appstream (#519)
* Add appstream

* rename platform files reverse-dns format

* rename debian install file reverse-dns format

* rename usages reverse-dns format

* Respect XDG_CONFIG while initializing safeeyes

Instead of using custom variable to define target; Continue respecting XDG specs
https://github.com/slgobinath/SafeEyes/issues/432#issuecomment-883829334

* move appstream under platform

* add flathub badge

* update flathub badge & flatpak installation
2023-05-10 05:45:38 -04:00
Sebastian Pipping 06d8f491c4
Fix support for Python 3.11 (fixes #491) (#505)
Co-authored-by: tibequadorian <tibequadorian@posteo.de>
2023-04-17 20:06:11 -04:00
Anjan Momi dd16395471
Check if using wayland via WAYLAND_DISPLAY env variable (#484)
My distro does not install loginctl. I have implemented another easy
condition for wayland.

https://stackoverflow.com/questions/45536141/how-i-can-find-out-if-a-linux-system-uses-wayland-or-x11/45537237#45537237
2022-10-13 11:52:47 -04:00
Ankit Raj Pandey ad041c7855
Add smartpause support for swaywm (#464)
If the current desktop environment is sway, the smartpause plugin will
spawn a swayidle process that outputs the current time on idle and
resume. Using that info, we can determine:

1. Whether the system is currently idle (idle timestamp > active timestamp)
2. How many seconds the system has been idle (current timestamp - idle timestamp)

Since swayidle uses the KDE idle protocol, it might be possible to
extend this to Wayland KDE as well.
2021-09-29 07:53:08 -04:00
Gobinath e90d71f9db Create startup entry only at the first time or if Safe Eyes is reset 2021-01-10 21:39:39 -05:00
Gobinath a51ff8bff0
Fix icons and desktop file installation (#408) 2020-12-31 08:34:27 -05:00
Gobinath 12b2b0b2a4 Create desktop entries from the code 2020-12-25 19:22:57 -05:00
Gobinath 25f4aa626f Add cron expression to reset health stats 2020-12-20 10:06:34 -05:00
Serhii Khoma 4939d1ff6c
fix(#402): fix config files cannot be written if copied from /nix/store (#403) 2020-12-20 09:25:30 -05:00
Gobinath 2736321048
Reset breaks after being idle longer than a long break duration (#386) 2020-10-25 08:44:29 -04:00
Gobinath 33f744f21c Fix UnknownLocaleError thrown from babel 2020-07-08 18:35:51 -04:00
Gobinath 9128e8b1fb Refactor the plugin_manager.py 2020-04-15 17:52:14 -04:00
Gobinath 5c554fffc1 Refactor modules and classes 2020-03-18 08:33:11 -04:00