all repos — tint2 @ 7a2004c979618eae2c527fc654977b3f4030128e

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

fixed memleak

git-svn-id: http://tint2.googlecode.com/svn/trunk@523 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
thilor77 thilor77@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

7a2004c979618eae2c527fc654977b3f4030128e

parent

0cf39bb1beb9ea0fb1cec010636a4ba36cc0d4b9

2 files changed, 3 insertions(+), 14 deletions(-)

jump to
M src/clock/clock.csrc/clock/clock.c

@@ -301,6 +301,6 @@ case 3:

command = clock_rclick_command; break; } - tint_exec(command); + tint_exec(command); }
M src/launcher/launcher.csrc/launcher/launcher.c

@@ -251,18 +251,7 @@ void launcher_action(LauncherIcon *icon)

{ char *cmd = malloc(strlen(icon->cmd) + 10); sprintf(cmd, "(%s&)", icon->cmd); - if (cmd) { - pid_t pid; - pid = fork(); - if (pid == 0) { - // change for the fork the signal mask - // sigset_t sigset; - // sigprocmask(SIG_SETMASK, &sigset, 0); - // sigprocmask(SIG_UNBLOCK, &sigset, 0); - // exec - execl("/bin/sh", "/bin/sh", "-c", cmd, NULL); - _exit(0); - } - } + tint_exec(cmd); + free(cmd); }