[nautilus/gnome-3-0] autostart: add an autostart desktop file



commit ef555cd9a142cc0e6c4dbd99aa37124f1c8f7578
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue May 24 14:43:23 2011 -0400

    autostart: add an autostart desktop file
    
    It will autostart nautilus automatically based on the GSettings key
    org.gnome.desktop.background show-desktop-icons.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=647267

 data/Makefile.am                   |    7 +++++++
 data/nautilus-autostart.desktop.in |    5 +++++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 6cc3fab..2705336 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -9,6 +9,11 @@ desktop_DATA     = $(desktop_in_files:.desktop.in=.desktop)
 desktop_in_files = 					\
 	nautilus.desktop.in				\
 	nautilus-autorun-software.desktop.in
+
+autostartdir     = $(sysconfdir)/xdg/autostart
+autostart_in_files = nautilus-autostart.desktop.in
+autostart_DATA = $(autostart_in_files:.desktop.in=.desktop)
+
 @INTLTOOL_DESKTOP_RULE@
 
 mimedir = $(datadir)/mime/packages
@@ -36,11 +41,13 @@ EXTRA_DIST = $(nautilusdata_DATA) 	\
 	$(xml_in_files) 		\
 	$(desktop_in_files)		\
 	$(service_in_files)		\
+	$(autostart_in_files)		\
 	$(NULL)
 
 CLEANFILES = $(xml_files)	\
 	$(desktop_DATA)		\
 	$(service_DATA)		\
+	$(autostart_DATA)	\
 	$(NULL)
 
 SUBDIRS = \
diff --git a/data/nautilus-autostart.desktop.in b/data/nautilus-autostart.desktop.in
new file mode 100644
index 0000000..f105b7b
--- /dev/null
+++ b/data/nautilus-autostart.desktop.in
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Type=Application
+Name=Files
+Exec=nautilus -n
+AutostartCondition=GSettings org.gnome.desktop.background show-desktop-icons



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]