Ubuntustudio application menu, games category

All we need is an easy explanation of the problem, so here it is.

Since Ubuntustudio switched to the plasma-desktop with 20.10 we have a new organized application menu which divides the games category in subcategories.

This is nice if one install a lot of games. But it increases the number of clicks you need to launch a game. I install or play games only occasionally, so it makes more sense for me to have all games in the games category and not in any subcategory.

How can I change my menu to display all games in the games category?

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

I created a file named games.menu with the following content:

<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" "http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
<Menu>
    <Name>Applications</Name>
    <Menu>
        <Name>Games</Name>
        <Directory>kf5-games.directory</Directory>
        <Menu>
            <Name>Arcade</Name>
            <Directory>ubuntustudio-noshow.directory</Directory>
        </Menu>
        <Menu>
            <Name>Board</Name>
            <Directory>ubuntustudio-noshow.directory</Directory>
        </Menu>
        <Menu>
            <Name>Card</Name>
            <Directory>ubuntustudio-noshow.directory</Directory>
        </Menu>
        <Menu>
            <Name>Kidsgames</Name>
            <Directory>ubuntustudio-noshow.directory</Directory>
        </Menu>
        <Menu>
            <Name>TacticStrategy</Name>
            <Directory>ubuntustudio-noshow.directory</Directory>
        </Menu>
        <Menu>
            <Name>Logic</Name>
            <Directory>ubuntustudio-noshow.directory</Directory>
        </Menu>
        <Include>
            <Category>Game</Category>
        </Include>
    </Menu>
</Menu>

Place this file in /etc/xdg/menus/applications-merged/ for systemwide configuration or
in ~/.config/menus/applications-merged/ (you may need create this folder) for per-user configuration.

Nothing else to do, it will take a moment for the xdg-subsystem to update and then you will see the changes in the application menu.

I tested this with Ubuntustudio 20.10, 21.04 and 21.10.

This will definitely not work on earlier versions of Ubuntustudio since they come with the XFCE-desktop.

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply