Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-04-25 06:48:10

emil2007
Member
Registered: 2017-03-29
Posts: 20

How to move menu entries in directory?

I created KDE Connect directory and i want to move kde connect menu entries in that directory, but i don't see a way to do that. Dragging the entries doesn't work. How to move the entries?

https://imgur.com/YuMUHju.png

Offline

#2 2024-04-25 10:06:09

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: How to move menu entries in directory?

I believe you are supposed to click on the menu entry and use the arrow keys in the bottom left corner to move the entry up to the new directory.

Note: menulibre is not an Xfce component - it is a third-party tool.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2024-04-25 18:56:36

emil2007
Member
Registered: 2017-03-29
Posts: 20

Re: How to move menu entries in directory?

Moving the entries with the arrow keys somehow worked, but after saving menu settings KDE Connect directory won't show in the whisker menu. This functionality is definitely not working well.

menuilbre is integrated with whisker menu so i thought it's xfce component.

Offline

#4 2024-04-25 21:01:46

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 528

Re: How to move menu entries in directory?

You can edit or create a new .desktop file and change the "category" line to reflect where in the menu it appears. Use another .desktop file that appears in the same category as an example for reference. The should be located in /usr/share/applications.


Siduction
Debian Sid
Xfce 4.18

Offline

#5 2024-04-25 23:49:29

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: How to move menu entries in directory?

emil2007 wrote:

Moving the entries with the arrow keys somehow worked, but after saving menu settings KDE Connect directory won't show in the whisker menu. This functionality is definitely not working well.

menuilbre is integrated with whisker menu so i thought it's xfce component.

Try restarting the panel:

xfce4-panel -r

Also might be helpful if we knew the version of Xfce and the distro you are using.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#6 2024-04-26 07:44:27

emil2007
Member
Registered: 2017-03-29
Posts: 20

Re: How to move menu entries in directory?

How can i add subcategory in .desktop file? I want to create subcategories similar to the Wine category, but in wine .desktop files there is nothing about category:

EI0QCeO.png

I am using MX Linux XFCE, and XFCE version is 4.18.

Offline

#7 2024-04-26 19:06:20

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: How to move menu entries in directory?

It doesn't look like menulibre can create and manage custom submenus.

To do it the manual way, follow these steps:

  1. Create the necessary custom menus at ~/.local/share/desktop-directories (create the folder if it doesn't exist). For example:
    Level1.directory

    [Desktop Entry]
    Name=Level1
    Comment=Level 1 Directory
    Icon=folder
    Type=Directory

    Level2.directory

    [Desktop Entry]
    Name=Level2
    Comment=Level 2 Directory
    Icon=folder
    Type=Directory
  2. Edit the ~/.config/menus/xfce-applications.menu file. If it doesn't exist, copy over the one from /etc/xdg/menus (or if you're using Xubuntu, from /etc/xdg-xubuntu/menus). In an section immediately following a "</Menu>" statement, add the following:

    <Menu>
    	<Name>Level 1</Name>
    	<Directory>level1.directory</Directory>
    	<Include>
    		<Category>Level1</Category>
    	</Include>
    	<Menu>
    		<Name>Level 2</Name>
    		<Directory>level2.directory</Directory>
    			<Include>
    				<Category>Level2</Category>
    			</Include>
    	</Menu>
    </Menu>
  3. Edit an existing file .desktop file (in ~/.local/share/applications or move the system one for /usr/share/applications into this location and edit it), and change the "Categories=" line to read either:

    Categories=Level1;

    ...or:

    Categories=Level2;

    ...depending on where you want it to appear.

This is an example template, so if you change the "Level1" or "Level2" text, make sure you change it correctly in all 3 locations.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#8 2024-04-26 20:53:08

emil2007
Member
Registered: 2017-03-29
Posts: 20

Re: How to move menu entries in directory?

I can create directories with menulibre or alacarte, but the issue is to move menu entries inside them. Anyway, this is too complicated for simple thing like this. It needs more easy solution, something like drag and drop entries in directories.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 547.3 KiB (Peak: 548.15 KiB) ]