I need suggestions. Currently fogger creates .desktop files for fogapps and puts them in ~/.local/share/applications so that they can be launched from dash or legacy app menus. Everything works as expected but these application shortcuts remain lying around after fogger is removed by the user thus cluttering the applications lens with useless entries. I've a couple of solutions in mind.
Ship fogger with a postremoval script which finds all fogapp .desktop files for every user and removes or disables them (Hidded attribute) and a preinstall script which again finds already present apps and enables thems. This should be straight forward but I'm not sure if it is considered a sane practice for deb files to mess with users' home directories.
Second solution is to keep all the .desktop files hidden by default and ship fogger with a special lens for launching fogapps. The draw back here is that fogapps will not be shown in legacy menus or launchers other than dash like synapse. Also, only 2 days are left to implement this and fix/improve/add other features.