|
Post by obsquidian on Aug 25, 2021 19:00:10 GMT
Apologies if this is the wrong board. I was just trying to create a new subfolder (like Games, one that already exists, for example) under Applications, but it didn't let me. (Specifically it says "Error opening file “/home/bodhi/.config/menus/moksha-applications.menu”: No such file or directory.") Why did I get this error? Or is there any way to do this, as well as other Applications folder customization / reorganization? Thanks.
|
|
enigma9o7
Crew Member
Posts: 1,427
Likes: 1,336
|
Post by enigma9o7 on Aug 25, 2021 20:42:27 GMT
The applications menu in pcmanfm is generated automatically based on desktop files. There's probably a wiki that'll explain it better than what I'll write.... Every entry in that menu has a .desktop file either in /usr/share/applications or ~/.local/share/applications and the contents of that desktop file (the Categories= field) affects what category pcmanfm puts it in its applications menu. This is based on xdg specification and lots of menus use it, not just pcmanfm, also the moksha start menu, and the applications menu in the everything starter, and most 3rd party linux application menus too.
If you want to change an applications name, category, icon, etc, copy the desktop file from /usr/share/applications to ~/.local/share/applications then edit the new copy. The local one takes priority over the one installed by the application in /usr/share/applications that you shouldn't edit directly (and cannot edit without sudo permission anyway, and if you did do it that way, your changes may get overwritten by later updates.)
If you want to make 100% sure a specific app ends up in a specific category, just set one thing for Categories. Some apps comes with desktop files that put the app in multiple categories.
Besides just editing the text file directly, Moksha does have an editor for some of those fields you can get to by right clicking on the icon of a currently running application for example and selecting edit icon, which does the same thing as I described above.
Or if you don't want to mess with the files, a third party menu editor may be what you're looking for.
sudo apt install menulibre
|
|