I've got a few programs that need to have --no-sandbox appended to their execution in the application drawer. How do I do this?
Asked
Active
Viewed 62 times
1 Answers
2
To change the Exec= line of an application:
- Copy the
.desktoplauncher that needs to be changed to~/.local/share/applicationsif the change is to affect your user only, or to/usr/local/share/applicationsif the change is to affect all users. - Open the copy, and add the desired flag to the command specified on the line that starts with
Exec=
Note:
- You need to have root permissions if you work in
/usr/local/share/applications. - To help you find the relevant
desktopfile, you can use the commandfind / -name '*.desktop' -exec grep -H "$1" {} \; 2>/dev/null, where you should replace the$1with, for example,Name=Terminalif you want to find.desktoplaunchers that cause "Terminal" to be displayed in the application menu. - If you find multiple files, then the one appearing in the first
applicationssubdirectory of any of the directories listed in theXDG_DATA_DIRSenvironment variable will be the one that takes effect. You can see the contents of that variable with the commandprintenv XDG_DATA_DIRS
vanadium
- 97,564