Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

gnome-shell

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?

like image 606
mc.watras Avatar asked Jan 13 '12 12:01

mc.watras


People also ask

How do I change my GNOME settings?

To access the GNOME settings dialog, click Applications › System Tools › Settings. The dialog is divided into the following three categories: Personal. From here, you can change the background of your desktop or of the lock screen, and configure language settings.

How do I add apps to my GNOME menu?

Right-click the desktop area to open a context menu. Click Create Launcher. In the Create Launcher dialog box, confirm that Application is the default setting for Type, then enter the following required information: Type: Application (Default setting)

How do I use GNOME Control Center?

gnome-control-center is a graphical user interface to configure various aspects of GNOME. When run without arguments, the shell displays the overview, which shows all available configuration panels. The overview allows to open individual panels by clicking on them.

Where are GNOME menus stored?

Gnome user-level menus are stored in your $XDG_CONFIG_HOME/menus directory (by default ~/. config/menus/) and $XDG_DATA_HOME/applications directory (by default ~/. local/share/applications).


1 Answers

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.

like image 122
Gerd K Avatar answered Oct 12 '22 08:10

Gerd K