Normal XFCE control center (Patch included)

About programming and getting involved with Linux Mint development
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
Yanpas

Normal XFCE control center (Patch included)

Post by Yanpas »

Mint XFCE's xfce4-settings-manager unlike Xubuntu xfce4-settings-manager has lack of settings actions. Adding this config file xfce-settings-manager.menu (sorry cannot upload) to .config/menus or /etc/xdg... (I don't remember system-wide exact path) will make xfce4-settings-manager show all setiings

Code: Select all

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

<Menu>
  <Name>Settings</Name>

  <DefaultAppDirs/>
  <DefaultDirectoryDirs/>
  <DefaultMergeDirs/>

   <Layout>
     <Menuname>Personal</Menuname>
     <Menuname>Hardware</Menuname>
     <Menuname>System</Menuname>
     <Menuname>Other</Menuname>
     <Merge type="all" />
   </Layout>

  <Include>
    <And>
      <Category>Settings</Category>
      <Not>
        <Or>
          <Category>X-XFCE-PersonalSettings</Category>
          <Category>X-XFCE-HardwareSettings</Category>
          <Category>X-XFCE-SystemSettings</Category>
        </Or>
      </Not>
    </And>
  </Include>

  <Exclude>
    <Filename>xfce-settings-manager.desktop</Filename>
  </Exclude>

  <Menu>
    <Name>Personal</Name>
    <Directory>xfce-personal.directory</Directory>
    <Include>
      <And>
        <Category>Settings</Category>
        <Category>X-XFCE-SettingsDialog</Category>
        <Category>X-XFCE-PersonalSettings</Category>
      </And>
      <And>
        <Category>Settings</Category>
        <Category>DesktopSettings</Category>
      </And>
      <Filename>xscreensaver-properties.desktop</Filename>
    </Include>
    <Exclude>
      <Category>X-XFCE-HardwareSettings</Category>
      <Category>X-XFCE-SystemSettings</Category>
      <Filename>xfce4-settings-editor.desktop</Filename>
      <Filename>xfce-settings-manager.desktop</Filename>
    </Exclude>
  </Menu>

  <Menu>
    <Name>Hardware</Name>
    <Directory>xfce-hardware.directory</Directory>
    <Include>
      <And>
        <Category>Settings</Category>
        <Category>X-XFCE-SettingsDialog</Category>
        <Category>X-XFCE-HardwareSettings</Category>
      </And>
      <And>
        <Category>Settings</Category>
        <Category>HardwareSettings</Category>
        <Not><Category>System</Category></Not>
      </And>
      <Filename>nm-connection-editor.desktop</Filename>
      <Filename>system-config-printer.desktop</Filename>
    </Include>
  </Menu>

  <Menu>
    <Name>System</Name>
    <Directory>xfce-system.directory</Directory>
    <Include>
      <And>
        <Category>Settings</Category>
        <Category>X-XFCE-SettingsDialog</Category>
        <Category>X-XFCE-SystemSettings</Category>
      </And>
      <And>
        <Category>Settings</Category>
        <Category>System</Category>
        <Not><Category>PackageManager</Category></Not>
      </And>
      <Filename>software-properties-gtk.desktop</Filename>
    </Include>
    <Exclude>
      <Filename>system-config-printer.desktop</Filename>
    </Exclude>
  </Menu>

  <Menu>
    <Name>Other</Name>
    <Directory>xfce-other.directory</Directory>
    <Include>
      <And>
        <Category>Settings</Category>
        <Not>
          <Or>
            <Category>X-XFCE-PersonalSettings</Category>
            <Category>X-XFCE-SystemSettings</Category>
            <Category>X-XFCE-HardwareSettings</Category>
            <Category>DesktopSettings</Category>
            <Category>HardwareSettings</Category>
            <Category>System</Category>
            <Filename>nm-connection-editor.desktop</Filename>
            <Filename>software-properties-gtk.desktop</Filename>
            <Filename>xscreensaver-properties.desktop</Filename>
            <Filename>xfce-settings-manager.desktop</Filename>
          </Or>
        </Not>
      </And>
      <Filename>xfce4-settings-editor.desktop</Filename>
    </Include>
  </Menu>

