I tried to run
sudo update-alternatives --config x-terminal-emulator
but it doesn't show up in the list, just the default gnome one, this is in Ubuntu 20.04.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityI tried to run
sudo update-alternatives --config x-terminal-emulator
but it doesn't show up in the list, just the default gnome one, this is in Ubuntu 20.04.
you need to install hyper as update-alternatives
first.. then you can select it from your command in the question..
I tried to install it and see.. I installed it with a deb package..
and ran which hyper
pratap@i7-6550U:~$ which hyper
/usr/local/bin/hyper
pratap@i7-6550U:~$
Create a script with below content and run it with root priviliges
#!/bin/bash
update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/local/bin/hyper 0
update-alternatives --set x-terminal-emulator /usr/local/bin/hyper
Example:
pratap@i7-6550U:~$ sudo update-alternatives --config x-terminal-emulator
[sudo] password for pratap:
There are 2 choices for the alternative x-terminal-emulator (providing /usr/bin/x-terminal-emulator).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/gnome-terminal.wrapper 40 auto mode
1 /usr/bin/gnome-terminal.wrapper 40 manual mode
* 2 /usr/local/bin/hyper 0 manual mode
Press <enter> to keep the current choice[*], or type selection number:
After reading the comments,
By tweaking the desktop-icons
extension you can somewhat achieve this.
desktop-icons
.. and the other one i think nautilus controls..
desktop-icons
and this is the result.. If you can set the --working-directory
with hyper.. it is possible to open hyper with desktop as directory.. i.stack.imgur.com/oAwFV.gif
sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /opt/Hyper/hyper 50
See https://github.com/vercel/hyper/issues/2764#issuecomment-374437229