Choose terminal when using qube widget "Run terminal"

This did the trick (on r4.3). I expected it to be applied system-wide via export TERMINAL="something".

Hopefully would be back-ported to r4.2 after some testing.

I’m indeed on 4.2

1 Like

… which is normal, because 4.3 has not been released yet! :man_shrugging:

As barto have already noted, one of the easiest ways to manage this is using update-alternatives to determine x-terminal-emulator (since it has the highest hard-coded priority) by either declaring it with

update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator <path_to_your_terminal> <priority>

or configuring from existing choices:

update-alternatives --config x-terminal-emulator
There are 4 choices for the alternative x-terminal-emulator (providing /usr/bin/x-terminal-emulator).

  Selection    Path                 Priority   Status
------------------------------------------------------------
*0            /usr/bin/xterm         40        auto mode
  1            /usr/bin/koi8rxterm   20        manual mode
  2            /usr/bin/lxterm       30        manual mode
  3            /usr/bin/uxterm       20        manual mode
  4            /usr/bin/xterm        20        manual mode

Press <enter> to keep the current choice[*], or type selection number:

With bigger number being higher priority

3 Likes

Exactly my point too :smile:

1 Like

I could have been testing 4.3 :slight_smile:

Ah cool, I did not know it could handle terminal emulator :+1: I need to check of you script this to not use interactively.

On fedora 41 update-alternatives --config x-terminal-emulator does nothing.

Installing a link worked though.

update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/gnome-terminal 5
3 Likes