[opensuse-factory] New package safeeyes

Hi, SafeEyes program's package "safeeyes" just entered into openSUSE Factory. You can find it in Education repository too [1,2] where it is developed. Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer. It is a Free and Open Source Linux alternative for EyeLeo. Features: * Remind you to take breaks with exercises to reduce RSI * Disable keyboard during breaks * Notification before and after breaks * Smart pause if system is idle * Multi-screen support * Customizable user interface * RPC API to control externally * Command-line arguments to control the running instance * Customizable using plug-ins [1] https://software.opensuse.org/package/safeeyes [2] https://build.opensuse.org/package/show/Education/safeeyes -- Regards Mindaugas -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On Fri, 2020-09-25 at 18:03 +0300, opensuse.lietuviu.kalba wrote:
Hi,
SafeEyes program's package "safeeyes" just entered into openSUSE Factory. You can find it in Education repository too [1,2] where it is developed.
Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer. It is a Free and Open Source Linux alternative for EyeLeo. Features:
* Remind you to take breaks with exercises to reduce RSI * Disable keyboard during breaks * Notification before and after breaks * Smart pause if system is idle * Multi-screen support * Customizable user interface * RPC API to control externally * Command-line arguments to control the running instance * Customizable using plug-ins
[1] https://software.opensuse.org/package/safeeyes [2] https://build.opensuse.org/package/show/Education/safeeyes
--
Regards Mindaugas
I'm also running into issues running this. I have python3-pycairo installed, but I still see the following X11 error when trying to run it. If I execute safeeyes in the terminal I see the following stack trace. ``` $ safeeyes safeeyes Traceback (most recent call last): File "/usr/bin/safeeyes", line 11, in <module> load_entry_point('safeeyes==2.0.9', 'console_scripts', 'safeeyes')() File "/usr/lib/python3.8/site-packages/safeeyes/__main__.py", line 146, in main safe_eyes = SafeEyes(system_locale, config) File "/usr/lib/python3.8/site-packages/safeeyes/safeeyes.py", line 84, in __init__ self.break_screen = BreakScreen( File "/usr/lib/python3.8/site-packages/safeeyes/ui/break_screen.py", line 47, in __init__ self.display = Display() File "/usr/lib/python3.8/site-packages/Xlib/display.py", line 89, in __init__ self.display = _BaseDisplay(display) File "/usr/lib/python3.8/site-packages/Xlib/display.py", line 71, in __init__ protocol_display.Display.__init__(self, *args, **keys) File "/usr/lib/python3.8/site-packages/Xlib/protocol/display.py", line 166, in __init__ raise error.DisplayConnectionError(self.display_name, r.reason) Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'No protocol specified\n' ``` In the terminal I can use `xhost +` to temporarily give safeeyes access to the X server, but it would probably be better to set this up during installation, correct? It's not totally clear to me if this is a bug or a setup issue on my side. Cheers, Chris -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEypyALb6MxXrgd5XcPwesIdCOSFUFAl9xlvIACgkQPwesIdCO SFXhSg//YbwuIqvGcFqcmxZcBvs70VguslXEyToDJyCVAwBgoerdrdLibSJezdwG 5hhaoMuN5UBnfoIGRshi5igKBaymQMVrHLmLPfU+limiMPDT7hvlV/aFKSEgPWTB byz02erU5FoGpErZUo7kf2+VryCXm32qazVeYAouBl+fmqGN4f97FDLphr4M+5Wz iImzBTPbWqXsfWnGlnbImhS8XQUL8yQKEhayS8t7qKjkruTQ3OmJd0XdjlYyhbNd dZCe3bvnlQCzjTtz+C1YaLJ//BilLFroewEDWfDbiU8d+y7ZN/JDCGhx3fqze6gu J8RcbMqPGttXLpuFc6vDxhj0KL/qWcMiwRDf5BP5thsoYvCtIEyzcRpY+rVYn/Y8 z5BudQcQAmKk4x4TK3C2tPxhVFgdLw4Jyh2nD6s+0Q4/R9/T19zy950MKNkNkaDI 6+OI3o7NgyyrsB4vHzEqH+ZHPiKnIAUHLyxeKc6Srxz2znPQPFGp8oYnlIfFhPMT OQPJ872a80eSMrRtWGLhXfLf9KKRzjUvGMZi0hGo9Q80hQumLaVVV+Jm7p5CA+sX h3qJhENNq/Q/kYdCKimS2PbM9nqK5wZuU80eF6hLK0vXMPNQhZvp8qufOCoxVI/X RzI7zGiwXiO6puAD+9a0eFfz/cwuGm81irXhdfhamN9SduZPeCo= =iL+p -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

