I have upgraded to Ubuntu 13.04 a few days ago.
With Ubuntu 12.10 I had set the default terminal with:
gsettings set org.gnome.desktop.default-applications.terminal exec /usr/bin/terminator
gsettings set org.gnome.desktop.default-applications.terminal exec-arg "-x"
I had set it with sudo update-alternatives --config x-terminal-emulator
too.
But none of these options work on Ubuntu 13.04.
How can I set Terminator as default terminal emulator with nautilus "open terminal"?
This isn't a duplicate. As I've said: the solutions in How can I set default terminal used in Unity? doesn't work on Ubuntu 13.04 with nautilus "open terminal".
My question is: "Set Terminator as default terminal emulator WITH NAUTILUS "OPEN TERMINAL" on Ubuntu 13.04"
Here's how to add an 'Open in Terminator' option:
Install 'Nautilus-Actions Configuration Tool'
In 'Nautilus-Actions Configuration Tool', add a new rule with the following (as a guidance):
In the Actions tab, tick both boxes and select an appropriate name (e.g. Open in Terminator):
In the Command tab, set:
In the Mimetypes tab, set:
I recommend that you also change the preferences in Nautious-Actions Configuration Tool to get rid of the two level context menu by unticking the following in Edit > Preferences:
Log out and Log in again.
Now you're all set and should see a 'Open in Terminator' option if you right-click in Nautilus.
This is also a bit of a 'hack', but it's less painful than the one provided by Germano, and allows you to still use gnome-terminal if you need to by referring to it with a full pathname (i.e.
/usr/bin/gnome-terminal
instead of justgnome-terminal
).Make sure your ~/.bashrc file contains the following somewhere in it:
Then run the following in a shell:
Finally, log-out, and back in to your Ubuntu account.
EDIT: Just saw this meaning it maybe does not work with 13.04 after all. Still, it is something I would try (I'm on 12.04 LTS btw): Setting nautilus-open-terminal to launch Terminator rather than gnome-terminal
Original Message:
It may be too late, but since I was looking for a solution to the same thing but for konsole...
If you install
dconf-editor
you can (very similar to the gsettings commands) set the terminal you want to have opened by opening dconf-editor and setting:Afterwards you can quit and re-initialise nautilus with
nautilus -q
(may take two executions for the following to appear)It's also now possible to debug nautilus from the command line with:
Any problems when calling 'Open in Terminal' will be logged here.
NOTE: this was only possible directly after calling with the
-q
flag. Otherwise calling nautilus simply opens the application and returns to the shell without logging.My problem, if it interests anyone, was that the
-x
arg doesn't work with konsole, so I changed it to--new-tab -e
because I didn't want a new Konsole window opening up everytime.Hopes it helps someone.