Xfce Community
September 02, 2010, 04:17pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Report bugs in our bug tracker.
   
   Home   Help Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: How to add or remove apps from the system's menu...  (Read 48951 times)
0 Members and 1 Guest are viewing this topic.
Matthias
Full Member
***
Offline Offline

Posts: 209



WWW
« on: July 29, 2006, 10:11pm »

Add an applicatation to the menu:
You have to create a .desktop file (usually in /usr/share/applications/) for the app you want to add.

In the following example, we create a entry in the menu with the name "foo" in the submenu "Multimedia":

Code:
[Desktop Entry]
Encoding=UTF-8
Name=foo
GenericName=bar
Comment=Senseless programm ever
Exec=foobar
Icon=/usr/share/pixmaps/foobar.xpm
Terminal=false
Type=Application
Categories=Multimedia;


Remove an application to the menu:
You can do this in to ways.
First way, and the easier one is to simply remove the .desktop file in the /usr/share/applications/-folder.
The second way is, to add this line to the .desktop file:

Code:
NoDisplay=true
« Last Edit: July 30, 2006, 08:17am by Matthias » Logged

TomE
Global Moderator
Sr. Member
*****
Offline Offline

Posts: 402


« Reply #1 on: August 01, 2006, 11:23am »

Thanks Matthias Grin, I was meaning to do this but never got round to doing it.

I'll add that any .desktop file you make can go in ~/.local/share/applications/ but will not work for other users,
and the easy way the find out Categories is to look at a .desktop file in the category you make an entry in.

Remove an application to the menu:
You can do this in to ways.
First way, and the easier one is to simply remove the .desktop file in the /usr/share/applications/-folder.
The second way is, to add this line to the .desktop file:

Code:
NoDisplay=true

You should do "NoDisplay=true" as if you remove the file you will lose any mime filetype associations.
Logged
tuppe666
Newbie
*
Offline Offline

Posts: 24


« Reply #2 on: September 03, 2006, 03:12am »

Is there a way for the path= option to work? without using a workaround like a bash script?
« Last Edit: September 03, 2006, 03:13am by tuppe666 » Logged
stefe
Newbie
*
Offline Offline

Posts: 1


« Reply #3 on: November 12, 2006, 08:18pm »

how do you make an application default for a particular type, eg doc opening in Openoffice not Abiword in Xubuntu?

Thanks

Stephen
Logged
SimonJ
Full Member
***
Offline Offline

Posts: 135



WWW
« Reply #4 on: November 13, 2006, 12:14am »

Go to the file in Thunar, right click and choose properties. About halfway down you'll see Open with: and a drop-down choice, make your choice there or choose 'other application' and browse to your preferred program.

hth
Logged

Simon.                                                         (^_^)

TIP: Proofread carefully to see if you any words out.
=====================================================================
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!