Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Operating Systems > Linux, Unix

Reply
 
LinkBack Thread Tools
Old 08-31-07   #1 (permalink)
Linux Lobbyist
 
reset3x's Avatar
 
amd nvidia

Join Date: Nov 2006
Location: reset3x@*nix:~$
Posts: 1,221

Rep: 150 reset3x is acknowledged by manyreset3x is acknowledged by many
Unique Rep: 76
Trader Rating: 1
Default How-To: Edit Xfce's System Wide Menu

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
!!!!!!!! JUST BE VERY CAREFUL ABOUT WHAT YOU'RE DOING WHEN RUNNING THUNAR AND MOUSEPAD AS ROOT !!!!!!!!!!

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
Hope some of you find this useful... If you find any errors here PLEASE let me know so I can edit them....

Peace!!!
__________________
System: Phobos
CPU
AMD 64 4000+ San Diego
Motherboard
Foxconn NF4SK8AA SLi
Memory
2x1 GB Mushkin CL2
Graphics Card
MSI NX8600GT-T2D256E OC
Hard Drive
WD 250 GB SATA 300
Sound Card
X-Fi XtremeGamer
Power Supply
Ultra 500
Case
Rosewill
CPU cooling
Zalman 9500
GPU cooling
Stock Copper HSF
OS
Kubuntu 8.04-1
Monitor
LG L1932TQ 4ms Flatron 19" LCD
reset3x is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 05:40 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.17879 seconds with 8 queries