[SOLVED] INewly installed apps. stopped showing in OpenBox Debian menu.
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299
Rep:
I[Solved] Newly installed apps. stopped showing in OpenBox Debian menu.
I make do with editing ~/.config/openbox/menu.xml and including the apps i want in the root menu but it doesn't seem right. After all, i have "menu" installed and with "update-menus" the newly installed applications should appear in the Debian menu, right?
Openbox 3.6.1
I should mention, it has it's own mind when it comes to showing apps. For eg. My browser, leafpad, pluma, abiword, even the media player, are not showing, while the recently installed GNS3 and VirtualBox are showing under Education and Emulators respectively without any effort on my part. In fact, even the categories for them were created automatically..!
I am using Bunsenlabs (the successor to CrunchBang) that is based on Debian Stable with Openbox. I always manually edit the menu or use gui editor (obmenu) however there is a thread on the Bunsenlabs forum may be helpful. http://forums.bunsenlabs.org/viewtopic.php?id=1753
I make do with editing ~/.config/openbox/menu.xml and including the apps i want in the root menu but it doesn't seem right. After all, i have "menu" installed and with "update-menus" the newly installed applications should appear in the Debian menu, right?
Openbox 3.6.1
I should mention, it has it's own mind when it comes to showing apps. For eg. My browser, leafpad, pluma, abiword, even the media player, are not showing, while the recently installed GNS3 and VirtualBox are showing under Education and Emulators respectively without any effort on my part. In fact, even the categories for them were created automatically..!
Hi.
Assuming you have "menu" installed and made a proper entry for it, it should act dynamic (while all the ob stuff becomes static).
If you did create a proper entry for the "menu" package, check for errors in .xsession-errors.
PS: If you prefer a clean (and dynamic/pipe) menu showing only desktop apps, try the "lxmenu-data" package. (https://packages.debian.org/jessie/lxmenu-data)
Add it as a pipe menu (use the ob gui tool if preferred and run it with:
obm-xdg /etc/xdg/menus/lxde-applications.menu
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299
Original Poster
Rep:
Thanks Ondoho, that menumaker's pretty nifty. But i was hoping to correct whatever was keeping the Debian menu from updating itself (had read something about menu overflow..). Anyway, with a few tweaks to the menu generated by mmaker, i think i can customize it to my liking. What a sweet utility, the things they come up with..pretty soon the average linux user will be as complacent as any Windows user.
Edit: Naah..My own obmenu is highly personalized and was created one bit at a time after months of tinkering with the system and getting comfortable with it. I just cannot do without some of the items in it, and which i found i could not add to the mmaker menu without saturating it to the extent that it stopped working. Nosirree, i will stick with my original, whatever doesn't appear in the Debian menu, i can always add to the root menu as i've done here. http://i.imgur.com/7G4CcHF.png
Edit: Naah..My own obmenu is highly personalized and was created one bit at a time after months of tinkering with the system and getting comfortable with it. I just cannot do without some of the items in it, and which i found i could not add to the mmaker menu without saturating it to the extent that it stopped working.
i'm not sure i understand.
if you have difficulty getting mmaker's menu to show up in your openbox root menu, maybe this can help:
<menu>
<!-- You can specify more than one menu file in here and they are all loaded,
just don't make menu ids clash or, well, it'll be kind of pointless -->
<file>mmaker.xml</file>
<file>menu.xml</file>
<hideDelay>200</hideDelay>
<middle>no</middle>
<submenuShowDelay>100</submenuShowDelay>
<submenuHideDelay>100</submenuHideDelay>
<applicationIcons>yes</applicationIcons>
<manageDesktops>yes</manageDesktops>
<showIcons>yes</showIcons>
</menu>
and something like this in my menu.xml:
Code:
<separator/>
<menu id="mmaker" />
<separator/>
in this fashion, the mmaker menu shows up as a submenu called "mmaker".
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299
Original Poster
Rep:
I didn't have any trouble with mmaker, "mmaker -f OpenBox" did everything automatically and generated a very neat menu with categories covering every application i had installed, from editors, media players, shells, you name it. But it overrode my own personalized menu which if you looked at the screenshot has these items which are absolutely indispensable, reboot, shutdown, the Openbox Restart button, the eject button, the buttons to switch between my ISP's DNS and OpenDNS..and when i try to add these to the mmaker menu, it stops showing everything.
Now about that part where the mmaker menu shows up as part of my openbox root menu, that is a possibility i have yet to explore.Will get back to you about how far i get with it soon. Thanks.
I didn't have any trouble with mmaker, "mmaker -f OpenBox" did everything automatically and generated a very neat menu with categories covering every application i had installed, from editors, media players, shells, you name it. But it overrode my own personalized menu
yes, that's what i understood and that is exactly why i posted the example above.
@mzsade,
Are you using upstream openbox or the debian package?
"Menu" and friends work just fine for me and ob's static behavior is as expected (unless you add a proper pipe menu entry for it *inside* your existing config).
Could you post your configs (as ondoho already showed)?
This still looks like a syntax error (something like /debian vs .debian).
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299
Original Poster
Rep:
/usr/share/doc/menu/html is quite informative. Copied /usr/share/menu/* to /etc/menu. Managed to add to SMPlayer and Abiword to the Debian Menu. Will need some more digesting of the article on my part to add them in the proper categories but i think i've the gist of it now. And Ondoho, that howto you posted didn't work, i got a mmaker.xml file in my .config but that's it. I think i'll stick with the default menu and obmenu and try to work my way with that.
@lens By upstream, do you mean not from the repository? I am on Debian Sid and all my apps. have been installed from the repos.
Hope these are the configs you meant.
~/.config/openbox/menu.xml
# -*- mode: shell-script; -*-
#The definitions here are used by all window managers that !include menu.h.
#This way, you can set your preferences (like whether to use xterm/rxvt,
#how long do you want your menu titles, etc) for all window-managers.
#
#This file is part of the menu package (version 1.4 and higher).
#For more information, see /usr/share/doc/menu/html
#If you prefer long titles, change the definition below accordingly.
function title()=$title
#function title()=ifelse($longtitle,$longtitle,$title)
#If you don't like to see the icons, (un)comment (out) the lines below:
function icon()=ifelse($icon32x32, $icon32x32, \
ifelse($icon16x16, $icon16x16, $icon))
function icon()= ""
#Define the X terminal emulator to use for text apps under X11.
#The following use the x-terminal-emulator alternative.
function term()=\
"x-terminal-emulator " ifnempty($visible,"-ut") \
ifnempty($geometry,"-geometry ") $geometry \
" -T \"" esc(title(),"\\\"") "\"" \
" -e sh -c \"" esc($command,"\\\"") "\""
#The above is more correct but unfortunately, some menu-methods
#do not support ''.
#function term()=\
# "x-terminal-emulator " ifnempty($visible,"-ut") \
# ifnempty($geometry,"-geometry ") $geometry \
# " -T '" escwith(title(),"'","'\\'") \
# "' -e sh -c '" escwith($command,"'","'\\'") "'"
#Examples:
#Use a specially cooked xterm instead:
#function term()=\
# "xterm -sb -sl 500 -j -ls -fn 7x14 -geometry 80x30"\
# " -T '" escwith(title(),"'","'\\'") \
# "' -e sh -c '" escwith($command,"'","'\\'") "'"
#Force use of rxvt:
#function term()=\
# "rxvt " ifnempty($visible,"-ut") \
# ifnempty($geometry,"-geometry ") $geometry \
# " -T '" escwith(title(),"'","'\\'") \
# "' -e sh -c '" escwith($command,"'","'\\'") "'"
# This sort menu entry case-insensitively.
sort=$sort ":" tolower(title())
#If you want your submenus to come before the commands themselves
#in the menus (in case of mixed menus):
#
#sort=$sort ":" ifelse($command, "1", "0" ) ":" title()
#Activate menu section translations:
outputlanguage="LOCALE"
#menu-methods need to set 'outputencoding' before translations are really
#enabled.
#The following is for the hints (or optimised tree structure):
# (For more info on these variables, see /usr/share/doc/menu/*)
#If you want menu to optimize the tree, set this to true:
hint_optimize=true
#for more info on the other variables, see /usr/share/doc/menu/
hint_nentry=6
hint_topnentry=5
hint_mixedpenalty=15
#
#The variables below are only useful if you want to speedup
#the finding of the best tree.
hint_minhintfreq=0.1
hint_mlpenalty=2000
hint_max_ntry=4
hint_max_iter_hint=5
hint_debug=false
forcetree
#Due to the existance of both /Apps/System and /System,
#menu gets confused. So, force /System in it's own section
System
endforcetree
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299
Original Poster
Rep:
[Solved]
You're right, i did use Bash, sorry, force of habit, at that point i felt i was making some headway with the Debian menu and the temptation of staying with the defaults was too great so i kindof rushed through your instructions, and i'm sure they'd have worked just fine had i followed them precisely. However, as i said, i think i have a grip on the Debian menu, to the extent that if an installed package does not automatically create an entry for it, i can create one manually for it. The only area in which i am stumped is creating the label "Office". I have labels for every category in my Debian menu except for that. This should have been created when i installed Libre Office but wasn't. Adding the label manually to /var/lib/debian-menu.xml doesn't work, it gets automatically removed. Apart from that, it's all good. If you have any thoughts on this please do share, your input has always been educational for me and i greatly appreciate it.
Edit: It occurred to me to try installing some lightweight office application besides Abiword (i had already removed LibreOffice, had no use for such an elaborate office suite, just needed a writer), so i decided to install grisbi, some obscure personal accounting software and lo and behold, i got the label "Office" in my Debian Menu and Abiword was neatly placed in there alongwith this grisbi. I owe it to this "grisbi" to at least check it out.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.