Score:6

How can I run a favourited application with a runtime argument?

ky flag

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?

David avatar
cn flag
Make a desktop short cut for it. https://itsfoss.com/ubuntu-desktop-shortcut/
Score:8
cn flag

You should edit the .desktop launcher file. These text files are what provide the icon on your favorites bar.

  1. Find that .desktop launcher first. Depending on how you installed the application, the .desktop file may reside in any of the applications directories under one of the XDG_DATA_DIRS. You can see the list with the command printenv XDG_DATA_DIRS. It will be under /usr/share/applications if you installed the program with the software center or using a downloaded .deb installation file.

    To find the launcher, using find may be quicker and more effective:

     find / -name '*.desktop' ! -path '/run/user*' -exec grep -H "Name=Github" {} \; 2>/dev/null
    

    In this example, I assumed the label of the icon is "Github desktop".

  2. Assuming the file is /usr/share/applications/github.desktop, copy it to your local ~/.local/share/applications directory. That copy will override the systemwide copy. Edit that copy and add your option to the command that is defined on the line starting with Exec=.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.