I have installed GitHub Desktop for Ubuntu but unfortunately I need to run it with the argument --disable-gpu-sandbox for it to work. This is achievable from the command line but I'd like to simply click it from my favourites bar, how can I achieve this?
- 161
-
Make a desktop short cut for it. https://itsfoss.com/ubuntu-desktop-shortcut/ – David Oct 14 '22 at 08:56
1 Answers
You should edit the .desktop launcher file. These text files are what provide the icon on your favorites bar.
Find that
.desktoplauncher first. Depending on how you installed the application, the.desktopfile may reside in any of theapplicationsdirectories under one of theXDG_DATA_DIRS. You can see the list with the commandprintenv XDG_DATA_DIRS. It will be under/usr/share/applicationsif you installed the program with the software center or using a downloaded.debinstallation file.To find the launcher, using
findmay be quicker and more effective:find / -name '*.desktop' ! -path '/run/user*' -exec grep -H "Name=Github" {} \; 2>/dev/nullIn this example, I assumed the label of the icon is "Github desktop".
Assuming the file is
/usr/share/applications/github.desktop, copy it to your local~/.local/share/applicationsdirectory. That copy will override the systemwide copy. Edit that copy and add your option to the command that is defined on the line starting withExec=.
- 88,010