I like to use dired-do-shell-command to open audio and video files in an independent terminal using the default command

gnome-terminal -- mplayer *

and this works great. But now I've changed my window manager to Stumpwm and starting up a Gnome app when none are running takes forever. However, when I use a command like

xterm -e "mplayer * "

to do the same thing, Emacs is waiting for xterm to finish and stuck until then. So how do I open an independent instance (I've tried giving xterm a new title with xterm -T and I've tried using a xterm -e /bin/bash -l -c as suggested here, but neither works). So how do I start an independent instance of xterm?

I realize this is a borderline question for the Unix Stack exchange but I thought I'd post it here since it might depend on the specifics of Emacs.

1 Answer 1


I finally found an answer here: one just has to add a & at the end of the command!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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