From 67667db73ca96c24e14d48bfc360f59da0f813a0 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 8 Jul 2010 11:21:26 +0200 Subject: [PATCH] Fix thunar-settings launch when daemon is not running yet If "Thunar --daemon" is not already running, the fire-and-forget dbus-launch just DBus-activates the Thunar daemon, but does not actually bring up the preferences dialog. Use --print-reply to keep the D-Bus connection a little longer, which fixes the issue. If the D-Bus call fails, print out the error message and exit with a non-zero code. Bug: http://bugzilla.xfce.org/show_bug.cgi?id=6547 --- thunar/thunar-settings | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/thunar/thunar-settings b/thunar/thunar-settings index faf237a..1aa5082 100755 --- a/thunar/thunar-settings +++ b/thunar/thunar-settings @@ -2,5 +2,8 @@ test "x$DISPLAY" != "x" || DISPLAY=:0 -dbus-send --session --dest=org.xfce.FileManager /org/xfce/FileManager \ - org.xfce.FileManager.DisplayPreferencesDialog "string:$DISPLAY" +if ! out=`dbus-send --session --print-reply --dest=org.xfce.FileManager /org/xfce/FileManager \ + org.xfce.FileManager.DisplayPreferencesDialog "string:$DISPLAY"`; then + echo $out + exit 1 +fi -- 1.7.0.4