Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: si_hussain1 on June 24, 2009, 02:46:12 AM

Title: how to restart jwm
Post by: si_hussain1 on June 24, 2009, 02:46:12 AM
Hi,
  How do i restart the window manager jwm from command line or shell script?
Title: Re: how to restart jwm
Post by: junan on June 24, 2009, 04:42:08 AM
try /usr/bin/jwm_restart
Title: Re: how to restart jwm
Post by: si_hussain1 on June 24, 2009, 05:07:28 AM
Hi,
  There is no binary called jwm_restart in /usr/bin. Am i missing something?
Title: Re: how to restart jwm
Post by: junan on June 24, 2009, 06:06:47 AM
maybe it is at /usr/local/bin
if your window manager is jwm then call jwm_restart can be from anywhere.

Code: [Select]
tc@anarkia:~$ ls /usr/bin/j*
/usr/bin/jpegtran  /usr/bin/jwm_initmenu  /usr/bin/jwm_restart
/usr/bin/jwm       /usr/bin/jwm_makemenu  /usr/bin/jwm_setbackground

tc@anarkia:~$ cat /usr/bin/jwm_restart
#!/bin/sh
pidof jwm >/dev/null && jwm -restart

Title: Re: how to restart jwm
Post by: robc on June 24, 2009, 01:05:19 PM
Quote
There is no binary called jwm_restart in /usr/bin. Am i missing something?
Which version of TC are you useing? Since TC 2.0 each window manager has interface files. The interface files for the window manager extensions are script files, not binaries.

the interface files for a window manager will be in either /usr/bin or /usr/local/bin, both of which should be in your PATH. So you can just use the command `jwm_restart`

If you are still using 1.X you can use `jwm -restart` as long as X is running.
Title: Re: how to restart jwm
Post by: si_hussain1 on June 25, 2009, 03:02:40 AM
Hi,
  jwm  -restart did the trick. Thanks.