one way to do custom menus without kmenuedit
It is quite possible that there are better ways to create custom menus,
but I was not able to find any howto.
So I tried and finally found out how to create custom menus for single users
without kmenuedit on SuSE 9.0, KDE 3.1. If you have trouble with kmenuedit you
might try the following:
Place your links (.desktop files) in
/home/username/.local/share/applications
Place your menus (.directory files) in
/home/username/.local/share/desktop-directories
Edit your file applications-kmenuedit.menu:
/home/username/.config/menus/applications-kmenuedit.menu
Press CTRL + ALT + Backspace to log in again and see the changes.
Here is an example which is working for me:
************************************
link files:
/home/username/.local/share/applications/Gimp.desktop
/home/username/.local/share/applications/Sodipodi.desktop
/home/username/.local/share/applications/evolution.desktop
/home/username/.local/share/applications/KMail.desktop
menu files:
/home/username/.local/share/desktop-directories/NameOfMainMenu.directory
/home/username/.local/share/desktop-directories/Graphics.directory
/home/username/.local/share/desktop-directories/Email.directory
Content of the file /home/username/.config/menus/applications-kmenuedit.menu
(Sorry, I canīt include the full "<!DOCTYPE ..." here as new forum members are not
allowed to post urls... So please see the first line in your file applications-kmenuedit.menu):
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" ... >
<Menu>
<Menu>
<Name>NameOfMainMenu</Name>
<Directory>NameOfMainMenu.directory</Directory>
</Menu>
<Menu>
<Name>Graphics</Name>
<Directory>Graphics.directory</Directory>
<Include>
<Filename>Gimp.desktop</Filename>
<Filename>Sodipodi.desktop</Filename>
</Include>
</Menu>
<Menu>
<Name>Email</Name>
<Directory>Email.directory</Directory>
<Include>
<Filename>evolution.desktop</Filename>
<Filename>KMail.desktop</Filename>
</Include>
</Menu>
<Move>
<Old>Graphics</Old>
<New>NameOfMainMenu/Graphics</New>
</Move>
<Move>
<Old>Email</Old>
<New>NameOfMainMenu/Email</New>
</Move>
</Menu>
***************************************************************
With the sections <Move>...</Move> you create the submenus
"Graphics" and "Email" in the custom menu "NameOfMainMenu".
If you donīt include these sections you will create single independent menus.
If you want to include an already existing menu as a submenu
of your custom menu, just add a <Move>...</Move> section with
the name of the existing menu.
If you already tried to make your menu with kmenuedit and did not succeed,
there is a lot of code in applications-kmenuedit.menu and a lot of .desktop
and .directory files which you may wish to delete before creating your custom
menu manually:
1. delete all .desktop files in /home/username/.local/share/applications
2. delete all .directory files in /home/username/.local/share/desktop-directories
3. delete the text in /home/username/.config/menus/applications-kmenuedit.menu
4. press CTRL + ALT + Backspace to log in again and activate the changes.
5. start creating your custom menu as described above
This is just what I found out. Hope it is of use for someone ;-)
|