2020-09-28 10:55, Chris Coutinho rašė:
Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'No protocol specified\n'
Generally it is expected that user run it from desktop menu. I you open *.desktop file, you can see, that it uses this command to run: env GDK_BACKEND=x11 safeeyes -- Regards -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On Mon, 2020-09-28 at 11:01 +0300, opensuse.lietuviu.kalba wrote:
2020-09-28 10:55, Chris Coutinho rašė:
Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'No protocol specified\n'
Generally it is expected that user run it from desktop menu. I you open *.desktop file, you can see, that it uses this command to run:
env GDK_BACKEND=x11 safeeyes
--
Regards
When I run it via the desktop file it doesn't run, that's why I tried using the termainl and came across the traceback. Including the GDK_BACKEND=x11 env var doesn't help. If I execute `xhost +` then it works, but it appears that I have to do this manually after every reboot. Cheers -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEypyALb6MxXrgd5XcPwesIdCOSFUFAl9xmRkACgkQPwesIdCO SFWPVQ/+K6kMwkPkALm22aei6pQUHaOdjhDypgCA3e0zs9JT0M0ktDEediLMwrDB mQhyYANJunxtEvaydsKVmkj6Pszz1XdtepBiGHBqzlPGgbIP9RmaDXRMIKiPEtnR Nu6PHka26ohTMYtgdTQAC9b0F/22O4NAewxUm4lxGPq0dqDMADQctQQEXQbNbXoc azuwCxUSHS7BGyXcsGfKNzAfzvxXsO+R/HURsGI+oyHTDd+ZwobEA0s+zkpyruxl VYP2RmthsCuGO7LOAquuszR/E8aoMVEG55Gk6BAQ1pRhLB4t/XorgaBwrayjcLl1 6DiBYvVihSVIF/U2ZwaWb/Eejp+LpuPkvbSZrztN2/DnTYxpKFVs4S3Yla9XPzUg U3gEmR5XH8etAqvUfnJezTWT2y3GSCi6TC1dHlCmn+4XHjkZAmqVIW5hzK8THmsL DTNlAw9NqquKmL6493uvP3p0e32v4XWbanhfanObefAT3AE36d2IEEgF+Rw226sz Eg9sOe7eISRss9R1K97G1QF8v6xGcJ7yFu3NPtnp+XqtFyw5hS9cVYd8hEQHEPau tXO6oPS4Z5vlSAWaZ45KjJeiJXY/Hv25wEveWOWK3Ri1iOkaR09N9/aK+49vIObd bcJCV//VyjyUp+5PNS8EidRytLPfWMXg9ZhUGIoPRPXt0h4evPo= =+eIH -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

2020-09-28 11:04, Chris Coutinho rašė:
When I run it via the desktop file it doesn't run, that's why I tried using the termainl and came across the traceback. Including the GDK_BACKEND=x11 env var doesn't help.
If I execute `xhost +` then it works, but it appears that I have to do this manually after every reboot.
Cheers
Can you please open a bug and provide more details about your desktop configuration (e.g. are you using Wayland, is this only for this Python GUI program, or for others too)? -- Regards, Mindaugas -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (2)
-
Chris Coutinho
-
opensuse.lietuviu.kalba