[nautilus] autostart: add an autostart desktop file
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] autostart: add an autostart desktop file
- Date: Tue, 24 May 2011 18:46:20 +0000 (UTC)
commit fc3d9af1dff85ef27ff44ea4e71b269a2b700e7d
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 aa76c16..19eddcd 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
@@ -37,11 +42,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]