From 40df655f45bdaf923c84390931efda3b4c8e075e Mon Sep 17 00:00:00 2001 From: Mathieu Bridon Date: Fri, 27 Apr 2018 13:30:32 +0200 Subject: [PATCH] Autostart the demo agent by default This is necessary for most desktops to continue working as they were before GeoClue required an agent. However, GNOME already has its own agent, which allows authorizing apps individually, and as such doesn't need the demo agent. https://bugs.freedesktop.org/show_bug.cgi?id=106236 --- demo/Makefile.am | 5 +++++ demo/geoclue-demo-agent.desktop.in.in | 1 + 2 files changed, 6 insertions(+) diff --git a/demo/Makefile.am b/demo/Makefile.am index d56c404..d552121 100644 --- a/demo/Makefile.am +++ b/demo/Makefile.am @@ -24,6 +24,11 @@ if BUILD_DEMO_AGENT apps_DATA += geoclue-demo-agent.desktop endif +if BUILD_DEMO_AGENT +autostartdir = $(sysconfdir)/xdg/autostart +autostart_DATA = geoclue-demo-agent.desktop +endif + @INTLTOOL_DESKTOP_RULE@ geoclue-where-am-i.desktop.in: geoclue-where-am-i.desktop.in.in diff --git a/demo/geoclue-demo-agent.desktop.in.in b/demo/geoclue-demo-agent.desktop.in.in index ac52fa0..257f809 100644 --- a/demo/geoclue-demo-agent.desktop.in.in +++ b/demo/geoclue-demo-agent.desktop.in.in @@ -4,6 +4,7 @@ _GenericName=Demo geoclue agent _Keywords=geolocation; Exec=@libexecdir@/geoclue-2.0/demos/agent Icon=mark-location-symbolic +NotShowIn=GNOME; NoDisplay=true Terminal=false Type=Application -- 2.17.0