martyr-deepin / deepin-terminal-gtk

DDE terminal emulator application
GNU General Public License v3.0
263 stars 57 forks source link

Default Terminal in Ubuntu 19.04 #186

Closed biswajitpaul01 closed 5 years ago

biswajitpaul01 commented 5 years ago

How can I replace it as default terminal in Ubuntu 19.04? So that when I right click and select "Open in Terminal" in menu, it opens up automatically.

BLumia commented 5 years ago

I'm not sure which file manager application you are using, but you can try sudo update-alternatives --config x-terminal-emulator.

Also, do a google search first is recommended, let us know with more information provided so we can help you out :)

biswajitpaul01 commented 5 years ago

I am using default file manager in Ubuntu. Below is my terminal screenshot after running the command:

DeepinScreenshot_gnome-terminal-server_20190801222245

DeepinScreenshot_select-area_201908012229451

BLumia commented 5 years ago

Try something like sudo update-alternatives --set x-terminal-emulator /usr/bin/deepin-terminal and try sudo update-alternatives --config x-terminal-emulatoragain?

biswajitpaul01 commented 5 years ago

I got this error:

DeepinScreenshot_gnome-terminal-server_20190802221013

BLumia commented 5 years ago

Oops, seems you need to register deepin-terminal to the alternatives list first.

Basicly /etc/alternatives/x-terminal-emulator is just a simple symlink to the default termnal emulator binary file location and update the link to deepin-terminal should works. But if you want to do this in a more debian way(since update-alternatives is a debian-based-distro only thing), consider read the man page of update-alternatives and see what you should do next.

biswajitpaul01 commented 5 years ago

Hi @BLumia

Thank you for your response. I searched it and found out this command: sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/deepin-terminal 50

Then I run below to set the terminal: sudo update-alternatives --config x-terminal-emulator

It works with shortcut key Ctrl+Alt+T but not inside file manager right click menu. You may comment more if you found new solution, but now I am closing this issue.

Thanks again.

BLumia commented 5 years ago

I'm not using ubuntu/gnome now so cannot try it by myself but maybe this page can helps :)

netochaves commented 4 years ago

The @biswajitpaul01 solution works fine, thanks.