aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodney Dawes <rodney.dawes@canonical.com>2017-02-06 12:42:31 -0500
committerRodney Dawes <rodney.dawes@canonical.com>2017-02-06 12:42:31 -0500
commitab90c817e8af1064373967a05312092f2e90b76c (patch)
treef4f6cc47cb2040b14b116f9b75480a7df1cb192a
parent472445887cb7f7a16e2c3fb5dca1f19a52d55bab (diff)
downloadayatana-indicator-display-ab90c817e8af1064373967a05312092f2e90b76c.tar.gz
ayatana-indicator-display-ab90c817e8af1064373967a05312092f2e90b76c.tar.bz2
ayatana-indicator-display-ab90c817e8af1064373967a05312092f2e90b76c.zip
Remoe old autostart files.
-rw-r--r--data/CMakeLists.txt41
-rw-r--r--data/indicator-display.desktop.in9
-rw-r--r--data/indicator-display.upstart.desktop.in9
-rw-r--r--debian/indicator-display.maintscript1
4 files changed, 1 insertions, 59 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 2e42eda..d74ca48 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -19,47 +19,6 @@ install (FILES "${UPSTART_JOB_FILE}"
DESTINATION "${UPSTART_JOBS_DIR}")
##
-## XDG Autostart File
-##
-
-# where to install
-set (XDG_AUTOSTART_DIR "/etc/xdg/autostart")
-message (STATUS "${XDG_AUTOSTART_DIR} is the XDG Autostart install dir")
-
-set (XDG_AUTOSTART_NAME "${CMAKE_PROJECT_NAME}.desktop")
-set (XDG_AUTOSTART_FILE "${CMAKE_CURRENT_BINARY_DIR}/${XDG_AUTOSTART_NAME}")
-set (XDG_AUTOSTART_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${XDG_AUTOSTART_NAME}.in")
-
-# build it
-set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}")
-configure_file ("${XDG_AUTOSTART_FILE_IN}" "${XDG_AUTOSTART_FILE}")
-
-# install it
-install (FILES "${XDG_AUTOSTART_FILE}"
- DESTINATION "${XDG_AUTOSTART_DIR}")
-
-##
-## Upstart XDG Autostart Override
-##
-
-# where to install
-set (UPSTART_XDG_AUTOSTART_DIR "${CMAKE_INSTALL_FULL_DATAROOTDIR}/upstart/xdg/autostart")
-message (STATUS "${UPSTART_XDG_AUTOSTART_DIR} is the Upstart XDG autostart override dir")
-
-set (UPSTART_XDG_AUTOSTART_NAME "${CMAKE_PROJECT_NAME}.upstart.desktop")
-set (UPSTART_XDG_AUTOSTART_FILE "${CMAKE_CURRENT_BINARY_DIR}/${UPSTART_XDG_AUTOSTART_NAME}")
-set (UPSTART_XDG_AUTOSTART_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${UPSTART_XDG_AUTOSTART_NAME}.in")
-
-# build it
-set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}")
-configure_file ("${UPSTART_XDG_AUTOSTART_FILE_IN}" "${UPSTART_XDG_AUTOSTART_FILE}")
-
-# install it
-install (FILES "${UPSTART_XDG_AUTOSTART_FILE}"
- DESTINATION "${UPSTART_XDG_AUTOSTART_DIR}"
- RENAME "${XDG_AUTOSTART_NAME}")
-
-##
## Systemd Unit File
##
diff --git a/data/indicator-display.desktop.in b/data/indicator-display.desktop.in
deleted file mode 100644
index b0017b1..0000000
--- a/data/indicator-display.desktop.in
+++ /dev/null
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=Indicator Display
-Exec=@pkglibexecdir@/indicator-display-service
-OnlyShowIn=Unity;GNOME;
-NoDisplay=true
-StartupNotify=false
-Terminal=false
-AutostartCondition=GNOME3 unless-session gnome
diff --git a/data/indicator-display.upstart.desktop.in b/data/indicator-display.upstart.desktop.in
deleted file mode 100644
index 7e6cfe6..0000000
--- a/data/indicator-display.upstart.desktop.in
+++ /dev/null
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=Indicator Display
-Exec=@pkglibexecdir@/indicator-display-service
-OnlyShowIn=Unity;
-NoDisplay=true
-StartupNotify=false
-Terminal=false
-Hidden=true
diff --git a/debian/indicator-display.maintscript b/debian/indicator-display.maintscript
new file mode 100644
index 0000000..2f6e7f6
--- /dev/null
+++ b/debian/indicator-display.maintscript
@@ -0,0 +1 @@
+rm_conffile /etc/xdg/autostart/indicator-display.desktop 0replaceme~