Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-02-27 13:31:12

Spielmops
Member
Registered: 2022-02-27
Posts: 2

I am not able to change menu-entries to my like [solved]

I installed XFCE on Raspbian and switched to it successfully. Now I want to clean up the menu and in doing so I encounter a difficulty:

If I remove an entry in "Menu/Settings", it is also no longer present in the Settings Manager. It doesn't matter whether I hide or delete the entry or remove the appropriate category: the entry is always no longer available either here or there.

I also have a machine with Mint-XFCE installed. There I can clean up the menu/setting as I wish, the contents of the settings manager remain.

My question: how can I change the main menu to my liking without changing anything else?

Is there any documentation on how the configuration files depend on each other?

Spielmops

Last edited by Spielmops (2022-02-27 16:23:56)

Offline

#2 2022-02-27 14:45:30

ruuwa
Member
Registered: 2022-02-09
Posts: 22

Re: I am not able to change menu-entries to my like [solved]

How did you remove the entry? Like following this instruction manually https://wiki.xfce.org/howto/customize-m … nu_entries

As in copy .desktop entry files from /usr/local/applications to ~/.local/share/applications and then add NoDisplay=true. 

Because I just tried it and can confirm it behaves like you say. 

The setting option, say Color Profiles, in Applications > Settings > Settings Manager disappears when I added NoDisplay=true to ~/.local/share/applications/xfce4-color-settings.desktop.

Last edited by ruuwa (2022-02-27 14:48:08)

Offline

#3 2022-02-27 15:47:10

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

Re: I am not able to change menu-entries to my like [solved]

If you look at the default xfce menu (/etc/xdg/menus/xfce-applications.menu - can be overridden with ~/.config/menus/xfce-applications.menu), you will notice that the entry for the Settings submenu, looks like this:

...
        <Separator/>
        <Menuname>Settings</Menuname>
        <Separator/>
...
    <Menu>
        <Name>Settings</Name>
        <Directory>xfce-settings.directory</Directory>
        <Include>
            <Category>Settings</Category>
        </Include>

        <Layout>
            <Filename>xfce-settings-manager.desktop</Filename>
            <Separator/>
            <Merge type="all"/>
        </Layout>

...which basically means, include all items where the category is "Settings". So if you hide one of the existing settings manager items, it will hide in both places.

What you will need to do (and probably what Mint does) is create another Settings submenu and manually include the items that you want to appear in there.

In addition to the link that @ruuwa shared, there is also the desktop menu spec.


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

#4 2022-02-27 16:23:21

Spielmops
Member
Registered: 2022-02-27
Posts: 2

Re: I am not able to change menu-entries to my like [solved]

Ok, I could solve this problem:

the menu is in /etc/xdg/menus/xfce-applications.menu
Entry for settings is as shown from ToZ with "include"

in ~/.config/menus/xfce-applications.menu the entries are "exclude"d like this:

<Exclude>
   <Filename>thunar-settings.desktop</Filename>
</Exclude>

and that does the trick. I never looked into .config/menus because I knew the menu to be in /etc/xdg/menus ...

With the same trick but <include> I was able to add an entry (.desktop-file)

Thanks,

Spielmops

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 9 queries executed - Memory usage: 546.5 KiB (Peak: 547.34 KiB) ]