TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

I'm trying to customize Texmaker to my needs. I use git to version my documents, so I would like to set a user command to git-commit. An editor should then be invoked to receive my commit message.

Normally it would call vim, but that's a command-line editor. When working from Texmaker, it should start a graphical editor, such as gedit. So I thought I'd use the command:

GIT_EDITOR="gedit -w -s" git-commit -a

Now here's the thing: It won't work as a user-command. It simply does nothing. On a hunch I put the same command in the field for DVI viewer. And lo and behold, that works as expected. The external viewer commands can open new X windows, but for some reason the user commands cannot.

I usually know my way around Linux, but I'm not sure about this one. I tried some obvious tricks, like prepending DISPLAY=:0, but to no avail. Some help would be appreciated!

share|improve this question
Guess: may be make Texmaker aware of git or gedit executable bin path in Configure Texmaker-->Commands--> Add to PATH and then User Command may take into effect. Related TeXstudio Q: tex.stackexchange.com/questions/112396/… – texenthusiast Dec 6 '13 at 6:07

Your Answer


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

Browse other questions tagged or ask your own question.