I'd just change the permissions on the .desktop files for those programs I don't want viewable - if the current userid doesn't have 'read' permissions, then it won't be able to see them and they won't show up in any menu.
.desktop files are only used by the menu systems, so it won't have any impact on other aspects of the system and the programs will still be available for anyone that knows the actual name of the program.
For example, the current permissions for synaptic.desktop are:
Code:
-rw-r--r-- 1 root root 275 Mar 29 2018 synaptic.desktop
if I change them to
Code:
-rw-r----- 1 root root 275 Mar 29 2018 synaptic.desktop
then synaptic don't be available in any menu. Simple. Elegant.
Bookmarks