Article 6H8D8 update-alternatives and default terminal

update-alternatives and default terminal

by
iamnoex
from LinuxQuestions.org on (#6H8D8)
I executed a .txt file that uses the terminal from a desktop launcher.
The script has three lines:
#check status of system SSD: 1TB Intel 660p
sudo nvme smart-log /dev/nvme0n1
$SHELL

When executed, the script uses gnome-terminal and I would like to use xterminal.

update-alternatives --config x-terminal-emulator shows this:

Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/gnome-terminal.wrapper 40 auto mode
1 /usr/bin/gnome-terminal.wrapper 40 manual mode
2 /usr/bin/koi8rxterm 20 manual mode
3 /usr/bin/lxterm 30 manual mode
4 /usr/bin/mlterm 20 manual mode
5 /usr/bin/uxterm 20 manual mode
6 /usr/bin/xterm 20 manual mode


Using update-alternatives --config x-terminal-emulator and selecting (6)
I get the following and the script still executes with gnome-terminal:

Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/gnome-terminal.wrapper 40 auto mode
1 /usr/bin/gnome-terminal.wrapper 40 manual mode
2 /usr/bin/koi8rxterm 20 manual mode
3 /usr/bin/lxterm 30 manual mode
4 /usr/bin/mlterm 20 manual mode
5 /usr/bin/uxterm 20 manual mode
* 6 /usr/bin/xterm 20 manual mode

Using sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/xterm 60
I get the following and the script still executes with gnome-terminal:

Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/xterm 60 auto mode
1 /usr/bin/gnome-terminal.wrapper 40 manual mode
2 /usr/bin/koi8rxterm 20 manual mode
3 /usr/bin/lxterm 30 manual mode
4 /usr/bin/mlterm 20 manual mode
5 /usr/bin/uxterm 20 manual mode
6 /usr/bin/xterm 60 manual mode

How do I get the script to execute with xterm and not gnome-terminal?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments