WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to restart flwm display 0 & 1 on menu updates?  (Read 2959 times)

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
How to restart flwm display 0 & 1 on menu updates?
« on: May 22, 2009, 12:26:22 PM »
I thought I figured out how to restart flwm display 0 & 1 on menu updates by changing the flwm_restart script as shown below. The script seems to restart flwm for both displays but it does not fix the menu update problems. For instance when I uninstall emelfm2 the wbar button goes away but the menu entries do not. So it looks like something else in addition to flwm_restart needs to be updated. Any ideas?

Code: [Select]
#!/bin/sh

restart() {
 killall flwm
 DISPLAY=:0.0 flwm &
 [ -e /tmp/.X11-unix/X1 ] && DISPLAY=:1.0 flwm &
 }

 WBARPID=$(pidof flwm)
 [ -n "$WBARPID" ] && restart
-------------------------------------------------------------------------------
Edit: Clearing out uninstalled menu entries appears to be in the tcz-uninstall script.
« Last Edit: May 22, 2009, 12:52:21 PM by bigpcman »
big pc man