XFCE Customize Menu

Customize Menu

Run this command to start:

cp /etc/xdg/menus/xfce-applications.menu ~/.config/menus/xfce-applications.menu

If you want to delete everything in it, remove all sub Menu-, Filename and Menuname Tags.

Custom Menu Entry

If you want to add a custom menu entry add this into a Layout-Tag:

<Filename>FILENAME.desktop</Filename>

Custom Menu Folder

If you want to add a custom folder, add this inside the Layout-Tag:

<Menuname>MENUNAME</Menuname>

And this inside the top-level Menu-Tag:

<Menu>
    <Name>MENUNAME</Name>
    <Directory>FILENAME.directory</Directory>
    <Include>
        <Category>CATEGORY</Category>
    </Include>
</Menu>

Create A Menu Entry

Add a file in the location ~/.local/share/applications/ called FILENAME.desktop with the following content:

[Desktop Entry]
Version=1.0
Type=Application
Encoding=UTF-8
Exec=STARTUP-COMMAND
Icon=ICON
StartupNotify=false
Categories=CATEGORY;FOLDER;
Name=NAME
Comment=COMMENT

Create A Menu Folder/Category

Add a file in the location ~/.local/share/desktop-directories/ called FILENAME.directory with the following content:

[Desktop Entry]
Version=1.0
Type=Directory
Icon=ICON
Name=NAME
Comment=COMMENT

Endstate

If you did everything up untile now, it looks something like this:

<!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>
        <Filename>firefox.desktop</Filename>
        <Filename>code.desktop</Filename>
        <Separator/>
        <Menuname>MostUsed</Menuname>
        <Menuname>Settings</Menuname>
        <Menuname>Web-Apps</Menuname>
        <Separator/>
        <Filename>xfce4-session-logout.desktop</Filename>
    </Layout>

    <Menu>
        <Name>MostUsed</Name>
        <Directory>mostused.directory</Directory>
        <Include>
            <Category>DK-MostUsed</Category>
        </Include>
    </Menu>

    <!-- MORE MENUS -->
</Menu>