How to start an application with the default "terminal emulator" on Ubuntu?


daisy

I want to execute some commands in a terminal emulator like Konsole, but I need to make this cross desktop.

Is there a similar command xdg-openbut for getting the default terminal emulator?

I am using Ubuntu.

sr_

In Debian you can call x-terminal-emulator -e /some/commandas it points to a terminal emulator configured by Debian's " alternative " mechanism . by configuration

# update-alternatives --config x-terminal-emulator

This lets you choose which installed X11 terminal emulator to use as the default emulator , ie x-terminal-emulator. Finally, it's a symlink construct, for example gnome-terminal:

$ which x-terminal-emulator
/usr/bin/x-terminal-emulator
$ ls -al /usr/bin/x-terminal-emulator 
lrwxrwxrwx 1 root root 37 Apr 26  2010 /usr/bin/x-terminal-emulator -> /etc/alternatives/x-terminal-emulator
$ ls -al /etc/alternatives/x-terminal-emulator
lrwxrwxrwx 1 root root 31 Apr 26  2010 /etc/alternatives/x-terminal-emulator -> /usr/bin/gnome-terminal.wrapper
$ file /usr/bin/gnome-terminal.wrapper
/usr/bin/gnome-terminal.wrapper: Perl script, ASCII text executable

some words,

Related


Start the default terminal emulator by command

Charlie How to start default terminal emulator via command? x-terminal-emulatorCan't work because I'm not using Debian and xdg-terminalit doesn't seem to exist either. Is there any other way to start the default terminal emulator? It will be on GNOME, although

Start the default terminal emulator by command

Charlie How to start default terminal emulator via command? x-terminal-emulatorCan't work because I'm not using Debian and xdg-terminalit doesn't seem to exist either. Is there any other way to start the default terminal emulator? It will be on GNOME, although

How to change the default terminal emulator on Windows (cmd)?

Alexander Urme Is it possible to change the default terminal emulator on Windows (especially 7 and 8) from Console to Console2 or ConEmu? Essentially, I want all command line tools (whether run by double-click, launched from "Run" or via another process) to us

Linux: How to set default directory for terminal emulator?

Jons After upgrading to Ubuntu 11.04, my terminals (gnome-terminal and urxvt) start "/"instead of"~" What would cause this behavior? I imagine the working directory for Gnome or X is set to "/"or something like that, but I don't know where to start debugging i

How to change the default terminal emulator on Windows (cmd)?

Alexander Urme Is it possible to change the default terminal emulator on Windows (especially 7 and 8) from Console to Console2 or ConEmu? Essentially, I want all command line tools (whether run by double-click, launched from "Run" or via another process) to us

How to debug x-terminal-emulator that won't start?

Lord Lou I am trying to start a terminal window in openbox. However, the window never pops up. I am trying to execute $ x-terminal-emulator $ echo $? 1 The same happens if I try to run gnome-terminal. There is no output. However, this works just fine under xf

How to debug x-terminal-emulator that won't start?

Lord Lou I am trying to start a terminal window in openbox. However, the window never pops up. I am trying to execute $ x-terminal-emulator $ echo $? 1 The same happens if I try to run gnome-terminal. There is no output. However, this works just fine under xf

How to debug x-terminal-emulator that won't start?

Lord Lou I am trying to start a terminal window in openbox. However, the window never pops up. I am trying to execute $ x-terminal-emulator $ echo $? 1 The same happens if I try to run gnome-terminal. There is no output. However, this works just fine under xf

Ubuntu X terminal emulator

stupid professor Whenever I press Ctrl+Alt+T, the X terminal emulator opens instead of Gnome Terminal. I do not know why. What is this x terminal emulator and what does it do? How is it different from Gnome Terminal? vanadium Totally possible workaround A very

Change the default terminal emulator on Debian

BugHunterUK I'm trying to change my terminal emulator from xtermDebian Jessie to eterm. I can't seem to find the tty config file. I've run: sudo find / -name tty*.confbut this yields nothing. Where is the configuration file and how do I change the default term

