aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wimpress <code@flexion.org>2019-06-06 15:10:32 +0100
committerMartin Wimpress <code@flexion.org>2019-06-06 15:10:32 +0100
commitdf5a269d2a36793b301889aaddc9701090311f2c (patch)
tree26a74e6b23556c6579b8a6ab882d0100132d5215
parentAdd gir1.2-keybinder-3.0 to the instructions. (diff)
downloadmagnus-df5a269d2a36793b301889aaddc9701090311f2c.tar.gz
magnus-df5a269d2a36793b301889aaddc9701090311f2c.tar.bz2
magnus-df5a269d2a36793b301889aaddc9701090311f2c.zip
data: Add magnus-autostart.desktop.
-rw-r--r--data/magnus-autostart.desktop8
-rwxr-xr-xsetup.py1
2 files changed, 9 insertions, 0 deletions
diff --git a/data/magnus-autostart.desktop b/data/magnus-autostart.desktop
new file mode 100644
index 0000000..2308891
--- /dev/null
+++ b/data/magnus-autostart.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Type=Application
+Name=Magnus screen magnifier
+Exec=magnus
+NoDisplay=true
+AutostartCondition=AutostartCondition=GSettings org.gnome.desktop.a11y.applications screen-magnifier-enabled
+X-MATE-AutoRestart=true
+NotShowIn=GNOME;
diff --git a/setup.py b/setup.py
index d940f81..cf8d98b 100755
--- a/setup.py
+++ b/setup.py
@@ -38,6 +38,7 @@ def datafilelist(installbase, sourcebase):
data_files = [
('{prefix}/share/man/man1'.format(prefix=sys.prefix), glob('data/*.1')),
('{prefix}/share/applications'.format(prefix=sys.prefix), ['data/magnus.desktop',]),
+ ('{prefix}/etc/xdg/autostart'.format(prefix=sys.prefix), ['data/magnus-autostart.desktop',]),
]
#data_files.extend(datafilelist('{prefix}/share/locale'.format(prefix=sys.prefix), 'build/mo'))
bgstack15