Thanks Fred.fredx181 wrote:Here is low resources jwm-obmenu v 0.0.3-nocache.
Removing libgdk-pixbuf2.0 dependency from Wheezy deb makes possible to use jwm-obmenu in DD-Squeeze also
I will test it in all versions but it will take some time.
Toni
Hi Fred,fredx181 wrote:menu-cached is very stubborn, btw, needs to get killed by first remove ~/.cache/menus/* and then 'pkill menu-cached'
Code: Select all
sync && echo 3 > /proc/sys/vm/drop_caches
Yes, that's right. removing ~/.cache/menus/* is not needed, left it in the script though, as it doesn't do any harm.menu-cached is very stubborn, btw, needs to get killed by first remove ~/.cache/menus/* and then 'pkill menu-cached'
Hi Fred,
I didn't find menu-cached stubborn,
Code: Select all
mint bin # ./menu-openbox
cat: /root/.jwm/jwm.tail: No such file or directory
** Message: wrote to /root/.cache/jwm-app-menu
Thanks, I couldn't understand first, but now I think I do, probably William removed mkjwmmenu earlier, as the result that ~/.jwm/jwm.tail doesn't exist anymore.Toni wrote:I think jwm-obmenu needs mkjwmmenu as dependency inside control file as the setup is now.
Fine for me also, but in case you'd like it as independent package, /opt/bin/menu-openbox script can be changed easily by having something like this (mkdir ~/.jwm and adding jwm.tail to copy commands):In my opinion jwm-obmenu package depending on mkjwmmenu is fine. I don't plan to remove mkjwmmenu.
Code: Select all
mkdir -p $HOME/.jwm 2> /dev/null
if [ "`whoami`" != "root" ]; then
cp -a /etc/xdg/templates/jwm_user.head $HOME/.jwm/jwm.head
else
cp -a /etc/xdg/templates/jwm.head $HOME/.jwm/
fi
cp -a /etc/xdg/templates/jwm.main $HOME/.jwm/
cp -a /etc/xdg/templates/jwm.tail $HOME/.jwm/
# cd $HOME/.jwm/
cat $HOME/.jwm/jwm.head $HOME/.jwm/jwm.main $HOME/.jwm/jwm.tail > $HOME/.jwmrc
I agree, it's disappointing.I guess English is the only language with 100% supported localisation for main menu categories and names inside desktop files.
It needs probably sudo, BTW, it could be very useful for you to run this command from time to time (as you have little RAM), to avoid as much as possible having to use swap, I agree with William, the system gets terribly slow when using swap.The suggestion from William for clearing the cache command didn't work from user account from quick testing installing packages with apt-get for me
Yes, to many programs in e.g. System or Accesories from menu-openbox, it's partly because we added multiple categories in custom made .desktop files.Edit: One thing I like more in Terry's menu is it doesn't add duplocate menu entries in different categories. Testing all programs from menu is faster when you have only one entry for each program.
I'm not sure about this. But after removing mkjwmenu if you don't run "jwm -restart" and running menu-openbox it will appear without Shutdown category. But "jwm -restart" will break it again.fredx181 wrote:Thanks, I couldn't understand first, but now I think I do, probably William removed mkjwmmenu earlier, as the result that ~/.jwm/jwm.tail doesn't exist anymore.
But how could the menu re-appear again after reboot?
Thanks, probably I will add only mkjwmmenu as dependency in the deb and include jwm-openbox in next iso as fourth menu choice after some testing. It is great to have it since the ram usage problem is solved.I don't mind how it is done. I'll leave the choice up to you, as Jwm version is your project.
Yes, it works with sudo but I mean I couldn't make the command work inside jwm-obmenu scripts for user account. Maybe I will try again later.It needs probably sudo...The suggestion from William for clearing the cache command didn't work from user account from quick testing installing packages with apt-get for me
Most extra categories are included to sort better the entries in Mitras menu-mkjwm or I get too many in category Others. It is difficult to make the desktop file suitable for different menu systems without extra categories. And some categories are different for Jwm and OpenBox version. We can't avoid this I'm afraid.Yes, to many programs in e.g. System or Accesories from menu-openbox, it's partly because we added multiple categories in custom made .desktop files.
But your description of what would happen, Toni, seems to be correct. When I said menu reappeared I didn't at the time notice that jwm tail part (Shutdown etc) still wasn't there. And on rebooting this morning the whole menu is gone again.saintless wrote:Hi Fred.I'm not sure about this. But after removing mkjwmenu if you don't run "jwm -restart" and running menu-openbox it will appear without Shutdown category. But "jwm -restart" will break it again.fredx181 wrote:Thanks, I couldn't understand first, but now I think I do, probably William removed mkjwmmenu earlier, as the result that ~/.jwm/jwm.tail doesn't exist anymore.
But how could the menu re-appear again after reboot?
Changing the jwm theme will copy new jwm.tail in ~/.jwm and fix the menu again.
Code: Select all
sudo apt-get update
sudo apt-get install jwm-obmenu
Even more useful can be setting the amount of RAM left as a limit to begin using swap, just for info, in case you don't know, you can add the line "vm.swappiness=10" to /etc/sysctl.confit could be very useful for you to run this command from time to time (as you have little RAM), to avoid as much as possible having to use swap, I agree with William, the system gets terribly slow when using swap.
Code: Select all
echo "vm.swappiness=10" >> /etc/sysctl.conf