WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: how to restart jwm  (Read 4606 times)

Offline si_hussain1

  • Newbie
  • *
  • Posts: 44
how to restart jwm
« on: June 24, 2009, 02:46:12 AM »
Hi,
  How do i restart the window manager jwm from command line or shell script?

Offline junan

  • Jr. Member
  • **
  • Posts: 88
Re: how to restart jwm
« Reply #1 on: June 24, 2009, 04:42:08 AM »
try /usr/bin/jwm_restart
fun and fearless ...

Offline si_hussain1

  • Newbie
  • *
  • Posts: 44
Re: how to restart jwm
« Reply #2 on: June 24, 2009, 05:07:28 AM »
Hi,
  There is no binary called jwm_restart in /usr/bin. Am i missing something?

Offline junan

  • Jr. Member
  • **
  • Posts: 88
Re: how to restart jwm
« Reply #3 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

fun and fearless ...

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: how to restart jwm
« Reply #4 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.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline si_hussain1

  • Newbie
  • *
  • Posts: 44
Re: how to restart jwm
« Reply #5 on: June 25, 2009, 03:02:40 AM »
Hi,
  jwm  -restart did the trick. Thanks.