From e7479210fabe056f4ef7be37ef34d5f2ba08a5c1 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 24 Oct 2017 22:34:25 +0200 Subject: Revert "Remove old autostart files." This reverts commit 088782b986aac9e6cc22deae1827c4754f960aef. --- data/CMakeLists.txt | 41 +++++++++++++++++++++++++++++++++ data/indicator-sound.desktop.in | 9 ++++++++ data/indicator-sound.upstart.desktop.in | 9 ++++++++ 3 files changed, 59 insertions(+) create mode 100644 data/indicator-sound.desktop.in create mode 100644 data/indicator-sound.upstart.desktop.in diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 69a5095..8a1dd16 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -70,6 +70,47 @@ install( DESTINATION "${CMAKE_INSTALL_DATADIR}/upstart/sessions/" ) +########################### +# XDG Autostart +########################### + +set( + INDICATOR_SOUND_XDG_AUTOSTART + "${CMAKE_CURRENT_BINARY_DIR}/indicator-sound.desktop" +) + +configure_file( + "indicator-sound.desktop.in" + ${INDICATOR_SOUND_XDG_AUTOSTART} + @ONLY +) + +install( + FILES "${INDICATOR_SOUND_XDG_AUTOSTART}" + DESTINATION "/etc/xdg/autostart" +) + +########################### +# Upstart XDG Autostart Override +########################### + +set( + INDICATOR_SOUND_UPSTART_XDG_AUTOSTART + "${CMAKE_CURRENT_BINARY_DIR}/indicator-sound.upstart.desktop" +) + +configure_file( + "indicator-sound.upstart.desktop.in" + ${INDICATOR_SOUND_UPSTART_XDG_AUTOSTART} + @ONLY +) + +install( + FILES "${INDICATOR_SOUND_UPSTART_XDG_AUTOSTART}" + DESTINATION "${CMAKE_INSTALL_DATADIR}/upstart/xdg/autostart" + RENAME "indicator-sound.desktop" +) + ########################### # GSettings ########################### diff --git a/data/indicator-sound.desktop.in b/data/indicator-sound.desktop.in new file mode 100644 index 0000000..6d31a9a --- /dev/null +++ b/data/indicator-sound.desktop.in @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=Indicator Sound +Exec=@CMAKE_INSTALL_FULL_LIBEXECDIR@/indicator-sound/indicator-sound-service +OnlyShowIn=Unity;GNOME;Pantheon; +NoDisplay=true +StartupNotify=false +Terminal=false +AutostartCondition=GNOME3 unless-session gnome diff --git a/data/indicator-sound.upstart.desktop.in b/data/indicator-sound.upstart.desktop.in new file mode 100644 index 0000000..0380ab8 --- /dev/null +++ b/data/indicator-sound.upstart.desktop.in @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=Indicator Sound +Exec=@CMAKE_INSTALL_FULL_LIBEXECDIR@/indicator-sound/indicator-sound-service +OnlyShowIn=Unity;Pantheon; +NoDisplay=true +StartupNotify=false +Terminal=false +Hidden=true -- cgit v1.2.3