</Menu>
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
dXTC
Level 4
Level 4
Posts: 207
Joined: Fri Dec 26, 2014 3:19 pm
Location: Closer to the Derby than I care to admit

Re: Normal XFCE control center (Patch included)

Post by dXTC »

I've tried this in Mint XFCE 17.1, and it works. (Thanks, Yanpas!)

Detailed instructions for newcomers to Mint XFCE:
1. Using Thunar File Manager, open your Home folder, select View from the menu, then Show Hidden Files.
2. One of the previously hidden folders will be called .config ; double-click.
3. There will be several subfolders and a couple of files in the .config folder. Look for a "menus" folder; if there isn't one, create it, either by selecting File, Create Folder... from the File Manager's main menu, or right-clicking on an empty space in the folder/file listing and selecting Create Folder... from the pop-up menu.
4. Once the "menus" folder is created, double-click into it. It will be empty. Using one of the menu-access methods in step 3 above, create a new document by selecting Create Document > Empty File.
5. Name the file "xfce-settings-manager.menu". You'll see the file inside the folder now.
6. Open the file with gedit or some other text editor.
7. Copy the entire code that Yanpas has provided (you can use the SELECT ALL link at the beginning of the code to select the entire code segment automatically, then right-click > Copy), and paste it into the editor window.
8. Save the file, then exit.

Upon relaunching the Settings Manager, you should now notice that the Settings Manager's choices have expanded considerably. Among the new settings available are CompizConfig, Welcome Screen, Printers, Network Connections, Desktop Sharing and a good number of hidden settings in the System section without associated icons. Changing those system settings can be potentially dangerous to your system; leave those alone unless absolutely necessary.

If you want to restore the original menu, use the File Manager to navigate to the file you created and rename it to something else-- "xfce-settings-manager-hidden.menu" or "xfce-settings-manager.menuhide", for example, then close and relaunch the Settings Manager. Mint XFCE will then use its original configuration for the Settings Manager.
Last edited by dXTC on Fri May 29, 2015 9:57 pm, edited 1 time in total.
dXTC
-----
IT oldie, Linux newbie, and all-around goofy fellow.
Habitual

Re: Normal XFCE control center (Patch included)

Post by Habitual »

Awesome tip:
Even for non-newcomers.
User avatar
dXTC
Level 4
Level 4
Posts: 207
Joined: Fri Dec 26, 2014 3:19 pm
Location: Closer to the Derby than I care to admit

Re: Normal XFCE control center (Patch included)

Post by dXTC »

I made a small edit in my instructions above, to make clear that the procedure should start in the user's Home menu.

One additional note: Putting this in ~/.config/menus (~ is the user's Home folder) will make the new menus available only to that user. Other users that login will see the regular Settings Manager.
As Yanpas has hinted, there is a similar spot somewhere in /etc where the same change would enable this for all users of the machine. I recommend using ~/.config/menus; not every user needs or even wants this sort of power.
dXTC
-----
IT oldie, Linux newbie, and all-around goofy fellow.
User avatar
excollier
Level 4
Level 4
Posts: 455
Joined: Mon Oct 01, 2012 3:31 pm
Location: Donegal, Ireland

Re: Normal XFCE control center (Patch included)

Post by excollier »

I must try that out next week when I get time, sounds really good, thanks.
Edit: Job done, excellent work, thanks.
Registered Linux user #557695
MX Linux user these days - I introduce newbies via Mint
dindoun

Re: Normal XFCE control center (Patch included)

Post by dindoun »

greats
it works for me on a sarah mint (upgraded from rosa )
Locked

Return to “Programming & Development”