From: Enrico Zini Date: Mon, 3 Aug 2009 22:18:08 +0000 (+0100) Subject: Actually run the program X-Git-Url: https://git.toastfreeware.priv.at/gregoa/zavai.git/commitdiff_plain/c4e2e682f87671501504becd919611363eea1da3?hp=9509b8d76a8a74b222deb143e412a91b1643f090;ds=sidebyside Actually run the program --- diff --git a/src/app_wm.vala b/src/app_wm.vala index e2b8b28..2b5dc5a 100644 --- a/src/app_wm.vala +++ b/src/app_wm.vala @@ -147,7 +147,16 @@ public class LauncherButton : Gtk.Button public void on_clicked() { - stderr.printf("COMMAND: %s\n", exec); + zavai.log.info("Run program: " + exec); + string[] args = new string[] { exec, null }; + Pid pid; + Process.spawn_async( + Environment.get_home_dir(), + args, + null, + SpawnFlags.SEARCH_PATH, + null, + out pid); } } @@ -234,7 +243,7 @@ public void init() zavai.log.error("Not running launcher: " + e.message); launcher = null; } - + if (launcher != null) { zavai.registry.register_applet("wm.launcher", launcher);