aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Langridge <sil@kryogenix.org>2019-06-10 00:43:38 +0100
committerStuart Langridge <sil@kryogenix.org>2019-06-10 00:43:38 +0100
commit88030e5174e752230d62b0ae3b2c9aed65c051ff (patch)
tree0838e3ef41b7b4a9e4df9316c655e91362698c41
parentUnset GSettings screen-magnifier-enabled on explicit close (diff)
downloadmagnus-88030e5174e752230d62b0ae3b2c9aed65c051ff.tar.gz
magnus-88030e5174e752230d62b0ae3b2c9aed65c051ff.tar.bz2
magnus-88030e5174e752230d62b0ae3b2c9aed65c051ff.zip
flake8 fixes
-rw-r--r--data/magnus-autostart.desktop5
-rwxr-xr-xmagnus30
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;
diff --git a/magnus b/magnus
index e2f492c..be4f407 100755
--- a/magnus
+++ b/magnus
@@ -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()
bgstack15