Re: Auto update menu?

I've been looking for something like this.
I use Wine for some win programs. In Gnome, Wine gets it's own menu and automatically adds the apps I install there. I haven't found this in CrunchBang. It would be a nice feature.

52

Re: Auto update menu?

I do like the menu that this tool generates, however I really want to be able to add my web browser and music player to the top level items. I'm currently doing this by using the non-piped output, but of course then I lose the auto-update fuctionality and have to re-edit the menu after every manual update.

Is there any chance of adding some user-defined top level items to the config?

Re: Auto update menu?

Thanks A lot corenominal. I didn't really understand what you meant by

" Add the following line to ~/.config/openbox/menu.xml where you would like the menu to appear:

<menu id="Debian" /> "

So I backed up the whole menu.xml , left the first line, and inserted <menu id="Debian" /> " ... worked like a charm... i'm assuming there was something I missed, i'm quite a n00b, I really like #! , it's giving me a chance to learn more. Thanks again!

Re: Auto update menu?

I would be interested to know whether or not the Debian menu should be enabled by default, or left up to the user to decide? Personally, I would leave it off, but that is just me.

first time i used jwm the debian menu was really annoying. i imagine that one who never really used linux before would be terrified by the menu as there is some settings in it that is hard to avoid clicking on when you mouse over it trying to find things in system menu like language locale settings. i done that many times until i found out how to disable the debian menu.  i think its a wise choice to leave it off.

Re: Auto update menu?

using obm-xdg and a suitable xdg menu(I use /etc/xdg/xubuntu/menus/xfce-applications.menu)  in a piped menu works for me!
Shamelessly borrowed from

http://en.gentoo-wiki.com/wiki/Openbox

Andy

Re: Auto update menu?

I actually don't mind the debian menu, my commonly used programs I just launch with alt+f2 but for things I can't even remember if I installed or what they are called the debian menu helps a ton.

I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.

Re: Auto update menu?

I love the way the openbox menu works now. Please don't change it. I never liked the debian menu either. Sometimes a program gets auto-added and sometimes it doesn't. And many times a program gets added to some weird category.

The way crunchbangs menu works now is terrific. It takes literally 5 seconds to add a new program to the menu, and you get to control what it's called and where it goes.

If you take the time to learn how to configure the menu (about 10 minutes), you won't be disappointed.

Here is a little tutorial I created. I hope it helps smile

http://sites.google.com/site/justabunchofstuff/

Last edited by mookiemu (2009-09-23 06:03:31)

Re: Auto update menu?

mookiemu wrote:

I love the way the openbox menu works now. Please don't change it. I never liked the debian menu either. Sometimes a program gets auto-added and sometimes it doesn't. And many times a program gets added to some weird category.

The way crunchbangs menu works now is terrific. It takes literally 5 seconds to add a new program to the menu, and you get to control what it's called and where it goes.

If you take the time to learn how to configure the menu (about 10 minutes), you won't be disappointed.

Here is a little tutorial I created. I hope it helps smile

http://sites.google.com/site/justabunchofstuff/

I think one difficulty new users have with the Openbox menu is locating the appropriate execute commands.  I use xfce4appfinder or look in the usr/bin folder for this purpose. 

Also a comment on the Demian menu.  You mentioned that some applications are auto-added while others are not. I agree that this can and does get both confusing and frustrating, especially for the typical end-user.  From what I have seen, Debian menu will Not auto-update an application that does not have a .Desktop entry in the usr/share/applications folder.  If you create a missing .Desktop file, Debian menu handles things nicely.  Still, the openbox menu is fairly simple, assuming you know the command that you need to execute the desired app.

Cool tutorial.

#! 10 “Statler” r20110207 32-bit & Openbox

Re: Auto update menu?

nabilalk wrote:

I think one difficulty new users have with the Openbox menu is locating the appropriate execute commands.  I use xfce4appfinder or look in the usr/bin folder for this purpose. 

Also a comment on the Demian menu.  You mentioned that some applications are auto-added while others are not. I agree that this can and does get both confusing and frustrating, especially for the typical end-user.  From what I have seen, Debian menu will Not auto-update an application that does not have a .Desktop entry in the usr/share/applications folder.  If you create a missing .Desktop file, Debian menu handles things nicely.  Still, the openbox menu is fairly simple, assuming you know the command that you need to execute the desired app.

Cool tutorial.

Thanks!

I know what you mean about knowing the run command. But a simple google search will give you the execute command for just about any program. For instance, I only installed the spreadsheet from open office and not the whole suite, and I wanted to add it to the #! menu. For most programs, the execute command is obvious. Ie. for Gimp the execute command is gimp, for Firefox it's firefox, but for open office spreadsheet, it isn't so obvious. A quick google search bought back two results: ooffice -calc  and oocalc. And they both work.

I have yet to come across a program whose run command I haven't found on google. But I assume that this information would be somewhere on the program developers site and if all else fails you can probably post a question on the programs forum. I've never had to do this though.

Re: Auto update menu?

mookiemu wrote:
nabilalk wrote:

