Results 1 to 1 of 1

Thread: Applications Menu (Main Menu) customization in Lubuntu 20.04 LTS (LXQt)

  1. #1
    Join Date
    Jun 2019
    Location
    Dirndl-land
    Beans
    381
    Distro
    Lubuntu 20.04 Focal Fossa

    Applications Menu (Main Menu) customization in Lubuntu 20.04 LTS (LXQt)

    Note: probably also works for other flavors of Ubuntu, but I am not able to test it.

    The Applications Menu (bottom left corner of the screen) in Lubuntu is NOT some "menu file", so there's no reason to search for it, it doesn't exist.

    Rather, it's a "frame", filled with content every time you (or others) login, making it user specific. The basic menu structure is defined in:
    Code:
    /etc/xdg/menus/lxqt-applications.menu
    It defines the names/headlines of the menu items shown at the first/main level and assigns these names to Categories (more about that a bit later).
    I most strongly discourage you from changing this file! But using it as lookup reference is a good idea.

    The real content of the menu is read from .desktop files, one menu entry per file*; modifying the Applications Menu is done by editing the .desktop files.

    The .desktop files are located in:

    Admin user:
    Code:
    /usr/share/applications
    Normal user:
    Code:
    $HOME/.local/share/applications
    Each .desktop file contains a line called Categories. This parameter determines the location of the menu item in the Applications Menu. The basic/mandatory categories defined for Linux systems are:
    Code:
    AudioVideo
    Audio   
    Video   
    Development 
    Education   
    Game    
    Graphics    
    Network 
    Office  
    Settings
    Utility
    If you look in:
    Code:
    /etc/xdg/menus/lxqt-applications.menu
    You'll find exactly these there, and also the association to the Applications Menu headlines.

    Now to changing the Applications Menu for real:


    1. Removing an item from the Applications Menu: sudo edit the .desktop file in question and add the line: NoDisplay=true
    2. Relocate an item in the menu: sudo edit the .desktop file in question and locate the line "Categories". Change the category according to the list above.
    3. Add a new menu entry: the best approach is to copy an existing .desktop file and modify it to your program/name/category.


    (*) not quite true, a .desktop file item can appear in more than one menu.
    Last edited by ml9104; 1 Day Ago at 10:15 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •