Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: tinypoodle on September 06, 2010, 07:33:37 AM

Title: jwm creating redundant shell instances
Post by: tinypoodle on September 06, 2010, 07:33:37 AM
For each aterm opened from jwm tray, a redundant '/bin/sh -c' process is created.
Same for each time watcher is swallowed on each jwm (re)start.
(using jwm-snapshot, TC 2.10).

To prevent this I did following:

Creation of shell scripts bterm and bwatcher in PATH
Code: [Select]
tc@box:~$ cat .local/bin/bterm
#!/bin/sh

exec aterm &
tc@box:~$ cat .local/bin/bwatcher
#!/bin/sh

exec watcher &

then in '/home/tc/.jwmrc-tray' i replaced the terms aterm -> bterm & watcher -> bwatcher

Note: If using any options with watcher, those have to be included in the script.

I could guess there might probably be more elegant solutions, but this did the job for me.  ;D
Title: Re: jwm creating redundant shell instances
Post by: ^thehatsrule^ on September 07, 2010, 10:08:22 AM
It probably uses sh -c to launch them.  I think using
Code: [Select]
#!/bin/sh
exec app
would be "more correct" though
Title: Re: jwm creating redundant shell instances
Post by: tinypoodle on September 07, 2010, 10:57:39 AM
It probably uses sh -c to launch them.  I think using
Code: [Select]
#!/bin/sh
exec app
would be "more correct" though
Umm, do you mean just to omit the "&" in the scripts i created instead??