I think one difficulty new users have with the Openbox menu is locating the appropriate execute commands.  I use xfce4appfinder or look in the usr/bin folder for this purpose. 

Also a comment on the Demian menu.  You mentioned that some applications are auto-added while others are not. I agree that this can and does get both confusing and frustrating, especially for the typical end-user.  From what I have seen, Debian menu will Not auto-update an application that does not have a .Desktop entry in the usr/share/applications folder.  If you create a missing .Desktop file, Debian menu handles things nicely.  Still, the openbox menu is fairly simple, assuming you know the command that you need to execute the desired app.

Cool tutorial.

Thanks!

I know what you mean about knowing the run command. But a simple google search will give you the execute command for just about any program. For instance, I only installed the spreadsheet from open office and not the whole suite, and I wanted to add it to the #! menu. For most programs, the execute command is obvious. Ie. for Gimp the execute command is gimp, for Firefox it's firefox, but for open office spreadsheet, it isn't so obvious. A quick google search bought back two results: ooffice -calc  and oocalc. And they both work.

I have yet to come across a program whose run command I haven't found on google. But I assume that this information would be somewhere on the program developers site and if all else fails you can probably post a question on the programs forum. I've never had to do this though.


lol, I had not considered a Google Search for the command.  What specifically did you search? Open office Spreadsheet command, linux?

#! 10 “Statler” r20110207 32-bit & Openbox

Re: Auto update menu?

lol! the search term I used was:
open office calc run command ubuntu

Funny thing is that google autofilled the search term as I typed it and I selected one. (How did we ever get along before google smile )

The very item at the top of the search results gave me a conversation from Ubuntu forums with both answers.

Re: Auto update menu?

Everytime I install new app and want to know its command, I use gmrun (alt+F2), type 1,2 or 3 "starting" letters then press tab and usually find what I want. wink

Eee PC 901 XP
CrunchBang 9.04, Lite

Re: Auto update menu?

MarTiny wrote:

Everytime I install new app and want to know its command, I use gmrun (alt+F2), type 1,2 or 3 "starting" letters then press tab and usually find what I want. wink

Nice tip! thanks smile

Re: Auto update menu?

mookiemu wrote:
MarTiny wrote:

Everytime I install new app and want to know its command, I use gmrun (alt+F2), type 1,2 or 3 "starting" letters then press tab and usually find what I want. wink

Nice tip! thanks smile


You can also use 'apropos' command at the terminal to search app descriptions.   apropos mail for example provides commands for email clients and other apps related to email.   Good if you're not connected to the internet :]

Re: Auto update menu?

...or open Synaptic, find the app you installed, check "installed files" under properties and look for something in a 'bin' directory eg /bin or /usr/bin or maybe /usr/sbin or whatever. That's likely to be the command that came with that app. (There may be more than one command - sometimes you discover new uses for your app that way.)

John
------------------------
( a boring Japan blog , and idle twitterings )
“There is more Unix-nature in one line of shell script than there is in ten thousand lines of C.” - Master Foo

Re: Auto update menu?

johnraff wrote:

...or open Synaptic, find the app you installed, check "installed files" under properties and look for something in a 'bin' directory eg /bin or /usr/bin or maybe /usr/sbin or whatever. That's likely to be the command that came with that app. (There may be more than one command - sometimes you discover new uses for your app that way.)

Exactly what i do... smile

Re: Auto update menu?

I am actually liking the debian menu! yes there is alot more to go through to get to what you want but on my laptop i am using shortkeys most of the time anyway to go into things. what i like about debmenu so far is that its showing me things i didn't know i had on here but i also either don't need or was wondering what was being used for it. i think personally i am going to continue using it for the moment.

used to method corenominal mentioned and backed up "menu.xml" as "menu.xml.backup."
then after backing it up deleted everything except first and last line and entered to line "<menu id="Debian" />" and it worked like a charm. going to be removing alot of things i know for a fact i do not need but some of this stuff is pretty cool lol.

NOTE: when i went to install menu using sudo apt-get install menu it told me was already installed.

"Alles brennt wenn die Flamme ist heiß genug, die Welt ist nichts aber ein tiegel"

Re: Auto update menu?

Resurrecting this thread.

I can't get the Debian menu to work in my Openbox menu. I uncommented the code in rc.xml, and I added the <menu id="Debian" /> to my menu.xml... nothing new shows up after an openbox --reconfigure. I tried removing all the code between the <menu id="root-menu"></menu> tags and adding the <menu id="Debian" /> to that, and i got an empty Openbox menu.

I can see all the generated menus in /var/lib/openbox/debian-menu.xml, so I know it's there... I just can't get it to display.

Re: Auto update menu?

Try changing the entry in menu.xml to be <menu id="/Debian"/> as discussed on this thread by machinebacon http://crunchbanglinux.org/forums/topic … t-missing/

Re: Auto update menu?

EnochRoot wrote:

Try changing the entry in menu.xml to be <menu id="/Debian"/> as discussed on this thread by machinebacon http://crunchbanglinux.org/forums/topic … t-missing/

Worked like a champ! Thanks!