Peppermint OS

General => General Discussion => Topic started by: peppycrab on May 11, 2019, 06:26:02 pm

Title: Menu editing for P8 (Solved)
Post by: peppycrab on May 11, 2019, 06:26:02 pm
I understand that Menu Libre is not good for Peppermint versions before P9. I am running P8 - any useful menu editing  options for me?
Title: Re: Menu editing for P8
Post by: spence on May 11, 2019, 06:55:45 pm
There was no menu editor before Peppermint 8... but perhaps this thread can help you out a bit @peppycrab?


https://forum.peppermintos.com/index.php/topic,4951.msg49327.html#msg49327 (https://forum.peppermintos.com/index.php/topic,4951.msg49327.html#msg49327)

If this doesn't help, please let us know what you want to do precisely...
Title: Re: Menu editing for P8
Post by: peppycrab on May 11, 2019, 10:58:59 pm
My left column is a bit crowded. Since I never use the programs under "Graphics", I could lose that category. I assume that the shortcuts would remain in the "All" category if I ever had a need for them.
Title: Re: Menu editing for P8
Post by: spence on May 12, 2019, 12:11:29 pm
If you remove all the entries in a category, that category will disappear from your left column, but the programs remain installed and accessible via the search at bottom of the menu @peppycrab....

 ;)
Title: Re: Menu editing for P8
Post by: PCNetSpec on May 12, 2019, 12:19:22 pm
There is NO safe graphical menu editor for Peppermint versions before 9 I'm afraid .. the only safe option is to edit launchers manually.
Title: Re: Menu editing for P8
Post by: peppycrab on May 12, 2019, 01:04:17 pm
If you remove all the entries in a category, that category will disappear from your left column, but the programs remain installed and accessible via the search at bottom of the menu @peppycrab....

 ;)

Sounds like an answer...but how do I do that?
If I could move those programs to another category, that would accomplish the same thing, but.....how?
Title: Re: Menu editing for P8
Post by: PCNetSpec on May 12, 2019, 01:16:35 pm
Here are instructions for fixing the menu categories in Peppermint 7 or 8 so that MenuLibre won't break things....
(though a couple of menu category names will appear to change)

Open a terminal, and run:
Code: [Select]
gksudo pluma /etc/xdg/menus/xfce-applications.menuand make it read
Code: [Select]
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
  "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">

<Menu>
    <Name>Xfce</Name>

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

    <Include>
        <Category>X-Xfce-Toplevel</Category>
    </Include>

    <Layout>
        <Filename>xfce4-run.desktop</Filename>
        <Separator/>
        <Filename>exo-terminal-emulator.desktop</Filename>
        <Filename>exo-file-manager.desktop</Filename>
        <Filename>exo-mail-reader.desktop</Filename>
        <Filename>exo-web-browser.desktop</Filename>
        <Separator/>
        <Menuname>Settings</Menuname>
        <Separator/>
        <Merge type="all"/>
        <Separator/>
        <Filename>xfce4-about.desktop</Filename>
        <Filename>xfce4-session-logout.desktop</Filename>
    </Layout>

    <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>

        <Menu>
            <Name>Screensavers</Name>
            <Directory>xfce-screensavers.directory</Directory>
            <Include>
                <Category>Screensaver</Category>
            </Include>
        </Menu>
    </Menu>

    <Menu>
        <Name>Accessories</Name>
        <Directory>xfce-accessories.directory</Directory>
        <Include>
            <Or>
                <Category>Accessibility</Category>
                <Category>Core</Category>
                <Category>Legacy</Category>
                <Category>Utility</Category>
            </Or>
        </Include>
        <Exclude>
            <Or>
                <Filename>exo-file-manager.desktop</Filename>
                <Filename>exo-terminal-emulator.desktop</Filename>
                <Filename>xfce4-about.desktop</Filename>
                <Filename>xfce4-run.desktop</Filename>
            </Or>
        </Exclude>
    </Menu>

    <Menu>
        <Name>Development</Name>
        <Directory>xfce-development.directory</Directory>
        <Include>
            <Category>Development</Category>
        </Include>
    </Menu>

    <Menu>
        <Name>Education</Name>
        <Directory>xfce-education.directory</Directory>
        <Include>
            <Category>Education</Category>
        </Include>
    </Menu>

    <Menu>
        <Name>Games</Name>
        <Directory>xfce-games.directory</Directory>
        <Include>
            <Category>Game</Category>
        </Include>
    </Menu>

    <Menu>
        <Name>Graphics</Name>
        <Directory>xfce-graphics.directory</Directory>
        <Include>
            <Category>Graphics</Category>
        </Include>
    </Menu>

    <Menu>
        <Name>Multimedia</Name>
        <Directory>xfce-multimedia.directory</Directory>
        <Include>
            <Category>Audio</Category>
            <Category>Video</Category>
            <Category>AudioVideo</Category>
        </Include>
    </Menu>

    <Menu>
        <Name>Network</Name>
        <Directory>xfce-network.directory</Directory>
        <Include>
            <Category>Network</Category>
        </Include>
        <Exclude>
            <Or>
                <Filename>exo-mail-reader.desktop</Filename>
                <Filename>exo-web-browser.desktop</Filename>
            </Or>
        </Exclude>
    </Menu>

    <Menu>
        <Name>Office</Name>
        <Directory>xfce-office.directory</Directory>
        <Include>
            <Category>Office</Category>
        </Include>
    </Menu>

    <Menu>
        <Name>System</Name>
        <Directory>xfce-system.directory</Directory>
        <Include>
            <Or>
                <Category>Emulator</Category>
                <Category>System</Category>
            </Or>
        </Include>
        <Exclude>
            <Or>
                <Filename>xfce4-session-logout.desktop</Filename>
            </Or>
        </Exclude>
    </Menu>

    <Menu>
        <Name>Other</Name>
        <Directory>xfce-other.directory</Directory>
        <OnlyUnallocated/>
        <Include>
            <All/>
        </Include>
    </Menu>

</Menu>
(be sure to get all of that .. it scrolls).

SAVE the file and exit the text editor.

Back in the terminal run:
Code: [Select]
gksudo pluma /etc/xdg/lxsession/Peppermint/desktop.conffind the line that reads:-
Code: [Select]
menu_prefix=peppermint-and change it to read
Code: [Select]
menu_prefix=xfce-SAVE the file and exit the text editor.

Back in the terminal run:
Code: [Select]
pluma ~/.config/lxsession/Peppermint/desktop.conffind the line that reads:-
Code: [Select]
menu_prefix=peppermint-and change it to read
Code: [Select]
menu_prefix=xfce-SAVE the file and exit the text editor.

Now log off/on  <-- IMPORTANT

The whiskermenu category "Sound & Video" should have changed name to "Multimedia" .. this indicates you're now using the Xfce default menu structure .. only carry on below if that menu category name DID change, otherwise STOP NOW and let us know

If the menu category name DID change from Sound & Video to Multimedia you can now go ahead and install MenuLibre:
Code: [Select]
sudo apt-get updatethen
Code: [Select]
sudo apt-get install menulibreand you should now have a new menu item at

Menu > Settings > Menu Editor

which should no longer break the menu.
Title: Re: Menu editing for P8 (Solved....so far...)
Post by: peppycrab on May 14, 2019, 12:37:40 pm
So far, so good! Thanks again!
Title: Re: Menu editing for P8
Post by: PCNetSpec on May 14, 2019, 01:25:34 pm
No problem :)