[Xfce4-commits] <xfce4-settings:xfce-4.8> Do not show an error if spawning fails (bug #7574).

Nick Schermer noreply at xfce.org
Sun May 8 22:56:01 CEST 2011


Updating branch refs/heads/xfce-4.8
         to cd4497fbf25c52159cb341fc8f4b451ad4c5aac8 (commit)
       from 39dde4d2c7253cf79fe7d2b6ea04ac2cfe1cc047 (commit)

commit cd4497fbf25c52159cb341fc8f4b451ad4c5aac8
Author: Nick Schermer <nick at xfce.org>
Date:   Sun May 8 22:54:06 2011 +0200

    Do not show an error if spawning fails (bug #7574).
    
    g_error calls abort, so it should never be used unless the
    error is also fatal for the application.

 xfce4-settings-helper/keyboard-shortcuts.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xfce4-settings-helper/keyboard-shortcuts.c b/xfce4-settings-helper/keyboard-shortcuts.c
index aabd084..81ae248 100644
--- a/xfce4-settings-helper/keyboard-shortcuts.c
+++ b/xfce4-settings-helper/keyboard-shortcuts.c
@@ -282,7 +282,7 @@ xfce_keyboard_shortcuts_helper_shortcut_activated (XfceShortcutsGrabber        *
 
   if (!succeed)
     {
-      g_error ("Failed to spawn command \"%s\": %s", sc->command, error->message);
+      g_warning ("Failed to spawn command \"%s\": %s", sc->command, error->message);
       g_error_free (error);
     }
 



More information about the Xfce4-commits mailing list