Commit fd82f4ad authored by Zeeshan Ali's avatar Zeeshan Ali

demo: Install a desktop file for demo app

parent e0c688c5
......@@ -8,6 +8,14 @@ where_am_i_CFLAGS = $(GEOCLUE_CFLAGS) \
-DLOCALEDIR="\"$(datadir)/locale\""
where_am_i_LDADD = $(GEOCLUE_LIBS)
appsdir = $(datadir)/applications
apps_DATA = geoclue-where-am-i.desktop
@INTLTOOL_DESKTOP_RULE@
geoclue-where-am-i.desktop.in: geoclue-where-am-i.desktop.in.in
$(AM_V_GEN) sed -e "s|[@]datadir@|$(datadir)|g" $< > $@
if BUILD_DEMO_AGENT
demo_PROGRAMS += agent
endif # BUILD_DEMO_AGENT
......@@ -37,3 +45,12 @@ agent_CFLAGS = $(DEMO_AGENT_CFLAGS) \
agent_LDADD = $(DEMO_AGENT_LIBS)
-include $(top_srcdir)/git.mk
EXTRA_DIST = \
geoclue-where-am-i.desktop.in.in \
$(NULL)
CLEANFILES = \
geoclue-where-am-i.desktop.in \
$(NULL)
[Desktop Entry]
_Name=Where am I?
_GenericName=Demo geolocation application
_Comment=Find your current location
_Keywords=geolocation;
Exec=@datadir@/geoclue-2.0/demos/where-am-i
Icon=mark-location-symbolic
NoDisplay=true
Terminal=true
Type=Application
......@@ -190,8 +190,7 @@ on_client_props_proxy_ready (GObject *source_object,
exit (-3);
}
/* FIXME: We should provide a desktop file? */
desktop_id = g_variant_new ("s", "geoclue-demo-app");
desktop_id = g_variant_new ("s", "geoclue-where-am-i");
g_dbus_proxy_call (client_props,
"Set",
......@@ -272,7 +271,6 @@ main (gint argc, gchar *argv[])
textdomain (GETTEXT_PACKAGE);
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
g_set_application_name (_("Where Am I"));
g_dbus_proxy_new_for_bus (G_BUS_TYPE_SYSTEM,
G_DBUS_PROXY_FLAGS_NONE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment