Ubuntu This forum is for the discussion of Ubuntu 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
08-23-2005, 04:50 AM
|
#1
|
Member
Registered: Oct 2004
Location: Cheshire, England
Distribution: Debian Stable
Posts: 269
Rep:
|
adding programs to main menu.
Is there a way to have all installed programs appear in the menu? I’ve installed Tuxracer and can’t find it anywhere, not even in /usr/bin.
Must be some little program to add stuff to the menu.
|
|
|
08-23-2005, 05:46 AM
|
#2
|
Member
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800
Rep:
|
Did you "updatedb & locate" commands, as sudo?
|
|
|
08-23-2005, 06:32 AM
|
#3
|
Member
Registered: Oct 2004
Location: Cheshire, England
Distribution: Debian Stable
Posts: 269
Original Poster
Rep:
|
Thanks for your reply.
I'm pretty new to Linux. Do you mean to just type 'sudo locate' and 'sudo updatedb' in a terminal? or is it something i should have done at the install? i used Synaptic to install rather than the command line, does using Synaptic limit options?
|
|
|
08-23-2005, 06:39 AM
|
#4
|
Member
Registered: Apr 2005
Location: Wolverhampton, England
Distribution: Ubuntu
Posts: 334
Rep:
|
at a shell run sudo updatedb first (or run it as root by using the su command) and then use locate tuxracer (where tuxracer is what you want to locate). This will give a list of directories and files which match the term 'tuxracer'
|
|
|
08-24-2005, 04:35 PM
|
#5
|
Member
Registered: Aug 2005
Location: Scotland
Distribution: Ubuntu
Posts: 32
Rep:
|
Games are usually stored not in /usr/bin buit in /usr/games.
Gnome 2.12 will have again a menu editing function AFAIk, but until then it is relatively easy to edit and alter the gnome menu via config files. Have a look at the following mini HOWTO.
How the menu is build:
/etc/xdg/applications is a Glade xml file, building the application menu.
It uses category/directory entries in /usr/share/desktop-directories (e.g. "Games", Graphics" etc), application entries in /usr/share/applications and icons in /usr/share/pixmaps.
A well-build application entry in the directory /usr/share/applications will simply be added to the existing menu. To add a new category-directory to the menu, both /etc/xdg/applications must be altered and a new entry in /usr/share/desktop-directories must be added.
Adding a an application to the menu:
Application menu items are text files with following compulsory content:
[Desktop Entry]
Name=<MyApplicationName>
Exec=<MyApplicationCommand>
Icon=<MyApplicationIcon>
Type=Applications
Categories=Applications;<MyCategory>
A useful addition is a line describing the application
Comment=<MyComment>
To make sure application appears only in one desktop environment of several installed include a line
ShowOnlyIn=<desktop>
Other possible additions are Names in other locales, whether an application will run in a terminal etc.
Adding a new category is a bit more complicated.
Firstly /etc/xdg/menus/applications must be edited by adding somewhere in the toplevel section <Menu> after the legacy menu entry description.
The file is in XML format and will be used to build up the menu. If you add your entry make sure that the XML file remains well formed.
<!-- MyCategoryCommentary -->
<Menu>
<Name>MyCategoryName</Name>
<Directory>MyCategory.directory</Directory>
<Include>
<And>
<Category>MyCategory</Category>
</Include>
</Menu> <!-- End MyCategory -->
Secondly an entry in /usr/share/desktop-directories must be added. This should be again a simple textfile with following compulsory content:
[Desktop Entry]
Name=<MyCategoryName>
Type=Directory
Icon=<MyCategoryIcon>
The file must be named <MyCategory>.desktop
Menu categories can be nested multiple times, but this should be discouraged. The beauty of the new Gnome menu system is its simplicity.
The muliplicity of legacy menu systems in gnome and competing menu systems in KDE etc can make menus in Gnome quite messy. My personal solution was to search out all entries added by the legacy systems and adding them in the new way. Quite a few (even new-ish Gnome applications) put tehir entries into are the subdirectories of /usr/share/apps. After addition of a line
Category=Applications;<MyApplicationCategory>;
the entries there can simply be moved to /usr/share/applications.
For reasons unknown to me sometime new menu items do not immediately appear in the menu. Usually this is solved by restarting X.
|
|
|
08-24-2005, 05:01 PM
|
#6
|
Member
Registered: Apr 2005
Location: Wolverhampton, England
Distribution: Ubuntu
Posts: 334
Rep:
|
very nice tutorial, and first post as well! Welcome to linuxquestions refdoc 
|
|
|
09-03-2005, 01:16 PM
|
#7
|
Member
Registered: Nov 2004
Location: Coventry, UK
Distribution: Debian Lenny, Ubuntu Feisty
Posts: 121
Rep:
|
You could also try installing smeg. This menu editor allows you to add a debian menu
|
|
|
All times are GMT -5. The time now is 09:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|