Is an online Ubuntu terminal emulator available?

username I'd like to use some terminal commands from the official Ubuntu packages, but currently don't have access to an Ubuntu PC. Is there a free online terminal emulator like Ubuntu 16.04 running? I've tried this step, but it seems to be very limited (i.e.

Is an online Ubuntu terminal emulator available?

username I'd like to use some terminal commands from the official Ubuntu packages, but currently don't have access to an Ubuntu PC. Is there a free online terminal emulator like Ubuntu 16.04 running? I've tried this step, but it seems to be very limited (i.e.

How to Create a Terminal Emulator in Python

Shadur Naregav Tired of traditional cmdwindows so wanted to build one myself. Any tutorials, libraries etc would be helpful. Thanks in advance!:) Serge Ballesta A shell in the sense of a CLI command interpreter (bash or cmd.exe) can be independent of the opera

How to specify a terminal emulator in Corda

Leonard Salles Xterm is used when running Corda locally on a computer with gradle. Is there a way to specify the terminal editor when running as suggested in the question below? https://github.com/corda/corda/issues/2605 David Ward I fully share your pain on t

How to reset Terminator terminal emulator configuration?

Linnob I messed up with terminator, I tried using some commands in the preferences, but now it doesn't work anymore, it starts and exits immediately, I tried reinstalling it using synaptic manager, but that didn't work either. I searched and found nothing. I c

How to reset Terminator terminal emulator configuration?

Linnob I messed up with terminator, I tried using some commands in the preferences, but now it doesn't work anymore, it starts and exits immediately, I tried reinstalling it using synaptic manager, but that didn't work either. I searched and found nothing. I c

How to use Minty as a terminal emulator for MinGW/MSYS?

Ben Blank The default "terminal emulator" in Windows leaves a lot to be desired. I think mint is suggested as a lightweight alternative with specific support for MinGW/MSYS, but there isn't much information on how to actually use it. How to instruct MinGW/MSYS

How to reset terminal emulator from tmux?

Western letter I want to "clear" the tmux pane completely. when i do something like bind-key C send-keys "clear && tmux clear-history" \; send-keys "Enter" As suggested in https://stackoverflow.com/questions/10543684/how-can-i-clear-scrollback-buffer-in-tmux

How to open files in vim's terminal emulator

Kutu Gandhi Using vim, which I :termuse to open a terminal emulator. After in the cd /path/to/projectterminal emulator, I have a file called foo.txt. If I open it like vim foo.txtin a normal terminal , it opens vim in vim, which causes all kinds of problems. I

How to reset Terminator terminal emulator configuration?

Linnob I messed up with terminator, I tried using some commands in the preferences, but now it doesn't work anymore, it starts and exits immediately, I tried reinstalling it using synaptic manager, but that didn't work either. I searched and found nothing. I c

How to use Minty as a terminal emulator for MinGW/MSYS?

Ben Blank The default "terminal emulator" in Windows leaves a lot to be desired. I think mint is suggested as a lightweight alternative with specific support for MinGW/MSYS, but there isn't much information on how to actually use it. How to instruct MinGW/MSYS

How to reset terminal emulator from tmux?

Western letter I want to "clear" the tmux pane completely. when i do something like bind-key C send-keys "clear && tmux clear-history" \; send-keys "Enter" As suggested in https://stackoverflow.com/questions/10543684/how-can-i-clear-scrollback-buffer-in-tmux

What's the most convenient way to start a terminal emulator?

manden Suppose I need to write a script to start a terminal and execute commands, and need to work on various systems. How can I do it in a safe and portable way? Is xtermit always installed? I assume any *nix with GUI must have some terminal emulator. How do

What's the most convenient way to start a terminal emulator?

manden Suppose I need to write a script to start a terminal and execute commands, and need to work on various systems. How can I do it in a safe and portable way? Is xtermit always installed? I assume any *nix with GUI must have some terminal emulator. How do