diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 537b9599..21d947f4 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -30,7 +30,7 @@ jobs: - name: Install OS dependencies run: | sudo apt-get update -yy - sudo apt-get install -yy --no-install-recommends libcairo2-dev libgirepository-2.0-dev gir1.2-gtk-4.0 + sudo apt-get install -yy --no-install-recommends libwayland-dev libcairo2-dev libgirepository-2.0-dev gir1.2-gtk-4.0 - run: uv pip install -r pyproject.toml - run: uv pip install --group tests - run: pytest diff --git a/README.md b/README.md index fdf49e6f..31ab631a 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,6 @@ Ensure to meet the following dependencies: - python3-babel - python3-croniter - python3-gi -- python3-psutil - python3-packaging - python3-xlib - python3-pywayland (optional for KDE/other wayland) @@ -191,7 +190,6 @@ This method has the same caveats about icons/window icons as running from source - 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 diff --git a/debian/control b/debian/control index f1d02bee..e81d1d82 100644 --- a/debian/control +++ b/debian/control @@ -16,7 +16,6 @@ Depends: ${misc:Depends}, ${python3:Depends}, x11-utils, xprintidle, alsa-utils, - python3-psutil, python3-croniter, python3-packaging, gir1.2-notify-0.7, diff --git a/pyproject.toml b/pyproject.toml index f829466d..1b2c0505 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,6 @@ dependencies = [ "pywayland", "PyGObject", "babel", - "psutil", "packaging", "python-xlib", ] @@ -65,7 +64,6 @@ types = [ "mypy==1.15.0", "PyGObject-stubs==2.13.0", "types-croniter==5.0.1.20250322", - "types-psutil==7.0.0.20250218", "types-python-xlib==0.33.0.20240407", {include-group = "tests"}, ] diff --git a/safeeyes/__main__.py b/safeeyes/__main__.py index fe5c9e28..53e0a08e 100755 --- a/safeeyes/__main__.py +++ b/safeeyes/__main__.py @@ -20,140 +20,22 @@ your eyes from eye strain. """ -import argparse -import logging import signal import sys -import psutil -from safeeyes import utility, translations -from safeeyes.translations import translate as _ +from safeeyes import translations from safeeyes.model import Config from safeeyes.safeeyes import SafeEyes -from safeeyes.safeeyes import SAFE_EYES_VERSION -from safeeyes.rpc import RPCClient - - -def __running(): - """Check if SafeEyes is already running.""" - process_count = 0 - current_user = psutil.Process().username() - for proc in psutil.process_iter(): - if not proc.cmdline: - continue - try: - # Check if safeeyes is in process arguments - if callable(proc.cmdline): - # Latest psutil has cmdline function - cmd_line = proc.cmdline() - else: - # In older versions cmdline was a list object - cmd_line = proc.cmdline - if ("python3" in cmd_line[0] or "python" in cmd_line[0]) and ( - "safeeyes" in cmd_line[1] or "safeeyes" in cmd_line - ): - if proc.username() == current_user: - process_count += 1 - if process_count > 1: - return True - - # Ignore if process does not exist or does not have command line args - except (IndexError, psutil.NoSuchProcess): - pass - return False def main(): """Start the Safe Eyes.""" system_locale = translations.setup() - parser = argparse.ArgumentParser(prog="safeeyes") - group = parser.add_mutually_exclusive_group() - group.add_argument( - "-a", "--about", help=_("show the about dialog"), action="store_true" - ) - group.add_argument( - "-d", - "--disable", - help=_("disable the currently running safeeyes instance"), - action="store_true", - ) - group.add_argument( - "-e", - "--enable", - help=_("enable the currently running safeeyes instance"), - action="store_true", - ) - group.add_argument( - "-q", - "--quit", - help=_("quit the running safeeyes instance and exit"), - action="store_true", - ) - group.add_argument( - "-s", "--settings", help=_("show the settings dialog"), action="store_true" - ) - group.add_argument( - "-t", "--take-break", help=_("Take a break now").lower(), action="store_true" - ) - parser.add_argument( - "--debug", help=_("start safeeyes in debug mode"), action="store_true" - ) - parser.add_argument( - "--status", - help=_("print the status of running safeeyes instance and exit"), - action="store_true", - ) - parser.add_argument( - "--version", action="version", version="%(prog)s " + SAFE_EYES_VERSION - ) - args = parser.parse_args() - - # Initialize the logging - utility.initialize_logging(args.debug) - utility.initialize_platform() config = Config.load() - utility.cleanup_old_user_stylesheet() - if __running(): - logging.info("Safe Eyes is already running") - if not config.get("use_rpc_server", True): - # RPC sever is disabled - print( - _( - "Safe Eyes is running without an RPC server. Turn it on to use" - " command-line arguments." - ) - ) - sys.exit(0) - return - rpc_client = RPCClient(config.get("rpc_port")) - if args.about: - rpc_client.show_about() - elif args.disable: - rpc_client.disable_safeeyes() - elif args.enable: - rpc_client.enable_safeeyes() - elif args.settings: - rpc_client.show_settings() - elif args.take_break: - rpc_client.take_break() - elif args.status: - print(rpc_client.status()) - elif args.quit: - rpc_client.quit() - else: - # Default behavior is opening settings - rpc_client.show_settings() - sys.exit(0) - else: - if args.status: - print(_("Safe Eyes is not running")) - sys.exit(0) - elif not args.quit: - logging.info("Starting Safe Eyes") - safe_eyes = SafeEyes(system_locale, config, args) - safe_eyes.start() + safe_eyes = SafeEyes(system_locale, config) + safe_eyes.run(sys.argv) if __name__ == "__main__": diff --git a/safeeyes/config/locale/ar/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/ar/LC_MESSAGES/safeeyes.po index 6fb9f859..84747bc8 100644 --- a/safeeyes/config/locale/ar/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/ar/LC_MESSAGES/safeeyes.po @@ -87,12 +87,6 @@ msgstr "أظهر حالة برنامج safeeyes المشتغل حاليا و أ msgid "Safe Eyes is not running" msgstr "SafeEyes لا يعمل" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "يعمل Safe Eyes الآن دون خادوم RPC. شغِّله لكي تستعمل معطيات سطر الأوامر." - # About dialog msgid "Close" msgstr "أغلق" @@ -160,14 +154,6 @@ msgstr "مكّن تأخير الاستراحات" msgid "Persist the internal state" msgstr "ثبّت الحالة الداخلية" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "استعمل خادوم RPC لاستقبال الأوامر في وقت التشغيل" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "قد لا تعمل أوامر سطر الأوامر من غير خادوم RPC" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "الاستراحات الطويلة يجب أن تكون من مضاعفات مدة الاستراحات القصيرة" @@ -603,6 +589,15 @@ msgstr "" "تم العثور على ورقة الأنماط القديمة في '%(old)s'، تم تجاهلها. بالنسبة للأنماط " "المخصصة، قم بإنشاء ورقة أنماط جديدة في '%(new)s' بدلاً من ذلك." +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "أغلق عينيك بشدّة" diff --git a/safeeyes/config/locale/bg/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/bg/LC_MESSAGES/safeeyes.po index 59668f80..b211b0ab 100644 --- a/safeeyes/config/locale/bg/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/bg/LC_MESSAGES/safeeyes.po @@ -85,12 +85,6 @@ msgstr "" msgid "Safe Eyes is not running" msgstr "" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" - # About dialog msgid "Close" msgstr "Затваряне" @@ -158,14 +152,6 @@ msgstr "" msgid "Persist the internal state" msgstr "" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -583,6 +569,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Затворете плътно очи" diff --git a/safeeyes/config/locale/bn/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/bn/LC_MESSAGES/safeeyes.po index 42ad89c0..9d8894f0 100644 --- a/safeeyes/config/locale/bn/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/bn/LC_MESSAGES/safeeyes.po @@ -85,12 +85,6 @@ msgstr "" msgid "Safe Eyes is not running" msgstr "Safe Eyes চলছে না" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" - # About dialog msgid "Close" msgstr "" @@ -158,14 +152,6 @@ msgstr "" msgid "Persist the internal state" msgstr "" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -582,3 +568,12 @@ msgid "" "Old stylesheet found at '%(old)s', ignoring. For custom styles, create a new " "stylesheet in '%(new)s' instead." msgstr "" + +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" diff --git a/safeeyes/config/locale/ca/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/ca/LC_MESSAGES/safeeyes.po index 4d65e38f..e59426d0 100644 --- a/safeeyes/config/locale/ca/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/ca/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "Mostra l'estat de la instància de safeeyes en funcionament i surt" msgid "Safe Eyes is not running" msgstr "Safe Eyes no s'està executant" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes s'està executant sense un servidor RPC. Engegueu-lo per usar els " -"arguments de la línia d'ordres." - # About dialog msgid "Close" msgstr "Tanca" @@ -163,17 +155,6 @@ msgstr "Permet posposar les pauses" msgid "Persist the internal state" msgstr "Persisteix l'estat intern" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "" -"Empra el servidor RPC per a rebre els comandaments del temps d'execució" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "" -"Sense el servidor RPC, és possible que les ordres a la línia d'ordres no " -"funcionin" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -602,6 +583,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Tanqueu fortament els ulls" diff --git a/safeeyes/config/locale/cs/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/cs/LC_MESSAGES/safeeyes.po index 91df2e9b..339518e5 100644 --- a/safeeyes/config/locale/cs/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/cs/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "Popis argumentu příkazového řádku" msgid "Safe Eyes is not running" msgstr "Stavová zpráva" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes je spuštěné s tím, že RPC server je vypnutý. Aby bylo možné " -"používat argumenty příkazového řádku, je třeba RPC server zapnout." - # About dialog msgid "Close" msgstr "Zavřít" @@ -162,14 +154,6 @@ msgstr "Umožnit přeskakování přestávek" msgid "Persist the internal state" msgstr "Zachovat vnitřní stav" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Použít RPC server pro obdržení příkazů za chodu" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "Bez RPC serveru, argumenty na příkazovém řádku nemusí fungovat" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "Je třeba, aby dlouhé přestávky byly násobkem krátkých přestávek" @@ -599,6 +583,15 @@ msgstr "" "Starý soubor stylů nalezen na adrese '%(old)s', ignorování. Pro vlastní " "styly vytvořte místo toho nový soubor stylů v '%(new)s'." +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Zavřete oči" diff --git a/safeeyes/config/locale/da/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/da/LC_MESSAGES/safeeyes.po index a2178548..87f8ba7c 100644 --- a/safeeyes/config/locale/da/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/da/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "print status for at køre Safe Eyes instans og afslut" msgid "Safe Eyes is not running" msgstr "Safe Eyes kører ikke" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes kører med RPC-server deaktiveret. Aktivér RPC-serveren for at " -"bruge kommandolinjeargumenter." - # About dialog msgid "Close" msgstr "Luk" @@ -160,14 +152,6 @@ msgstr "Tillad at udskyde pauser" msgid "Persist the internal state" msgstr "Fortsætter i interntilstand" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Brug RPC-server til at modtage runtime-kommandoer" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "Uden RPC-serveren fungerer kommandolinjekommandoer muligvis ikke" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -586,6 +570,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Luk øjnene tæt" diff --git a/safeeyes/config/locale/de/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/de/LC_MESSAGES/safeeyes.po index cfc3abe4..f05c6024 100644 --- a/safeeyes/config/locale/de/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/de/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "Status der laufenden SafeEyes-Instanz ausgeben und beenden" msgid "Safe Eyes is not running" msgstr "Safe Eyes wird nicht ausgeführt" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes läuft ohne RPC-Server. Aktivieren Sie ihn, um Kommandozeilen-" -"Befehle nutzen zu können." - # About dialog msgid "Close" msgstr "Schließen" @@ -163,15 +155,6 @@ msgstr "Aufschieben von Pausen zulassen" msgid "Persist the internal state" msgstr "Internen Zustand beibehalten" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "" -"RPC-Server benutzen, um Befehle während der Laufzeit empfangen zu können" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "Ohne RPC-Server könnten Kommandozeilen-Befehle nicht funktionieren" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -606,6 +589,15 @@ msgstr "" "Altes Stylesheet unter '%(old)s' gefunden, wird ignoriert. Erstelle " "stattdessen für eigene Styles ein neues Stylesheet in '%(new)s'." +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Augen fest schließen" diff --git a/safeeyes/config/locale/en_US/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/en_US/LC_MESSAGES/safeeyes.po index 9317118b..564143d9 100644 --- a/safeeyes/config/locale/en_US/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/en_US/LC_MESSAGES/safeeyes.po @@ -86,14 +86,6 @@ msgstr "print the status of running safeeyes instance and exit" msgid "Safe Eyes is not running" msgstr "Safe Eyes is not running" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." - # About dialog msgid "Close" msgstr "Close" @@ -163,14 +155,6 @@ msgstr "Allow postponing breaks" msgid "Persist the internal state" msgstr "Persist the internal state" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Use RPC server to receive runtime commands" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "Without the RPC server, command-line commands may not work" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "Long break interval must be a multiple of short break interval" @@ -588,6 +572,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Tightly close your eyes" diff --git a/safeeyes/config/locale/eo/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/eo/LC_MESSAGES/safeeyes.po index bb50c699..57adffe9 100644 --- a/safeeyes/config/locale/eo/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/eo/LC_MESSAGES/safeeyes.po @@ -86,14 +86,6 @@ msgstr "montri la staton de la rulanta apero de safeeyes kaj eliri" msgid "Safe Eyes is not running" msgstr "Safe Eyes nun ne rulas" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes estas rulanta sen RPC-servilo. Ŝaltu ĝin por uzi komandliniajn " -"argumentojn." - # About dialog msgid "Close" msgstr "Malfemi" @@ -161,14 +153,6 @@ msgstr "Lasi prokrasti paŭzojn" msgid "Persist the internal state" msgstr "Daŭri la internan staton" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Uzi RPC-servilon por ricevi rultempajn komandojn" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "Sen la RPC-servilo, komandliniaj komandoj eble ne funkcias" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "Longa paŭza intertempo devas esti oblo de mallonga paŭza intertempo" @@ -588,6 +572,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Streĉe malfermu viajn okulojn" diff --git a/safeeyes/config/locale/es/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/es/LC_MESSAGES/safeeyes.po index 21bb9444..f4d577fc 100644 --- a/safeeyes/config/locale/es/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/es/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "mostrar el estado del ejemplar de safeeyes en ejecución y salir" msgid "Safe Eyes is not running" msgstr "Safe Eyes no se está ejecutando" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes está funcionando sin un servidor RPC. Actívelo para usar " -"argumentos de línea de órdenes." - # About dialog msgid "Close" msgstr "Cerrar" @@ -162,16 +154,6 @@ msgstr "Permitir posponer los descansos" msgid "Persist the internal state" msgstr "Estado interno persistente" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Utilizar el servidor RPC para recibir órdenes en tiempo de ejecución" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "" -"Sin el servidor RPC, las órdenes ejecutadas en el terminal pueden no " -"funcionar" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -601,6 +583,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Cierre fuertemente los ojos" diff --git a/safeeyes/config/locale/et/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/et/LC_MESSAGES/safeeyes.po index 5e84f729..214eac38 100644 --- a/safeeyes/config/locale/et/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/et/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "väljasta hetkel töötava safeeyes instantsi staatus ja välju" msgid "Safe Eyes is not running" msgstr "Safe Eyes ei tööta hetkel" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes töötab RPC serverita. Käsurea parameetrite kasutamiseks lülita ta " -"sisse." - # About dialog msgid "Close" msgstr "Sulge" @@ -162,14 +154,6 @@ msgstr "Pauside edasilükkamine lubatud" msgid "Persist the internal state" msgstr "Sisemise seisundi säilitamine" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Kasuta RPC serverit käitusaja käskude vastuvõtuks" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "Käsurea parameetrid ei pruugi töötada RPC serverita" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "Pika pausi intervall peab olema lühikese pausi pikkuse kordne" @@ -593,6 +577,15 @@ msgstr "" "Vana ja eiratav laaditabel leidub siin: „%(old)s“. Kui tahad välimust oma " "käe järgi sättida, siis tee laaditabel pigem siia: „%(new)s“." +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Sulge silmad" diff --git a/safeeyes/config/locale/eu/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/eu/LC_MESSAGES/safeeyes.po index e5330989..7b474dc4 100644 --- a/safeeyes/config/locale/eu/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/eu/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "inprimatu uneko safeeyes instantziaren egoera eta irten" msgid "Safe Eyes is not running" msgstr "Safe Eyes ez dago martxan" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"RPC zerbitzaririk gabe ari da exekutatzen Safe Eyes. Piztu zerbitzaria " -"komando-lerroko argumentuak erabiltzeko." - # About dialog msgid "Close" msgstr "Itxi" @@ -162,15 +154,6 @@ msgstr "Baimendu etenaldiak atzeratzea" msgid "Persist the internal state" msgstr "Eutsi barruko egoerari" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Erabili RPC zerbitzaria exekuzio-denboraren komanduak jasotzeko" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "" -"RPC zerbitzaririk gabe, komandu-lineako komanduek ez dute funtzionatuko" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -593,6 +576,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Itxi begiak indarrez" diff --git a/safeeyes/config/locale/fa/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/fa/LC_MESSAGES/safeeyes.po index b171ef78..ee8dd2f5 100644 --- a/safeeyes/config/locale/fa/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/fa/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "چاپ وضعیت نمونهٔ محافظ چشم در جال اجرا و msgid "Safe Eyes is not running" msgstr "محافظ چشم اجرا نمی‌شود" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"محافظ چشم دارد بدون کارساز RPC اجرا می‌شود. برای استفاده از آرگومان‌های خط " -"فرمان، روشنش کنید." - # About dialog msgid "Close" msgstr "بستن" @@ -162,14 +154,6 @@ msgstr "اجازه به تعویق استراحت‌ها" msgid "Persist the internal state" msgstr "ادامه وضعیت داخلی" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "استفاده از کارساز RPC برای دریافت دستورات زمان اجرا" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "بدون کارساز RPC ممکن است دستورات خط فرمان نکنند" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "دورهٔ استراحت طولانی باید مضربی از دوره‌های استراحت کوتاه باشد" @@ -589,6 +573,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "محکم چشمانتان را ببندید" diff --git a/safeeyes/config/locale/fr/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/fr/LC_MESSAGES/safeeyes.po index 5156a3ad..8573921d 100644 --- a/safeeyes/config/locale/fr/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/fr/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "imprimer l’état de l’instance safeeyes en cours et fermer" msgid "Safe Eyes is not running" msgstr "Safe Eyes n’est pas en fonction" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes est en fonction alors que le serveur RPC est désactivé. Activez le " -"serveur RPC afin d’utiliser des arguments en ligne de commande." - # About dialog msgid "Close" msgstr "Fermer" @@ -163,16 +155,6 @@ msgstr "Permettre le report des pauses" msgid "Persist the internal state" msgstr "Conserver l’état interne" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Utiliser le serveur RPC pour recevoir des commandes d’exécution" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "" -"Sans le serveur RPC, les commandes en ligne de commande pourraient ne pas " -"fonctionner" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -604,6 +586,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Fermez bien vos yeux" diff --git a/safeeyes/config/locale/he/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/he/LC_MESSAGES/safeeyes.po index cf04daaa..72b7292d 100644 --- a/safeeyes/config/locale/he/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/he/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "print the status of running safeeyes instance and exit" msgid "Safe Eyes is not running" msgstr "הגנה על העיניים אינה פעילה" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"הגנה על העיניים מופעלת ללא שרת RPC. יש להפעיל אותו כדי להשתמש במשתנים משורת " -"הפקודה." - # About dialog msgid "Close" msgstr "סגירה" @@ -160,14 +152,6 @@ msgstr "לאפשר לעכב הפסקות" msgid "Persist the internal state" msgstr "לשמור על המצב הפנימי" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "להשתמש בשרת RPC כדי לקבל פקודות זמן ריצה" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "ללא שרת RPC, פקודות שורת פקודה עשויות לא לעבוד" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "הפרש ארוך בין הפסקות חייב להיות מכפלות של הפרש קצר בין הפסקות" @@ -587,6 +571,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "לעצום עיניים היטב" diff --git a/safeeyes/config/locale/hi/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/hi/LC_MESSAGES/safeeyes.po index 913a738f..7ca23fdc 100644 --- a/safeeyes/config/locale/hi/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/hi/LC_MESSAGES/safeeyes.po @@ -85,12 +85,6 @@ msgstr "सेफ आईज दृष्टांत स्थिति को msgid "Safe Eyes is not running" msgstr "सेफ आईज नहीं चल रहा है" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" - # About dialog msgid "Close" msgstr "बंद करें" @@ -158,14 +152,6 @@ msgstr "ब्रेक स्थगित करने की अनुमत msgid "Persist the internal state" msgstr "आंतरिक अवस्था को जारी रखें" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "लम्बी ब्रेक अंतराल लघु ब्रेक अंतराल के एक बहुमान होना चाहिए" @@ -583,6 +569,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "कसकर अपनी आँखें बंद करें" diff --git a/safeeyes/config/locale/hu/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/hu/LC_MESSAGES/safeeyes.po index 82ae9b67..b7dcb913 100644 --- a/safeeyes/config/locale/hu/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/hu/LC_MESSAGES/safeeyes.po @@ -85,12 +85,6 @@ msgstr "" msgid "Safe Eyes is not running" msgstr "" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" - # About dialog msgid "Close" msgstr "Bezárás" @@ -158,14 +152,6 @@ msgstr "Engedi a pihenők elhalasztását" msgid "Persist the internal state" msgstr "Belső állapot elmentése" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "Hosszú pihenő fel kell legyen bontva több kicsire" @@ -585,6 +571,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Szorosan csukd be a szemed" diff --git a/safeeyes/config/locale/id/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/id/LC_MESSAGES/safeeyes.po index dad8450a..6c619b24 100644 --- a/safeeyes/config/locale/id/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/id/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "cetak status menjalankan instance safeeyes dan keluar" msgid "Safe Eyes is not running" msgstr "Safe Eyes tidak berjalan" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes berjalan tanpa server RPC. Aktifkan untuk menggunakan command-line " -"arguments." - # About dialog msgid "Close" msgstr "Tutup" @@ -160,14 +152,6 @@ msgstr "Izinkan penundaan istirahat" msgid "Persist the internal state" msgstr "Pertahankan kondisi internal" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Gunakan server RPC untuk menerima perintah runtime" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "Tanpa server RPC, perintah command-line mungkin tidak akan berfungsi" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -588,6 +572,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Tutup rapat matamu" diff --git a/safeeyes/config/locale/it/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/it/LC_MESSAGES/safeeyes.po index b64f2a49..05ae2fac 100644 --- a/safeeyes/config/locale/it/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/it/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "stampa lo stato di esecuzione di Safe Eyes ed esci" msgid "Safe Eyes is not running" msgstr "Safe Eyes non è avviato" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes è in esecuzione senza un server RPC. Apri Safe Eyes per utilizzare " -"la linea di comando." - # About dialog msgid "Close" msgstr "Chiudi" @@ -163,15 +155,6 @@ msgstr "Consenti di posporre le pause" msgid "Persist the internal state" msgstr "Persistenza dello stato interno" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Utilizza il server RPC per ricevere i comandi" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "" -"Senza il server RPC, i comandi a riga di comando non possono funzionare" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -601,6 +584,15 @@ msgstr "" "Vecchio foglio di stile trovato in '%(old)s', ignorando. Per stili " "personalizzati, crea un nuovo foglio di stile in %(new)s invece." +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Strizza gli occhi" diff --git a/safeeyes/config/locale/kn/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/kn/LC_MESSAGES/safeeyes.po index 4cf68d65..95dfd80f 100644 --- a/safeeyes/config/locale/kn/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/kn/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "ಚಾಲನೆಯಲ್ಲಿರುವ ಸೇಫ್ಐಸ್ ಸ್ಥ msgid "Safe Eyes is not running" msgstr "ಸೇಫ್‌ಐಸ್ ನೆಡುಯುತ್ತಿಲ್ಲ" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"RPC ಸರ್ವರ್ ಇಲ್ಲದೆ ಸೇಫ್ಐಸ್ ಚಾಲನೆಯಲ್ಲಿದೆ. ಕಮಾಂಡ್ ಲೈನ್ ಆರ್ಗ್ಯುಮೆಂಟ್‌ಗಳನ್ನು ಬಳಸಲು ಅದನ್ನು ಆನ್ " -"ಮಾಡಿ." - # About dialog msgid "Close" msgstr "ಮುಚ್ಚಿರಿ" @@ -160,14 +152,6 @@ msgstr "" msgid "Persist the internal state" msgstr "" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -582,6 +566,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "ಕಣ್ಣನ್ನು ಗಟ್ಟಿಯಾಗಿ ಮುಚ್ಚಿರಿ" diff --git a/safeeyes/config/locale/ko/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/ko/LC_MESSAGES/safeeyes.po index 6f0b10c4..509b0973 100644 --- a/safeeyes/config/locale/ko/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/ko/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "실행 중인 세이프아이즈 객체를 종료하고 상태 출력" msgid "Safe Eyes is not running" msgstr "세이프 아이즈가 실행 중이 아닙니다" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"세이프 아이즈가 RPC 서버없이 실행 중입니다. 명령줄 인수를 사용하려면 켜주세" -"요." - # About dialog msgid "Close" msgstr "닫기" @@ -160,14 +152,6 @@ msgstr "휴식 미루기 허용" msgid "Persist the internal state" msgstr "내부 상태 유지" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "RPC 서버를 사용해 런타임 명령 수신" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "RPC 서버가 없으면 명령줄 명령이 작동하지 않을 수 있습니다" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "긴 휴식 기간은 짧은 휴식 기간의 배수여야 합니다" @@ -582,6 +566,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "눈을 꼭 감으세요" diff --git a/safeeyes/config/locale/lt/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/lt/LC_MESSAGES/safeeyes.po index d7978a81..97940936 100644 --- a/safeeyes/config/locale/lt/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/lt/LC_MESSAGES/safeeyes.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (" -"n%100<10 || n%100>=20) ? 1 : 2);\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"(n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Weblate 5.12.1\n" # Short break @@ -86,14 +86,6 @@ msgstr "išvesti paleisto safeeyes egzemplioriaus būseną ir išeiti" msgid "Safe Eyes is not running" msgstr "Safe Eyes nėra paleista" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes veikia be RPC serverio. Įjunkite jį norėdami naudoti komandų " -"eilutės argumentus." - # About dialog msgid "Close" msgstr "Užverti" @@ -163,14 +155,6 @@ msgstr "Leisti atidėti pertraukas" msgid "Persist the internal state" msgstr "Išlaikyti vidinę būseną" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Naudoti RPC serverį, siekiant gauti vykdymo aplinkos komandas" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "Be RPC serverio, komandų eilutės komandos gali neveikti" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -600,6 +584,15 @@ msgstr "" "Rastas senas stilių aprašas ties „%(old)s“, jo nepaisoma. Norėdami naudoti " "tinkintus stilius, vietoj jo, sukurkite naują stilių aprašą ties „%(new)s“." +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Stipriai užsimerkite" diff --git a/safeeyes/config/locale/lv/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/lv/LC_MESSAGES/safeeyes.po index 9e64f275..25e3915b 100644 --- a/safeeyes/config/locale/lv/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/lv/LC_MESSAGES/safeeyes.po @@ -71,12 +71,6 @@ msgstr "drukāt darbojošās safeeyes instances statusu un iziet" msgid "Safe Eyes is not running" msgstr "Safe Eyes nav palaists" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" - msgid "Close" msgstr "Aizvērt" @@ -132,14 +126,6 @@ msgstr "Ļaut atlikt pārtraukumus" msgid "Persist the internal state" msgstr "Saglabāt iekšējo stāvokli" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "" - msgid "Long break interval must be a multiple of short break interval" msgstr "Garā pārtraukuma laikam jādalās ar īsā pārtraukuma laiku" @@ -502,6 +488,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + #~ msgid "Tightly close your eyes" #~ msgstr "Cieši aizver acis" diff --git a/safeeyes/config/locale/mk/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/mk/LC_MESSAGES/safeeyes.po index c65a8dad..fb986327 100644 --- a/safeeyes/config/locale/mk/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/mk/LC_MESSAGES/safeeyes.po @@ -85,12 +85,6 @@ msgstr "" msgid "Safe Eyes is not running" msgstr "" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" - # About dialog msgid "Close" msgstr "" @@ -160,14 +154,6 @@ msgstr "" msgid "Persist the internal state" msgstr "" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -584,3 +570,12 @@ msgid "" "Old stylesheet found at '%(old)s', ignoring. For custom styles, create a new " "stylesheet in '%(new)s' instead." msgstr "" + +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" diff --git a/safeeyes/config/locale/mr/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/mr/LC_MESSAGES/safeeyes.po index d6fad706..48bf4d25 100644 --- a/safeeyes/config/locale/mr/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/mr/LC_MESSAGES/safeeyes.po @@ -85,13 +85,6 @@ msgstr "सुरक्षित डोळ्यांची उदाहरण msgid "Safe Eyes is not running" msgstr "सेफ डोळे चालत नाहीत" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"सेफ डोळे आरपीसी सर्व्हरविना चालू आहेत. कमांड-लाइन वितर्क वापरण्यासाठी ते चालू करा." - # About dialog msgid "Close" msgstr "बंद" @@ -159,14 +152,6 @@ msgstr "" msgid "Persist the internal state" msgstr "" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -584,6 +569,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "डोळे घट्ट बंद करा" diff --git a/safeeyes/config/locale/nb/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/nb/LC_MESSAGES/safeeyes.po index e6155c3f..96e59be5 100644 --- a/safeeyes/config/locale/nb/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/nb/LC_MESSAGES/safeeyes.po @@ -85,15 +85,6 @@ msgstr "skriv ut status for kjørende Øyetrygg-instans og avslutt" msgid "Safe Eyes is not running" msgstr "Øyetrygg kjører ikke" -# RPC not enabled message -#, fuzzy -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Øyetrygg kjører uten RPC-tjener. Slå den på for å bruke kommandolinje-" -"argumenter." - # About dialog msgid "Close" msgstr "Lukk" @@ -161,14 +152,6 @@ msgstr "Tillat utsettelse av pauser" msgid "Persist the internal state" msgstr "Fortsett i inngangstilstand" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Bruk RPC-tjener for å motta kjøremiljøkommandoer" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "Uten RPC-tjeneren, vil ikke kommandolinje-argumenter virke" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "Tiden mellom lange pauser må være en inndeling av de små pausene" @@ -590,6 +573,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Lukk øyene dine godt" diff --git a/safeeyes/config/locale/nl/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/nl/LC_MESSAGES/safeeyes.po index ea7dbd82..728d396c 100644 --- a/safeeyes/config/locale/nl/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/nl/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "de status van de draaiende safeeyes-instantie printen en afsluiten" msgid "Safe Eyes is not running" msgstr "Safe Eyes draait niet" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes draait zonder RPC-server. Schakel dit in om opdrachtregelopties te " -"gebruiken." - # About dialog msgid "Close" msgstr "Sluiten" @@ -163,14 +155,6 @@ msgstr "Overslaan van pauzes toestaan" msgid "Persist the internal state" msgstr "Interne status aanhouden" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "RPC-server gebruiken om opdrachten te ontvangen" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "Zonder RPC-server werken opdrachtregelopties mogelijk niet" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -599,6 +583,15 @@ msgstr "" "Er is een oud stijlblad aangetroffen: ‘%(old)s’. Dit stijlblad wordt " "genegeerd. Nieuwe stijlen kunnen worden aangemaakt in ‘%(new)s’." +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Sluit je ogen goed" diff --git a/safeeyes/config/locale/pl/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/pl/LC_MESSAGES/safeeyes.po index 2c7739e1..ea50c28a 100644 --- a/safeeyes/config/locale/pl/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/pl/LC_MESSAGES/safeeyes.po @@ -86,14 +86,6 @@ msgstr "wydrukuj status uruchomionej instancji safeeyes i zakończ" msgid "Safe Eyes is not running" msgstr "Safe Eyes nie jest uruchomiony" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes działa bez serwera RPC. Włącz, aby używać argumentów wiersza " -"polecenia." - # About dialog msgid "Close" msgstr "Zamknij" @@ -163,14 +155,6 @@ msgstr "Pozwól na przełożenie przerw" msgid "Persist the internal state" msgstr "Utrzymaj stan wewnętrzny" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Użyj serwera RPC, aby odbierać polecenia środowiska wykonawczego" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "Bez serwera RPC polecenia wiersza polecenia mogą nie działać" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "Długa przerwa musi być poprzedzona kilkoma krótkimi" @@ -593,6 +577,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Dokładnie zamknij oczy" diff --git a/safeeyes/config/locale/pt/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/pt/LC_MESSAGES/safeeyes.po index e45372ce..de233af1 100644 --- a/safeeyes/config/locale/pt/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/pt/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "mostrar o estado de execução do Safe Eyes e sair" msgid "Safe Eyes is not running" msgstr "O Safe Eyes não está em execução" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"O Safe Eyes está em execução sem um servidor RPC (interno). Acionar um " -"servidor RPC para usar argumentos de linha de comando." - # About dialog msgid "Close" msgstr "Fechar" @@ -163,15 +155,6 @@ msgstr "Permitir adiamento de pausas" msgid "Persist the internal state" msgstr "Manter o estado interno" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Utilizar um servidor RPC (interno) para receber comandos de runtime" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "" -"Sem o servidor RPC, os comandos da linha de comandos podem não funcionar" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -597,6 +580,15 @@ msgstr "" "Folha de estilos antiga encontrada em %(old)s, ignorando. Para estilos " "personalizados, crie uma nova folha de estilos em%(new)s." +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Fechar os olhos com força" diff --git a/safeeyes/config/locale/pt_BR/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/pt_BR/LC_MESSAGES/safeeyes.po index 55fe9680..d3ae6a7c 100644 --- a/safeeyes/config/locale/pt_BR/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/pt_BR/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "mostrar o estado de execução do safeeyes e sair" msgid "Safe Eyes is not running" msgstr "O Safe Eyes não está em execução" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"O Safe Eyes está em execução sem um servidor RPC ligado. Ligar para usar " -"argumentos de linha de comando." - # About dialog msgid "Close" msgstr "Fechar" @@ -162,15 +154,6 @@ msgstr "Permitir adiamento de pausas" msgid "Persist the internal state" msgstr "Persistir o estado interno" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Utilize o servidor RPC para receber comandos de tempo de execução" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "" -"Sem o servidor RPC, os comandos da linha de comandos podem não funcionar" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -595,6 +578,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Feche firmemente seus olhos" diff --git a/safeeyes/config/locale/ru/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/ru/LC_MESSAGES/safeeyes.po index 8a23df76..45fdca19 100644 --- a/safeeyes/config/locale/ru/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/ru/LC_MESSAGES/safeeyes.po @@ -86,14 +86,6 @@ msgstr "вывести статус запущенного экземпляра msgid "Safe Eyes is not running" msgstr "Safe Eyes не запущен" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Программа Safe Eyes запущена без RPC сервера. Для использования аргументов " -"командной строки запустите RPC сервер." - # About dialog msgid "Close" msgstr "Закрыть" @@ -163,14 +155,6 @@ msgstr "Разрешить откладывание перерывов" msgid "Persist the internal state" msgstr "Сохранять внутреннее состояние" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Используйте RPC сервер для получения команд во время работы приложения" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "Без RPC сервера команды из командной строки могут не сработать" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "Время длинного перерыва должно быть кратно времени короткого перерыва" @@ -601,6 +585,15 @@ msgstr "" "пользовательских стилей вместо этого создайте новую таблицу стилей в " "'%(new)s'." +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Плотно закройте глаза" diff --git a/safeeyes/config/locale/safeeyes.pot b/safeeyes/config/locale/safeeyes.pot index f7e00a69..ea0ceee7 100644 --- a/safeeyes/config/locale/safeeyes.pot +++ b/safeeyes/config/locale/safeeyes.pot @@ -73,10 +73,6 @@ msgstr "" msgid "Safe Eyes is not running" msgstr "" -# RPC not enabled message -msgid "Safe Eyes is running without an RPC server. Turn it on to use command-line arguments." -msgstr "" - # About dialog msgid "Close" msgstr "" @@ -142,14 +138,6 @@ msgstr "" msgid "Persist the internal state" msgstr "" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -564,3 +552,9 @@ msgstr "" msgid "Customizing the postpone and skip shortcuts does not work on Wayland." msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" diff --git a/safeeyes/config/locale/sk/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/sk/LC_MESSAGES/safeeyes.po index d18cd143..33be37c1 100644 --- a/safeeyes/config/locale/sk/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/sk/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "vypíše, či safeeyes beží a skončí" msgid "Safe Eyes is not running" msgstr "SafeEyes nebeží" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes je spustený bez RPC serveru. Zapnite ho pre použitie argumentov v " -"príkazovom riadku." - # About dialog msgid "Close" msgstr "Zavrieť" @@ -163,14 +155,6 @@ msgstr "Povoliť odkladanie prestávok" msgid "Persist the internal state" msgstr "Zachovať vnútorný stav" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Použiť RPC server na prijatie spúšťacích príkazov" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "Bez RPC serveru príkazy v príkazovom riadku nemusia fungovať" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "Dlhá prestávka musí byť násobkom krátkej prestávky" @@ -595,6 +579,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Pevne zatvor oči" diff --git a/safeeyes/config/locale/sr/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/sr/LC_MESSAGES/safeeyes.po index de5ad6e7..2a27a8b5 100644 --- a/safeeyes/config/locale/sr/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/sr/LC_MESSAGES/safeeyes.po @@ -86,14 +86,6 @@ msgstr "Одштампајте статус тренутне сесије safeey msgid "Safe Eyes is not running" msgstr "Safe Eyes није укључен" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes ради без RPC (Remote Procedure Call) сервера. Укључите га како " -"бисте користили командне-линије." - # About dialog msgid "Close" msgstr "Затворите" @@ -163,14 +155,6 @@ msgstr "Дозволи одлагање пауза" msgid "Persist the internal state" msgstr "Задржи интерни статус" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Користите RPC сервер како бисте примили runtime команде" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "Без RPC сервера, унос путем командних-линија можда неће бити успешан" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -598,6 +582,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Чврсто затворите очи" diff --git a/safeeyes/config/locale/sv/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/sv/LC_MESSAGES/safeeyes.po index af0ca1db..1d7ba661 100644 --- a/safeeyes/config/locale/sv/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/sv/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "skriv ut status för körning av safeeyes-instansen och avsluta" msgid "Safe Eyes is not running" msgstr "Safe Eyes körs inte" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes kör utan \"RPC\"-server. Slå på den för att kunna använda " -"kommandoradsargument." - # About dialog msgid "Close" msgstr "Stäng" @@ -160,14 +152,6 @@ msgstr "Tillåt att skjuta upp pauser" msgid "Persist the internal state" msgstr "Bevara det interna tillståndet" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Använd RPC-server för att ta emot runtime-kommandon" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "Utan RPC-servern kanske kommandoradskommandon inte fungerar" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "Lång paus intervall måste vara en multipel av kort paus intervall" @@ -587,6 +571,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Stäng ögonen tätt" diff --git a/safeeyes/config/locale/ta/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/ta/LC_MESSAGES/safeeyes.po index 9789b236..0ae40ce5 100644 --- a/safeeyes/config/locale/ta/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/ta/LC_MESSAGES/safeeyes.po @@ -86,14 +86,6 @@ msgstr "இயங்கும் Safe Eyes நிலையை காண்பி msgid "Safe Eyes is not running" msgstr "Safe Eyes தற்போது இயங்கவில்லை" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes RPC சேவையகமின்றி இயங்குகிறது.முனையக் கட்டளைகளைப் பயன்படுத்த RPC சேவையகத்தை " -"இயக்கவும்." - # About dialog msgid "Close" msgstr "மூடு" @@ -163,14 +155,6 @@ msgstr "இடைவேளையை ஒத்திவைக்க அனும msgid "Persist the internal state" msgstr "உள்ளக நிலையை தக்கவைத்து கொள்ளவும்" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "இயக்க நேர கட்டளைகளைப் பெற RPC சேவையகத்தைப் செயற்படுத்தவும்" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "RPC சேவையகம் இல்லாமல், முனைய கட்டளைகள் இயங்காது" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -595,6 +579,15 @@ msgstr "" "புறக்கணித்து, '%(old)s' இல் காணப்படும் பழைய பாணிதாள். தனிப்பயன் பாணிகளுக்கு, அதற்குப் " "பதிலாக '%(new)s' இல் புதிய பாணிதாளை உருவாக்கவும்." +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "உங்கள் கண்களை இறுக்கமாக மூடுங்கள்" diff --git a/safeeyes/config/locale/tr/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/tr/LC_MESSAGES/safeeyes.po index 5e182bd3..1d6024da 100644 --- a/safeeyes/config/locale/tr/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/tr/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "çalışan Safe Eyes örneğinin durumunu yaz ve çık" msgid "Safe Eyes is not running" msgstr "Safe Eyes çalışmıyor" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes bir RPC sunucusu olmadan çalışıyor. Komut satırı argümanlarını " -"kullanmak için açın." - # About dialog msgid "Close" msgstr "Kapat" @@ -163,14 +155,6 @@ msgstr "Molaları ertelemeye izin ver" msgid "Persist the internal state" msgstr "İç durum kalıcı olsun" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Çalışma zamanı komutlarını almak için RPC sunucusu kullan" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "RPC sunucusu olmadan, komut satırı komutları çalışmayabilir" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "Uzun mola aralığı, kısa mola aralığının katı olmalıdır" @@ -594,6 +578,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Gözlerinizi sıkıca kapatın" diff --git a/safeeyes/config/locale/ug/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/ug/LC_MESSAGES/safeeyes.po index 4259e966..0aca020a 100644 --- a/safeeyes/config/locale/ug/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/ug/LC_MESSAGES/safeeyes.po @@ -84,12 +84,6 @@ msgstr "" msgid "Safe Eyes is not running" msgstr "" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" - # About dialog msgid "Close" msgstr "" @@ -157,14 +151,6 @@ msgstr "" msgid "Persist the internal state" msgstr "" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -578,3 +564,12 @@ msgid "" "Old stylesheet found at '%(old)s', ignoring. For custom styles, create a new " "stylesheet in '%(new)s' instead." msgstr "" + +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" diff --git a/safeeyes/config/locale/uk/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/uk/LC_MESSAGES/safeeyes.po index 7e944387..914d2664 100644 --- a/safeeyes/config/locale/uk/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/uk/LC_MESSAGES/safeeyes.po @@ -86,14 +86,6 @@ msgstr "виведення стану виконуваного екземпля msgid "Safe Eyes is not running" msgstr "Safe Eyes не працює" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes працює з відключеним сервером RPC. Увімкніть сервер RPC для " -"використання аргументів вказівкового рядка." - # About dialog msgid "Close" msgstr "Закрити" @@ -161,14 +153,6 @@ msgstr "Дозволити перенесення перерв" msgid "Persist the internal state" msgstr "Утримувати внутрішній стан" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Використовувати RPC-сервер для отримання вказівок виконання" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "Без сервера RPC вказівки вказівкового рядка можуть не працювати" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -594,6 +578,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Щільно заплющіть очі" diff --git a/safeeyes/config/locale/uz_Latn/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/uz_Latn/LC_MESSAGES/safeeyes.po index 80788bdf..c9ed80e7 100644 --- a/safeeyes/config/locale/uz_Latn/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/uz_Latn/LC_MESSAGES/safeeyes.po @@ -84,12 +84,6 @@ msgstr "" msgid "Safe Eyes is not running" msgstr "" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" - # About dialog msgid "Close" msgstr "" @@ -157,14 +151,6 @@ msgstr "" msgid "Persist the internal state" msgstr "" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" @@ -578,3 +564,12 @@ msgid "" "Old stylesheet found at '%(old)s', ignoring. For custom styles, create a new " "stylesheet in '%(new)s' instead." msgstr "" + +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" diff --git a/safeeyes/config/locale/vi/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/vi/LC_MESSAGES/safeeyes.po index 5730325f..53c48ee8 100644 --- a/safeeyes/config/locale/vi/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/vi/LC_MESSAGES/safeeyes.po @@ -85,14 +85,6 @@ msgstr "in trạng thái chạy phiên bản Safe Eyes và thoát" msgid "Safe Eyes is not running" msgstr "Safe Eyes không hoạt động" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes đang chạy mà không có máy chủ RPC. Bạn hãy bật nó lên để sử dụng " -"tham số dòng lệnh nhé." - # About dialog msgid "Close" msgstr "Đóng" @@ -163,14 +155,6 @@ msgstr "Cho phép tạm hoãn nghỉ ngơi" msgid "Persist the internal state" msgstr "Duy trì nội trạng thái" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "Sử dụng máy chủ RPC để nhận lệnh thời gian chạy" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "Nếu không có máy chủ RPC, các lệnh dòng lệnh có thể không hoạt động" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "Thời gian nghỉ dài phải là bội số của thời gian nghỉ ngắn" @@ -588,6 +572,15 @@ msgid "" "stylesheet in '%(new)s' instead." msgstr "" +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" + # Short break #~ msgid "Tightly close your eyes" #~ msgstr "Nhắm chặt mắt lại" diff --git a/safeeyes/config/locale/zh_CN/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/zh_CN/LC_MESSAGES/safeeyes.po index f2040b74..071f34c0 100644 --- a/safeeyes/config/locale/zh_CN/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/zh_CN/LC_MESSAGES/safeeyes.po @@ -85,13 +85,6 @@ msgstr "显示Safe Eyes运行状态后退出" msgid "Safe Eyes is not running" msgstr "Safe Eyes 没有运行" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "" -"Safe Eyes 正在没有RPC服务器的情况下运行。打开RPC服务器可以使用命令行参数。" - # About dialog msgid "Close" msgstr "关闭" @@ -161,14 +154,6 @@ msgstr "允许推迟休息" msgid "Persist the internal state" msgstr "支持内部状态" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "使用RPC服务器接收运行时命令" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "没有RPC服务器,命令行命令可能无法正常工作" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "长休息的间隔时间必须是短休息间隔时间的倍数" @@ -581,8 +566,18 @@ msgstr "许可:" msgid "" "Old stylesheet found at '%(old)s', ignoring. For custom styles, create a new " "stylesheet in '%(new)s' instead." -msgstr "在 '%(old)s' 发现旧版样式表,已忽略。若需自定义样式,请在 '%(new)s' " -"创建新版样式表。" +msgstr "" +"在 '%(old)s' 发现旧版样式表,已忽略。若需自定义样式,请在 '%(new)s' 创建新版" +"样式表。" + +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" # Short break #~ msgid "Tightly close your eyes" diff --git a/safeeyes/config/locale/zh_TW/LC_MESSAGES/safeeyes.po b/safeeyes/config/locale/zh_TW/LC_MESSAGES/safeeyes.po index 6bf58fca..54a27153 100644 --- a/safeeyes/config/locale/zh_TW/LC_MESSAGES/safeeyes.po +++ b/safeeyes/config/locale/zh_TW/LC_MESSAGES/safeeyes.po @@ -85,12 +85,6 @@ msgstr "顯示目前正在執行的 safeeyes 狀態並離開" msgid "Safe Eyes is not running" msgstr "Safe Eyes 未啟動" -# RPC not enabled message -msgid "" -"Safe Eyes is running without an RPC server. Turn it on to use command-line " -"arguments." -msgstr "Safe Eyes 運行中不使用 RPC 伺服器。使用終端指令參數進行開啟。" - # About dialog msgid "Close" msgstr "關閉" @@ -158,14 +152,6 @@ msgstr "允許推遲休息" msgid "Persist the internal state" msgstr "維持內部計算狀態" -# Settings dialog -msgid "Use RPC server to receive runtime commands" -msgstr "使用 RPC 伺服器來接收運行時指令" - -# Settings dialog -msgid "Without the RPC server, command-line commands may not work" -msgstr "不使用 RPC 伺服器,終端指令可能法作用" - # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "長休息間隔須為短休息間隔的倍數" @@ -578,8 +564,18 @@ msgstr "授權:" msgid "" "Old stylesheet found at '%(old)s', ignoring. For custom styles, create a new " "stylesheet in '%(new)s' instead." -msgstr "在 '%(old)s' 發現舊的樣式表,已忽略。若需自訂樣式,請在 '%(new)s' " -"中建立新的樣式表。" +msgstr "" +"在 '%(old)s' 發現舊的樣式表,已忽略。若需自訂樣式,請在 '%(new)s' 中建立新的" +"樣式表。" + +msgid "Customizing the postpone and skip shortcuts does not work on Wayland." +msgstr "" + +msgid "Safe Eyes - Error" +msgstr "" + +msgid "A required plugin is missing dependencies!" +msgstr "" # Short break #~ msgid "Tightly close your eyes" diff --git a/safeeyes/config/safeeyes.json b/safeeyes/config/safeeyes.json index 0230046f..06c05cba 100644 --- a/safeeyes/config/safeeyes.json +++ b/safeeyes/config/safeeyes.json @@ -1,6 +1,6 @@ { "meta": { - "config_version": "6.0.3" + "config_version": "6.0.4" }, "random_order": true, "allow_postpone": false, @@ -11,8 +11,6 @@ "short_break_duration": 15, "persist_state": false, "postpone_duration": 5, - "use_rpc_server": true, - "rpc_port": 7200, "shortcut_disable_time": 2, "shortcut_skip": 9, "shortcut_postpone": 65, diff --git a/safeeyes/config/style/safeeyes_style.css b/safeeyes/config/style/safeeyes_style.css index f2b62555..07698be6 100644 --- a/safeeyes/config/style/safeeyes_style.css +++ b/safeeyes/config/style/safeeyes_style.css @@ -99,10 +99,6 @@ border-radius: 5px; } -.warn_bar_rpc_server { - opacity: 0.9; - border-radius: 5px; -} .toolbar { background: black; diff --git a/safeeyes/glade/settings_dialog.glade b/safeeyes/glade/settings_dialog.glade index 43ab9a55..93a9735a 100644 --- a/safeeyes/glade/settings_dialog.glade +++ b/safeeyes/glade/settings_dialog.glade @@ -488,40 +488,6 @@ - - - 0 - warning - 1 - 1 - 1 - - - - - - 1 - 5 - 1 - - - 1 - start - Use RPC server to receive runtime commands - - - - - 1 - 1 - end - center - - - - diff --git a/safeeyes/platform/io.github.slgobinath.SafeEyes.metainfo.xml b/safeeyes/platform/io.github.slgobinath.SafeEyes.metainfo.xml index 660aa6aa..45d2dab2 100644 --- a/safeeyes/platform/io.github.slgobinath.SafeEyes.metainfo.xml +++ b/safeeyes/platform/io.github.slgobinath.SafeEyes.metainfo.xml @@ -29,8 +29,8 @@

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 + support, Customizable user interface, Command-line arguments to control the running + instance, Customizable using plug-ins

diff --git a/safeeyes/rpc.py b/safeeyes/rpc.py deleted file mode 100644 index e1398b5e..00000000 --- a/safeeyes/rpc.py +++ /dev/null @@ -1,99 +0,0 @@ -#!/usr/bin/env python -# Safe Eyes is a utility to remind you to take break frequently -# to protect your eyes from eye strain. - -# Copyright (C) 2017 Gobinath - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -"""RPC server and client implementation.""" - -import logging -from threading import Thread -from xmlrpc.server import SimpleXMLRPCServer -from xmlrpc.client import ServerProxy - - -class RPCServer: - """An asynchronous RPC server.""" - - def __init__(self, port, context): - self.__running = False - logging.info("Setting up an RPC server on port %d", port) - self.__server = SimpleXMLRPCServer( - ("localhost", port), logRequests=False, allow_none=True - ) - self.__server.register_function( - context["api"]["show_settings"], "show_settings" - ) - self.__server.register_function(context["api"]["show_about"], "show_about") - self.__server.register_function( - context["api"]["enable_safeeyes"], "enable_safeeyes" - ) - self.__server.register_function( - context["api"]["disable_safeeyes"], "disable_safeeyes" - ) - self.__server.register_function(context["api"]["take_break"], "take_break") - self.__server.register_function(context["api"]["status"], "status") - self.__server.register_function(context["api"]["quit"], "quit") - - def start(self): - """Start the RPC server.""" - if not self.__running: - self.__running = True - logging.info("Start the RPC server") - server_thread = Thread(target=self.__server.serve_forever) - server_thread.start() - - def stop(self): - """Stop the server.""" - if self.__running: - logging.info("Stop the RPC server") - self.__running = False - self.__server.shutdown() - - -class RPCClient: - """An RPC client to communicate with the RPC server.""" - - def __init__(self, port): - self.port = port - self.proxy = ServerProxy("http://localhost:%d/" % self.port, allow_none=True) - - def show_settings(self): - """Show the settings dialog.""" - self.proxy.show_settings() - - def show_about(self): - """Show the about dialog.""" - self.proxy.show_about() - - def enable_safeeyes(self): - """Enable Safe Eyes.""" - self.proxy.enable_safeeyes() - - def disable_safeeyes(self): - """Disable Safe Eyes.""" - self.proxy.disable_safeeyes(None) - - def take_break(self): - """Take a break now.""" - self.proxy.take_break() - - def status(self): - """Return the status of Safe Eyes.""" - return self.proxy.status() - - def quit(self): - """Quit Safe Eyes.""" - self.proxy.quit() diff --git a/safeeyes/safeeyes.py b/safeeyes/safeeyes.py index 4ea5a93e..56c1e48a 100644 --- a/safeeyes/safeeyes.py +++ b/safeeyes/safeeyes.py @@ -22,6 +22,7 @@ import atexit import logging +import typing from threading import Timer from importlib import metadata @@ -31,7 +32,6 @@ from safeeyes.ui.break_screen import BreakScreen from safeeyes.ui.required_plugin_dialog import RequiredPluginDialog from safeeyes.model import State, RequiredPluginException -from safeeyes.rpc import RPCServer from safeeyes.translations import translate as _ from safeeyes.plugin_manager import PluginManager from safeeyes.core import SafeEyesCore @@ -49,27 +49,176 @@ class SafeEyes(Gtk.Application): required_plugin_dialog_active = False retry_errored_plugins_count = 0 - def __init__(self, system_locale, config, cli_args): + def __init__(self, system_locale, config) -> None: super().__init__( application_id="io.github.slgobinath.SafeEyes", - # This is necessary for compatibility with Ubuntu 22.04. - flags=Gio.ApplicationFlags.FLAGS_NONE, + flags=Gio.ApplicationFlags.HANDLES_COMMAND_LINE, ) + self.active = False self.break_screen = None self.safe_eyes_core = None self.config = config - self.context = {} + self.context: typing.Any = {} self.plugins_manager = None self.settings_dialog_active = False - self.rpc_server = None self._status = "" - self.cli_args = cli_args self.system_locale = system_locale - def start(self): - """Start Safe Eyes.""" - self.run() + self.__register_cli_arguments() + self.__register_actions() + + def __register_cli_arguments(self): + flags = [ + # startup window + ("about", "a", _("show the about dialog")), + ("settings", "s", _("start safeeyes in debug mode")), + ("take-break", "t", _("Take a break now").lower()), + # activate action + ("disable", "d", _("disable the currently running safeeyes instance")), + ("enable", "e", _("enable the currently running safeeyes instance")), + ("quit", "q", _("quit the running safeeyes instance and exit")), + # special handling + ( + "status", + None, + _("print the status of running safeeyes instance and exit"), + ), + # toggle + ("debug", None, _("start safeeyes in debug mode")), + # TODO: translate + ("version", None, "show program's version number and exit"), + ] + + for flag, short, desc in flags: + # all flags are booleans + self.add_main_option( + flag, + ord(short) if short else 0, + GLib.OptionFlags.NONE, + GLib.OptionArg.NONE, + desc, + None, + ) + + def __register_actions(self) -> None: + actions = [ + ("show_about", self.show_about), + ("show_settings", self.show_settings), + ("take_break", self.take_break), + ("enable_safeeyes", self.enable_safeeyes), + ("disable_safeeyes", self.disable_safeeyes), + ("quit", self.quit), + ] + + # this is needed because of late bindings... + def create_cb_discard_args(callback): + return lambda parameter, user_data: callback() + + for name, callback in actions: + action = Gio.SimpleAction.new(name, None) + action.connect("activate", create_cb_discard_args(callback)) + self.add_action(action) + + def do_handle_local_options(self, options): + Gtk.Application.do_handle_local_options(self, options) + + # do not call options.end() here - this will clear the dict, + # and make it empty/broken inside do_command_line + + debug = False + if options.contains("debug"): + debug = True + + # Initialize the logging + utility.initialize_logging(debug) + utility.initialize_platform() + utility.cleanup_old_user_stylesheet() + + if options.contains("version"): + print(f"safeeyes {SAFE_EYES_VERSION}") + return 0 # exit + + # needed for calling is_remote + self.register(None) + + is_remote = self.get_is_remote() + + if is_remote: + logging.info("Remote instance") + + if options.contains("status"): + # fall through the default handling + # this will call do_command_line on the primary instance + # where we will handle this + return -1 + + if options.contains("quit"): + self.activate_action("quit", None) + return 0 + + if options.contains("enable"): + self.activate_action("enable_safeeyes", None) + return 0 + + if options.contains("disable"): + self.activate_action("disable_safeeyes", None) + return 0 + + if options.contains("about"): + self.activate_action("show_about", None) + return 0 + + if options.contains("settings"): + self.activate_action("show_settings", None) + return 0 + + if options.contains("take-break"): + self.activate_action("take_break", None) + return 0 + + logging.info("Safe Eyes is already running") + return 0 # TODO: return error code here? + + else: + logging.info("Primary instance") + + if ( + options.contains("enable") + or options.contains("disable") + or options.contains("status") + or options.contains("quit") + ): + print(_("Safe Eyes is not running")) + self.activate_action("quit", None) + return 1 + + return -1 # continue default handling + + def do_command_line(self, command_line): + Gtk.Application.do_command_line(self, command_line) + + cli = command_line.get_options_dict().end().unpack() + + if cli.get("status"): + # this is only invoked remotely + # this code runs in the primary instance, but will print to the output + # of the remote instance + command_line.print_literal(self.status()) + return 0 + + logging.info("Handle primary command line") + + self.activate() + + if cli.get("about"): + self.show_about() + elif cli.get("settings"): + self.show_settings() + elif cli.get("take-break"): + self.take_break() + + return 0 def do_startup(self): Gtk.Application.do_startup(self) @@ -135,9 +284,6 @@ def do_startup(self): atexit.register(self.persist_session) - if self.config.get("use_rpc_server", True): - self.__start_rpc_server() - if ( not self.plugins_manager.needs_retry() and not self.required_plugin_dialog_active @@ -155,17 +301,6 @@ def do_activate(self): if self.plugins_manager.needs_retry(): GLib.timeout_add_seconds(1, self._retry_errored_plugins) - if self.cli_args.about: - self.show_about() - elif self.cli_args.disable: - self.disable_safeeyes() - elif self.cli_args.enable: - self.enable_safeeyes() - elif self.cli_args.settings: - self.show_settings() - elif self.cli_args.take_break: - self.take_break() - def _initialize_styles(self): utility.load_css_file( utility.SYSTEM_STYLE_SHEET_PATH, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION @@ -257,9 +392,10 @@ def quit(self): self.plugins_manager.stop() self.safe_eyes_core.stop() self.plugins_manager.exit() - self.__stop_rpc_server() self.persist_session() + self.release() + super().quit() def handle_suspend_callback(self, sleeping): @@ -341,13 +477,6 @@ def save_settings(self, config): def restart(self, config, set_active=False): logging.info("Initialize SafeEyesCore with modified settings") - if self.rpc_server is None and config.get("use_rpc_server"): - # RPC server wasn't running but now enabled - self.__start_rpc_server() - elif self.rpc_server is not None and not config.get("use_rpc_server"): - # RPC server was running but now disabled - self.__stop_rpc_server() - # Restart the core and initialize the components self.config = config self.safe_eyes_core.initialize(config) @@ -434,13 +563,3 @@ def persist_session(self): utility.write_json(utility.SESSION_FILE_PATH, self.context["session"]) else: utility.delete(utility.SESSION_FILE_PATH) - - def __start_rpc_server(self): - if self.rpc_server is None: - self.rpc_server = RPCServer(self.config.get("rpc_port"), self.context) - self.rpc_server.start() - - def __stop_rpc_server(self): - if self.rpc_server is not None: - self.rpc_server.stop() - self.rpc_server = None diff --git a/safeeyes/translations.py b/safeeyes/translations.py index f9ee344d..be71d466 100644 --- a/safeeyes/translations.py +++ b/safeeyes/translations.py @@ -19,8 +19,8 @@ """Translation setup and helpers.""" import locale -import logging import gettext +import sys from safeeyes import utility _translations = gettext.NullTranslations() @@ -38,9 +38,10 @@ def setup(): # locale.bindtextdomain is required for Glade files locale.bindtextdomain("safeeyes", utility.LOCALE_PATH) except AttributeError: - logging.warning( + print( "installed python's gettext module does not support locale.bindtextdomain." - " locale.bindtextdomain is required for Glade files" + " locale.bindtextdomain is required for Glade files", + file=sys.stderr, ) return _translations diff --git a/safeeyes/ui/settings_dialog.py b/safeeyes/ui/settings_dialog.py index 1189d109..76daf7e6 100644 --- a/safeeyes/ui/settings_dialog.py +++ b/safeeyes/ui/settings_dialog.py @@ -64,7 +64,6 @@ def __init__(self, application, config, on_save_settings): self.last_short_break_interval = config.get("short_break_interval") self.initializing = True self.infobar_long_break_shown = False - self.warn_bar_rpc_server_shown = False builder = utility.create_gtk_builder(SETTINGS_DIALOG_GLADE) @@ -88,11 +87,8 @@ def __init__(self, application, config, on_save_settings): self.switch_random_order = builder.get_object("switch_random_order") self.switch_postpone = builder.get_object("switch_postpone") self.switch_persist = builder.get_object("switch_persist") - self.switch_rpc_server = builder.get_object("switch_rpc_server") self.info_bar_long_break = builder.get_object("info_bar_long_break") - self.warn_bar_rpc_server = builder.get_object("warn_bar_rpc_server") self.info_bar_long_break.hide() - self.warn_bar_rpc_server.hide() self.window.connect("close-request", self.on_window_delete) builder.get_object("reset_menu").connect("clicked", self.on_reset_menu_clicked) @@ -104,8 +100,6 @@ def __init__(self, application, config, on_save_settings): self.spin_long_break_interval.connect( "value-changed", self.on_spin_long_break_interval_change ) - self.warn_bar_rpc_server.connect("close", self.on_warn_bar_rpc_server_close) - self.warn_bar_rpc_server.connect("response", self.on_warn_bar_rpc_server_close) builder.get_object("btn_add_break").connect("clicked", self.add_break) # Set the current values of input fields @@ -116,11 +110,6 @@ def __init__(self, application, config, on_save_settings): self.on_switch_postpone_activate( self.switch_postpone, self.switch_postpone.get_active() ) - # Add event listener to RPC server switch - self.switch_rpc_server.connect("state-set", self.on_switch_rpc_server_activate) - self.on_switch_rpc_server_activate( - self.switch_rpc_server, self.switch_rpc_server.get_active() - ) self.initializing = False @@ -148,7 +137,6 @@ def __initialize(self, config): self.switch_random_order.set_active(config.get("random_order")) self.switch_postpone.set_active(config.get("allow_postpone")) self.switch_persist.set_active(config.get("persist_state")) - self.switch_rpc_server.set_active(config.get("use_rpc_server")) self.infobar_long_break_shown = False def __create_break_item(self, break_config, is_short): @@ -357,22 +345,6 @@ def on_info_bar_long_break_close(self, infobar, *user_data): """Event handler for info bar close action.""" self.info_bar_long_break.hide() - def on_switch_rpc_server_activate(self, switch, enabled): - """Event handler to the state change of the rpc server switch. - - Show or hide the self.warn_bar_rpc_server based on the state of - the rpc server. - """ - if not self.initializing and not enabled and not self.warn_bar_rpc_server_shown: - self.warn_bar_rpc_server_shown = True - self.warn_bar_rpc_server.show() - if enabled: - self.warn_bar_rpc_server.hide() - - def on_warn_bar_rpc_server_close(self, warnbar, *user_data): - """Event handler for warning bar close action.""" - self.warn_bar_rpc_server.hide() - def add_break(self, button) -> None: """Event handler for add break button.""" dialog = NewBreakDialog( @@ -412,7 +384,6 @@ def on_window_delete(self, *args): self.config.set("random_order", self.switch_random_order.get_active()) self.config.set("allow_postpone", self.switch_postpone.get_active()) self.config.set("persist_state", self.switch_persist.get_active()) - self.config.set("use_rpc_server", self.switch_rpc_server.get_active()) for plugin in self.config.get("plugins"): if plugin["id"] in self.plugin_switches: plugin["enabled"] = self.plugin_switches[plugin["id"]].get_active() diff --git a/safeeyes/utility.py b/safeeyes/utility.py index 5444ae9e..28875471 100644 --- a/safeeyes/utility.py +++ b/safeeyes/utility.py @@ -46,7 +46,6 @@ from gi.repository import GLib from gi.repository import GdkPixbuf from packaging.version import parse -from safeeyes.translations import translate as _ BIN_DIRECTORY = os.path.dirname(os.path.realpath(__file__)) HOME_DIRECTORY = os.environ.get("HOME") or os.path.expanduser("~") @@ -181,6 +180,8 @@ def delete(file_path): def check_plugin_dependencies(plugin_id, plugin_config, plugin_settings, plugin_path): """Check the plugin dependencies.""" + from safeeyes.translations import translate as _ + # Check the desktop environment if plugin_config["dependencies"]["desktop_environments"]: # Plugin has restrictions on desktop environments @@ -449,6 +450,8 @@ def cleanup_old_user_stylesheet(): logging.info("Deleting old stylesheet containing default content") delete(OLD_STYLE_SHEET_PATH) else: + from safeeyes.translations import translate as _ + # Stylesheet was likely customized, don't delete but warn logging.warning( _( @@ -711,6 +714,8 @@ def open_session(): def create_gtk_builder(glade_file): """Create a Gtk builder and load the glade file.""" + from safeeyes.translations import translate as _ + builder = Gtk.Builder() builder.set_translation_domain("safeeyes") builder.add_from_file(glade_file)