wmiirc-rumai

git clone git://oldgit.suckless.org/wmiirc-rumai/
Log | Files | Refs | README | LICENSE

commit cca1b550a8cb0fb27dfde0258a91027d33503c9f
parent 95c902fcca6045e536d272be2619267a0dca64e2
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date:   Fri, 15 Sep 2006 21:46:29 -0700

[project @ 7eb2f1056859add624d909cd3dae049d96598243]

[project @ 96]
Implemented Constantine Evans' idea to use fork/exec instead of system when launching programs.

Diffstat:
HISTORY | 4+++-
wmiirc-config.rb | 4++--
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/HISTORY b/HISTORY @@ -2,7 +2,9 @@ This is a history of major changes to {my wmii configuration}[http://people.ucsc = 2006-09-15 -* Added Wmii.get_view and Wmii.get_client methods. +* Added Wmii.get_view and Wmii.get_client methods, to further minimize hard-coded IXP file system paths. This will make it easier to upgrade to wmii-4 later on. + +* Implemented Constantine Evans' idea to use fork/exec instead of system when launching programs. = 2006-09-14 diff --git a/wmiirc-config.rb b/wmiirc-config.rb @@ -224,13 +224,13 @@ SHORTCUTS = { # launch an internal action by choosing from a menu "#{MENU_SEQ}i" => lambda do action = show_menu(ACTION_MENU) - system(action << '&') unless action.empty? + fork {exec action} unless action.empty? end, # launch an external program by choosing from a menu "#{MENU_SEQ}e" => lambda do program = show_menu(PROGRAM_MENU) - system(program << '&') unless program.empty? + fork {exec program} unless program.empty? end, # focus any view by choosing from a menu