You are not logged in.

#1 2007-12-06 21:11:45

toketin
Member
From: Belluno (Italy)
Registered: 2007-04-17
Posts: 326

edit xfce menu

is there an utility like Alacarte for gnome menu that allows you to edit the submenu of xfce?

Offline

#2 2007-12-06 21:18:19

shen
Member
Registered: 2003-09-05
Posts: 272
Website

Re: edit xfce menu

Only way I know to remove an item from the xfce submenu is the edit the apps .desktop file in /usr/share/applicatons and add a line at the end of the file like this...  NoDisplay=true and it will remove it from the submenu. Sure would be nice to have an app like alacarte...

Offline

#3 2007-12-06 21:40:49

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: edit xfce menu

Right click on menu > Edit Menu...

Offline

#4 2007-12-06 22:04:19

toketin
Member
From: Belluno (Italy)
Registered: 2007-04-17
Posts: 326

Re: edit xfce menu

Allan wrote:

Right click on menu > Edit Menu...

yes but so i can edit only the first, default menu, for example not the sections multimedia, network eccetera

Offline

#5 2007-12-07 00:01:53

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: edit xfce menu

use alacarte .. ? I thought the xfce4 menu and the gnome menu were the same.

Offline

#6 2007-12-07 00:11:45

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: edit xfce menu

shen wrote:

Only way I know to remove an item from the xfce submenu is the edit the apps .desktop file in /usr/share/applicatons and add a line at the end of the file like this...  NoDisplay=true and it will remove it from the submenu. Sure would be nice to have an app like alacarte...

I've read of this way, but I never needed to try it: http://ubuntuforums.org/showthread.php? … ude+system

Offline

#7 2007-12-07 13:25:41

epimer
Member
Registered: 2007-09-06
Posts: 24

Re: edit xfce menu

From the Xfce wiki:

How to edit the auto generated menu with the menu editor?

cp ~/.cache/xfce4/desktop/menu-cache-name-of-the-generated-file.xml ~/.config/xfce4/desktop/menu2.xml
cd ~/.config/xfce4/desktop/
cat menu.xml > menu3.xml
cat menu2.xml >> menu3.xml
mv menu.xml menu.orig.xml
mv menu3.xml menu.xml

Now, you already have a menu with all the categories in the main tree with some duplicates, but you must first edit menu.xml with your favorite editor and remove the 4 following lines in the middle of the file, otherwise the menu editor will complain about a wrong format:

</xfdesktop-menu>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xfdesktop-menu>

<xfdesktop-menu>

That's all. Now you can run the menu editor, remove the few duplicates and edit all as you like.

Settings > Desktop > Menu > Menu Editor

Notes: by removing the "system" line, you will remove all the duplicates menu entries from the auto generated file. So, if it is changed in this auto generated file, they don't appear anymore, but you will get rid of most of the duplicates.

To restore the original menu, just do in a terminal:

mv menu.xml menu3.xml; mv menu.orig.xml menu.xml

Last edited by epimer (2007-12-07 13:26:34)

Offline

#8 2008-01-09 02:14:06

raul_nds
Member
From: Lisbon, Portugal
Registered: 2007-06-28
Posts: 258

Re: edit xfce menu

Worked like a charm:)

Offline

#9 2008-01-10 23:44:48

raul_nds
Member
From: Lisbon, Portugal
Registered: 2007-06-28
Posts: 258

Re: edit xfce menu

Is there anyway to automatically create entries for new applications with the custom menu? Even if they end up in some weird folder, it would be easier to move them to the right place, rather then creating a new entry

Offline

#10 2008-04-24 03:14:28

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: edit xfce menu

Annoyances like this force me to just edit my own menu in a text editor all the time. I've severed all my ties with those GUI menu editors.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

Board footer

Powered by FluxBB