I know that if you want to add a .desktop entry it must be added in /usr/share/applications
, however, what I want is to add an extra folder where it can host .desktop files.
If I run update-desktop-database you can see that programs like snapd or flatpak create their own directories where they host their .desktop
The databases in [/usr/share/ubuntu/applications, /home/cactus/.local/share/flatpak/exports/share/applications, /var/lib/flatpak/exports/share/applications, /usr/local/share/applications, /usr/share/applications, /var/lib/snapd/desktop/applications] could not be updated.
My idea is to add a folder /opt/applications
where I can save .desktop of my self-compiled applications.