diff options
-rw-r--r-- | data/magnus-autostart.desktop | 5 | ||||
-rwxr-xr-x | magnus | 30 |
2 files changed, 20 insertions, 15 deletions
diff --git a/data/magnus-autostart.desktop b/data/magnus-autostart.desktop index 2308891..ec26824 100644 --- a/data/magnus-autostart.desktop +++ b/data/magnus-autostart.desktop @@ -1,8 +1,9 @@ [Desktop Entry] Type=Application Name=Magnus screen magnifier -Exec=magnus +Exec=magnus --started-by-keypress NoDisplay=true -AutostartCondition=AutostartCondition=GSettings org.gnome.desktop.a11y.applications screen-magnifier-enabled +AutostartCondition=GSettings org.gnome.desktop.a11y.applications screen-magnifier-enabled X-MATE-AutoRestart=true +X-GNOME-AutoRestart=true NotShowIn=GNOME; @@ -68,20 +68,24 @@ class Main(object): pass if arg == "--started-by-keypress": self.started_by_keypress = True - # This is here so that the autostart desktop file can specify it. - # The idea is that Gnome-ish desktops have an explicit keybinding - # to run the system magnifier; what this keybinding actually does, - # via the {desktop}-settings-daemon, is toggle the gsettings key + # This is here so that the autostart desktop file can + # specify it. + # The idea is that Gnome-ish desktops have an explicit + # keybinding to run the system magnifier; what this keybinding + # actually does, via the {desktop}-settings-daemon, is toggle + # the gsettings key # org.gnome.desktop.a11y.applications screen-magnifier-enabled - # Magnus provides a desktop file to go in /etc/xdg/autostart which - # contains an AutostartCondition of - # GSettings org.gnome.desktop.a11y.applications screen-magnifier-enabled - # and then the {desktop}-session daemon takes care of starting the - # app when that key goes true, and closing the app if that - # key goes false. However, the user may also explicitly quit Magnus - # with the close icon or alt-f4 or similar. If they do so, then - # we explicitly set the key back to false, so that the global - # keybinding to run the magnifier stays in sync. + # Magnus provides a desktop file to go in /etc/xdg/autostart + # which contains an AutostartCondition of + # GSettings org.gnome.desktop.a11y.applications / + # screen-magnifier-enabled + # and then the {desktop}-session daemon takes care of + # starting the app when that key goes true, and closing the + # app if that key goes false. However, the user may also + # explicitly quit Magnus with the close icon or alt-f4 + # or similar. If they do so, then we explicitly set the key + # back to false, so that the global keybinding to run the + # magnifier stays in sync. # First time startup self.start_everything_first_time() |