aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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