Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-01-23 04:17:02

wisemagic
Member
From: Louisiana U.S.A.
Registered: 2011-09-17
Posts: 37
Website

Settings window

Is there a way to add more categories to the settings window, below "Other" or change the "Other" heading to something else?

I've figured out how to add to the categories. Just wondering if I can expand with more categories for some special applications.

Screenshot_2024-01-22_22-01-38.jpg

Offline

#2 2024-01-23 13:16:37

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

Re: Settings window

Yes. There are 3 things you need to do to create new categories and assign items to them (will use Test Category as example) :

  1. Create an ~/.local/share/desktop-directories/xfce-test.directory with the basic content of:

    [Desktop Entry]
    Version=1.0
    Type=Directory
    Icon=desktop-environment-xfce
    Name=Test
    Comment=Test Category
  2. Copy the /etc/xdg/menus/xfce-settings-manger.menu file to ~/.config/menus and add make the following changes:
       - In the layout section, add "<Menuname>Test</Menuname>"
       - In the "<Category>Settings</Category>" section, add "<Category>X-XFCE-TestSettings</Category>"
       - In with the other "<Menu>" entries, add:

      <Menu>
        <Name>Test</Name>
        <Directory>xfce-test.directory</Directory>
        <Include>
          <And>
            <Category>Settings</Category>
            <Category>X-XFCE-SettingsDialog</Category>
            <Category>X-XFCE-TestSettings</Category>
          </And>
        </Include>
      </Menu>
  3. Copy/Create a .desktop file to ~/.local/share/applications and make sure the "Categories" line includes:

    X-XFCE-SettingsDialog;X-XFCE-TestSettings;

Last edited by ToZ (2024-01-24 19:08:00)


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-01-24 09:09:44

wisemagic
Member
From: Louisiana U.S.A.
Registered: 2011-09-17
Posts: 37
Website

Re: Settings window

Thanks ToZ.

One adjustment

~/.local/desktop-directories/xfce-test.directory
~/.local/share/desktop-directories/xfce-test.directory (Linuxmint)

But I got how it works, and have it working smile

Offline

#4 2024-01-24 19:07:45

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

Re: Settings window

Thanks for the catch. I've updated my post.


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

Board footer

Powered by FluxBB