From 0faffda2022b2b0778ea7482b56d97b4c61a5180 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 11 Jun 2007 09:06:15 +0000 Subject: [PATCH] Force launching nautilus in the home directory, rather than relying on it 2007-06-11 Bastien Nocera * gnome-settings-multimedia-keys.c: (do_action): Force launching nautilus in the home directory, rather than relying on it opening there (Closes: #356069) svn path=/trunk/; revision=7716 --- gnome-settings-daemon/ChangeLog | 8 +++++++- gnome-settings-daemon/gnome-settings-multimedia-keys.c | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/gnome-settings-daemon/ChangeLog b/gnome-settings-daemon/ChangeLog index a64438a11..af13f1912 100644 --- a/gnome-settings-daemon/ChangeLog +++ b/gnome-settings-daemon/ChangeLog @@ -1,3 +1,9 @@ +2007-06-11 Bastien Nocera + + * gnome-settings-multimedia-keys.c: (do_action): Force launching + nautilus in the home directory, rather than relying on it + opening there (Closes: #356069) + 2007-06-06 Rodrigo Moya * gnome-settings-default-editor.c: @@ -550,7 +556,7 @@ * actions/acme-volume-gstreamer.c: (_acme_set_mixer), (acme_volume_gstreamer_open): optional use of gstreamer0.10, patch based on the work - done by Saleem Abdulrasool and Tim-Philipp Müller (Fixes: #326257) + done by Saleem Abdulrasool and Tim-Philipp M?ller (Fixes: #326257) 2006-01-14 Rodney Dawes diff --git a/gnome-settings-daemon/gnome-settings-multimedia-keys.c b/gnome-settings-daemon/gnome-settings-multimedia-keys.c index 7ecc8c00b..9e21fa352 100644 --- a/gnome-settings-daemon/gnome-settings-multimedia-keys.c +++ b/gnome-settings-daemon/gnome-settings-multimedia-keys.c @@ -631,6 +631,7 @@ static gboolean do_action (Acme *acme, int type) { gchar *cmd; + gchar *path; switch (type) { case MUTE_KEY: @@ -645,7 +646,11 @@ do_action (Acme *acme, int type) do_eject_action (acme); break; case HOME_KEY: - execute (acme, "nautilus", FALSE, FALSE); + path = g_shell_quote (g_get_home_dir ()); + cmd = g_strconcat ("nautilus ", path, NULL); + g_free (path); + execute (acme, cmd, FALSE, FALSE); + g_free (cmd); break; case SEARCH_KEY: execute (acme, "gnome-search-tool", FALSE, FALSE);