From df5a269d2a36793b301889aaddc9701090311f2c Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Thu, 6 Jun 2019 15:10:32 +0100 Subject: data: Add magnus-autostart.desktop. --- data/magnus-autostart.desktop | 8 ++++++++ setup.py | 1 + 2 files changed, 9 insertions(+) create mode 100644 data/magnus-autostart.desktop 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')) -- cgit