Execute ibus-setup in panel correctly
authorPeng Huang <shawn.p.huang@gmail.com>
Thu, 5 Jan 2012 20:11:14 +0000 (15:11 -0500)
committerPeng Huang <shawn.p.huang@gmail.com>
Tue, 21 Feb 2012 16:51:53 +0000 (11:51 -0500)
ui/gtk3/panel.vala

index da122b7..b00f551 100644 (file)
@@ -214,7 +214,7 @@ class Panel : IBus.PanelService {
             m_setup_pid = 0;
         }
 
-        string binary = GLib.Path.build_path(BINDIR, "ibus-setup", null);
+        string binary = GLib.Path.build_filename(BINDIR, "ibus-setup");
         try {
             GLib.Process.spawn_async(null,
                                      {binary, "ibus-setup"},
@@ -223,7 +223,7 @@ class Panel : IBus.PanelService {
                                      null,
                                      out m_setup_pid);
         } catch (GLib.SpawnError e) {
-            warning("Execute %s failed!", binary);
+            warning("Execute %s failed! %s", binary, e.message);
             m_setup_pid = 0;
         }