Creating Folder

You can add actions to one or more .desktop files and paste the Exec= command from whichever packages you want to launch. I made a post here about adding actions to .desktop files.

This would be how to make a folder-like .desktop file:

  1. Create .desktop file in ~/.local/share/applications/

    touch ~/.local/share/applications/folder.desktop
    
  2. Open .desktop file in a text editor like gedit and add this:

[Desktop Entry]
Name=Folder
Type=Application
Icon=/PATH/TO/ICON/
Exec=DEFAULT APPLICATION OR COMMAND
Categories=Utility;

##Define Actions (as many as you want)
Actions=app_1;app_2;app_3;

[Desktop Action app_1]
Name=APPLICATION NAME (or whatever you want)
Exec=

[Desktop Action app_2]
Name=APPLICATION NAME (or whatever you want)
Exec=

[Desktop Action app_3]
Name=APPLICATION NAME (or whatever you want)
Exec=
  1. For the packages that you want to add, open the .desktop file in /usr/share/applications/ and copy/paste the Exec= line into your new .desktop file for one of the actions.

  2. To run one of the commands, tap and hold on the .desktop icon (or right-click it if you have a mouse connected) and tap (or click) the action on the popup menu.

This is how I handle my Librem 5, and I also have custom scripts for useful things.

4 Likes