Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What I want to achieve is to get a "Git GUI here" item in the context menu of Nautilus (file manager). It should this easy job I would do in a terminal:

cd "path/to/current/folder"
git gui # <-- this pops up a GUI for Git in a new window

I'm using Nautilus Actions Configurator application to achieve this as shown below.

enter image description here

It does show the custom context menu, yet I would have expected it to also work this way, but it doesn't. Upon hitting my button it just opens Git GUI without actually run in the working directory of Nautilus is in.

What am I doing wrong about this current working directory?

share|improve this question
@gertvdijk when I leave path empty, item doesn't appear at all – Tural Aliyev Jan 10 '13 at 20:27
@gertvdijk ok did it. But it opens git gui. Not in current dir. – Tural Aliyev Jan 10 '13 at 20:33
@gertvdijk oh. I kinda got it. It opens git in parent folder. NOt in current – Tural Aliyev Jan 10 '13 at 20:34
up vote 5 down vote accepted

You need to markup your working directory. This is how I would do it:

Path: /usr/bin/git

Parameters: gui

Working directory: %d/%b

This will use the current directory, then the basename of the directory selected.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.