|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Operating Systems > Linux, Unix | |
How-To: Edit Xfce's System Wide Menu
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||||||
|
Linux Lobbyist
|
To edit Xfce's system wide main menu, you need to edit the .desktop files for the apps that you want to add, change, move or remove.
__________________The system-wide .desktop files can be found in /usr/share/applications/. The contents of the files look something like this: [Desktop Entry] Encoding=UTF-8 Name="Whatever your Program Name is" ie: Name=Quake Comment="Whatever you desire" ie: Comment=Classic First Person Shooter Exec="This could be just an executable ie: Exec=quake Or you may have or type in the directory tree to the app executable" ie: /usr/share/games/quake//quake Icon= "The location of your icon" ie: /usr/share/games/quake/quake.png or xpm or jpg etc.. if your icon is located in /usr/share/pixmaps you just need to use the icon name... ie: Icon=quake Terminal=false Type=Application Categories=Game; So the .desktop entry for the example above should appear like this: [Desktop Entry] Encoding=UTF-8 Name=Quake Comment=Classic First Person Shooter Exec=quake Icon=quake Terminal=false Type=Application Categories=Game; You can move items between categories by changing the values in the Categories= section of each .desktop file. You might want to peek into some of the the other .desktop files to get some ideas... If you want to remove a program from the menu, just add this line to the bottom of its .desktop file: NoDisplay=true To edit the .desktop files easily, open a terminal and type: Code:
sudo Thunar Then navigate to /usr/share/applications/. There, you can open .desktop files using mousepad. ****** Another problem you may encounter is when you install some programs and the don't show up. Open the .desktop file and check to see if there is an entry Terminal=0 and change it to Terminal=false..... Also if it's a game and they appear in the "Other" category on your menu change the Category=Application;Games: to Application:Game.... ****** To refresh your menus after you edit them open a Terminal and type: Code:
sudo update-desktop-database Peace!!!
|
|||||||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|