aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bzrignore2
-rw-r--r--data/Makefile.am17
-rw-r--r--data/indicator-session-shutdown.desktop.in.in8
-rw-r--r--po/POTFILES.in1
4 files changed, 26 insertions, 2 deletions
diff --git a/.bzrignore b/.bzrignore
index 3a062ec..7c24aab 100644
--- a/.bzrignore
+++ b/.bzrignore
@@ -203,3 +203,5 @@ src/libsession_la-user-widget.lo
consolekit-seat-client.h
data/com.canonical.indicator.session.gschema.valid
data/com.canonical.indicator.session.gschema.xml
+indicator-session-shutdown.desktop
+indicator-session-shutdown.desktop.in
diff --git a/data/Makefile.am b/data/Makefile.am
index 27328fb..f2cfee8 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -18,13 +18,26 @@ 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-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-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;
diff --git a/po/POTFILES.in b/po/POTFILES.in
index df89ec9..d19dc2e 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,6 +1,7 @@
[encoding: UTF-8]
data/com.canonical.indicator.session.gschema.xml.in
data/extra-sessions/classic-desktop.desktop.in.in
+data/indicator-session-shutdown.desktop.in.in
src/settings-helper.c
src/lock-helper.c
src/gtk-logout-helper.c