Yes it works for root and if it was not then we have a problem. This will leave root with option to refresh-menus manual
At first I thought to add at the end:
Code: Select all
/opt/bin/mk-jwm.menu
jwm -reload
(folder-changes is renamed to debmenu-changes)
/opt/bin/update-menus is symlink to /opt/bin/menu-puppy
/opt/bin/menu-puppy content:
Code: Select all
#!/bin/sh
sudo sh -c "ln -f -s /opt/bin/menu-puppy /opt/bin/update-menus; /opt/bin/debmenu-changes"
/opt/bin/refresh-menus
Code: Select all
#!/bin/sh
if [ -n $SUDO_USER ]; then
su - $SUDO_USER -c '/opt/bin/mk-jwm.menu && jwm -reload'
else
user=`echo $XAUTHORITY | sed -e 's,.*/home/,,' -e 's,/.Xauthority.*,,'`� �
su - $user -c '/opt/bin/mk-jwm.menu && jwm -reload'
fi
I think this is the fix we need.
Edit: Fred - do you see � � in the last code It is Dillo copy paste issue. Mystery solved.
Toni