You are not logged in.

#1 2012-07-12 01:14:48

lafferjm
Member
Registered: 2012-07-12
Posts: 6

Xfce menu editing

I have recently decided to try editing my xfce menu by following this guide https://wiki.archlinux.org/index.php/Xf … ystem_menu.  I have been using method 3 to achieve it.  The example they provide works, however when I try to remove other applications from the menu it does not work.  Just for testing I have added the line <Filename>firefox.desktop</Filename> to the exclude section, and it is still there.  Is there anyplace that I need to move the .desktop files or am I doing something wrong?  Here is my xfce-applications.menu:

<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
	"http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">

<Menu>
	<Name>Xfce</Name>
	<MergeFile type="parent">/etc/xdg/menus/xfce-applications.menu</MergeFile>

	<Exclude>
		
		<Filename>xfrun4.desktop</Filename>

		<Filename>exo-terminal-emulator.desktop</Filename>
		<Filename>exo-file-manager.desktop</Filename>
		<Filename>exo-mail-reader.desktop</Filename>
		<Filename>exo-web-browser.desktop</Filename>
		
		<Filename>xfce4-about.desktop</Filename>
		<Filename>xfhelp4.desktop</Filename>
		
		<Filename>firefox.desktop</Filename>

	</Exclude>

	<Layout>
		<Merge type="all" />
		<Separator />

		<Menuname>Settings</Menuname>
		<Separator />

		<Filename>xfce4-session-logout.desktop</Filename>
	</Layout>

</Menu>

Offline

#2 2012-07-12 07:28:11

Padfoot
Member
Registered: 2010-09-03
Posts: 382

Re: Xfce menu editing

No need to edit the menu to not display certain items. Just copy the .desktop files of the items you want to hide from /usr/share/applications to ~/.local/share/applications

Now edit the local copies in your chosen text editor and add the following line anywhere after the [desktop] line:

[desktop]
...
NoDisplay=true
...

Make sure you do this to the local copies so updates don't undo all your work.

After making your changes, refresh the menu with:

$ xfdesktop --reload

Cheers.

Offline

#3 2012-07-14 03:22:33

lafferjm
Member
Registered: 2012-07-12
Posts: 6

Re: Xfce menu editing

Alright Ill have to go ahead and do that.  I noticed it in the wiki, but it mentioned that the menu file was the cleanest way which is why I was wondering.

Offline

#4 2012-07-14 04:00:22

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: Xfce menu editing

lafferjm wrote:

Alright Ill have to go ahead and do that.  I noticed it in the wiki, but it mentioned that the menu file was the cleanest way which is why I was wondering.

If you want to hide it only for XFCE, then use the XML file. It is marked as the "cleanest" solution since it doesn't interfere with the visibility in other desktop environments and is limited to the XFCE configuration of the current user. It also separates between the data (list of installed applications) and its presentation (hide some menu entries).
By the way, if you use the desktop file in ~/.local with the same name as in /usr, it even works with only the following two lines:

[desktop]
NoDisplay=true

Last edited by progandy (2012-07-14 04:27:35)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#5 2012-07-14 05:36:43

Diaz
Member
From: Portugal
Registered: 2008-04-16
Posts: 366

Re: Xfce menu editing

I made a post about this sometime ago: Changing Xfce menu.

If you achieved what you wanted it's better to mark this post as [SOLVED] wink

Offline

#6 2012-07-14 05:43:52

archie0
Member
Registered: 2012-02-26
Posts: 144

Re: Xfce menu editing

Hey. You should try lxmed from AUR, works fine with XFCE, but it's coded in Java.

If you find a better way, please let me know.

Offline

#7 2012-07-14 05:49:30

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: Xfce menu editing

archie0 wrote:

Hey. You should try lxmed from AUR, works fine with XFCE, but it's coded in Java.

If you find a better way, please let me know.

The AUR also has alacarte-xfce, xame, and menulibre.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#8 2016-03-16 20:29:22

Cavsfan
Member
From: USA
Registered: 2015-07-08
Posts: 101

Re: Xfce menu editing

Sorry to reply to this old thread but I had 2 menu entries I could not get rid of and the method Padfoot mentioned in post #2 worked like a charm.
I had purged fltk but hdspconf and hdspmixer still showed in Applications > Multimedia until I did the above.

Thank you.

Offline

#9 2016-03-16 21:51:56

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,715
Website

Re: Xfce menu editing


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB