aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-08-23 11:24:46 -0500
committerTed Gould <ted@gould.cx>2011-08-23 11:24:46 -0500
commitb0eef117956490d332413394adb4bfec13218d8e (patch)
treed2c577e6d9ba86970b46d7d26a1616f19332a572 /data
parent4a40fcc027093f4f5c890036c56960b5ef918e19 (diff)
parente6492845f60367ddbaea1ffae359a8b5e2364075 (diff)
downloadayatana-indicator-session-b0eef117956490d332413394adb4bfec13218d8e.tar.gz
ayatana-indicator-session-b0eef117956490d332413394adb4bfec13218d8e.tar.bz2
ayatana-indicator-session-b0eef117956490d332413394adb4bfec13218d8e.zip
* Upstream Merge
* So much stuff... * Desktop files for system functions
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am19
-rw-r--r--data/indicator-session-logout.desktop.in.in8
-rw-r--r--data/indicator-session-restart.desktop.in.in8
-rw-r--r--data/indicator-session-shutdown.desktop.in.in8
4 files changed, 41 insertions, 2 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 27328fb..347f91f 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -18,13 +18,28 @@ gsettings_SCHEMAS = com.canonical.indicator.session.gschema.xml
convertdir = $(datadir)/GConf/gsettings
dist_convert_DATA = indicator-session.convert
+@INTLTOOL_DESKTOP_RULE@
+
+%.desktop.in: %.desktop.in.in
+ sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
+
+logout_helper_desktop_in_in_files = \
+ indicator-session-logout.desktop.in.in \
+ indicator-session-restart.desktop.in.in \
+ indicator-session-shutdown.desktop.in.in
+
+logout_helperdir = $(datadir)/applications
+logout_helper_desktop_files = \
+ $(logout_helper_desktop_in_in_files:.desktop.in.in=.desktop)
EXTRA_DIST = \
$(service_in_files) \
- $(gsettings_SCHEMAS:.xml=.xml.in)
+ $(gsettings_SCHEMAS:.xml=.xml.in) \
+ $(logout_helper_desktop_in_in_files)
CLEANFILES = \
$(dbus_services_DATA) \
- $(gsettings_SCHEMAS)
+ $(gsettings_SCHEMAS) \
+ $(logout_helper_desktop_files)
diff --git a/data/indicator-session-logout.desktop.in.in b/data/indicator-session-logout.desktop.in.in
new file mode 100644
index 0000000..78548d1
--- /dev/null
+++ b/data/indicator-session-logout.desktop.in.in
@@ -0,0 +1,8 @@
+[Desktop Entry]
+_Name=Log Out
+Try-Exec=@libexecdir@/gtk-logout-helper
+Exec=@libexecdir@/gtk-logout-helper --logout
+Icon=system-log-out
+Terminal=false
+Type=Application
+OnlyShowIn=Unity;
diff --git a/data/indicator-session-restart.desktop.in.in b/data/indicator-session-restart.desktop.in.in
new file mode 100644
index 0000000..68a2f7f
--- /dev/null
+++ b/data/indicator-session-restart.desktop.in.in
@@ -0,0 +1,8 @@
+[Desktop Entry]
+_Name=Restart
+Try-Exec=@libexecdir@/gtk-logout-helper
+Exec=@libexecdir@/gtk-logout-helper --restart
+Icon=system-restart
+Terminal=false
+Type=Application
+OnlyShowIn=Unity;
diff --git a/data/indicator-session-shutdown.desktop.in.in b/data/indicator-session-shutdown.desktop.in.in
new file mode 100644
index 0000000..419a952
--- /dev/null
+++ b/data/indicator-session-shutdown.desktop.in.in
@@ -0,0 +1,8 @@
+[Desktop Entry]
+_Name=Shut Down
+Try-Exec=@libexecdir@/gtk-logout-helper
+Exec=@libexecdir@/gtk-logout-helper --shutdown
+Icon=system-shutdown
+Terminal=false
+Type=Application
+OnlyShowIn=Unity;