How to add arguments to links in gnome-shell menu [closed]
Asked Answered
H

1

6

I'm using gnome-shell with Ubuntu 11.10. At the left edge there is menu with icons. Where can I edit the command that is launched after clicking them? For example, there is gvim icon and I want it to start with -geometry flag. I assume it is in some config file, but where?

Hair answered 13/1, 2012 at 12:58 Comment(0)
P
5

To add startup arguments you have to modify the Exec parameter of the .desktop file. The gvim.desktop file is in

/usr/share/applications/gvim.desktop

Add the arguments you need to the line.

Exec=gvim -f %F

This will affect all users on your system. If you want a custom launcher file you can create a .desktop file in ~/.local/share/applications.

Philosophism answered 13/4, 2012 at 17:1 Comment(1)
If you have to use arguments with two signals, like: myapp --disable-gpu, you should use quotes: myapp "--disable-gpu"Owlish

© 2022 - 2024 — McMap. All rights reserved.