Warp icon indicating copy to clipboard operation
Warp copied to clipboard

Issue Setting Warp Terminal as Default with update-alternatives on Linux

Open rmasad opened this issue 1 year ago • 3 comments

Discord username (optional)

No response

Describe the bug

I am reaching out to report a difficulty I've encountered while trying to set Warp Terminal as my default terminal emulator using the update-alternatives --config x-terminal-emulator command on Ubuntu 23.10. Unfortunately, the process does not seem to recognize Warp Terminal as an available option for selection.

To reproduce

  1. Open the terminal.
  2. Execute the command: sudo update-alternatives --config x-terminal-emulator.
  3. Observe the list of terminal emulators presented.

Expected behavior

No response

Screenshots

No response

Operating system

Linux

Operating system and version

Ubuntu 23.10

Shell Version

No response

Current Warp version

No response

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

rmasad avatar Feb 22 '24 15:02 rmasad

from reading other issues #2495 and #753 (albeit, they're geared towards Mac) it looks like because of the way Warp is currently built, it's not set up to be a terminal replacement just yet.

What i've done is just remapped ctrl + alt + t to Warp and added warp to my dock. Still a pain because you can't right click in folders to open in warp, but at least it does appear they are aware of the issue and that there is major support for this request!

unquenchedservant avatar Feb 23 '24 03:02 unquenchedservant

@unquenchedservant > What i've done is just remapped ctrl + alt + t . Do you mind sharing how to do in debian based distros?

lekhnath avatar Feb 23 '24 10:02 lekhnath

@unquenchedservant > What i've done is just remapped ctrl + alt + t . Do you mind sharing how to do in debian based distros?

https://wiki.debian.org/Keyboard/MultimediaKeys set up a custom shortcut, and it should overwrite/override the default. It did on ubuntu and pop! anyway

unquenchedservant avatar Feb 23 '24 22:02 unquenchedservant

@rmasad you can manually add a new entry in x-terminal-emulator list with this command : sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/warp-terminal 100

Note that I set the priority to 100, so that warp is the default terminal

If you want to change the default action of the Nautilus "Open in terminal" menu, you can also follow the guidelines in this post: Setting nautilus-open-terminal to launch Terminator rather than gnome-terminal

RapazP avatar Feb 28 '24 10:02 RapazP

Thanks! it works

rmasad avatar Feb 28 '24 12:02 rmasad

@rmasad you can manually add a new entry in x-terminal-emulator list with this command : sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/warp-terminal 100

Note that I set the priority to 100, so that warp is the default terminal

If you want to change the default action of the Nautilus "Open in terminal" menu, you can also follow the guidelines in this post: Setting nautilus-open-terminal to launch Terminator rather than gnome-terminal

Amazing!

unquenchedservant avatar Mar 01 '24 00:03 unquenchedservant

@rmasad you can manually add a new entry in x-terminal-emulator list with this command : sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/warp-terminal 100

Note that I set the priority to 100, so that warp is the default terminal

If you want to change the default action of the Nautilus "Open in terminal" menu, you can also follow the guidelines in this post: Setting nautilus-open-terminal to launch Terminator rather than gnome-terminal

This worked but for Nautilus it keeps the gnome terminal open too, and it closes warp if I close gnome terminal.

FlamenWolf avatar Mar 01 '24 00:03 FlamenWolf

This worked but for Nautilus it keeps the gnome terminal open too, and it closes warp if I close gnome terminal.

Yea, it's very hit or miss for me if it closes gnome terminal. I find if I open terminal from the application menu, it will keep gnome terminal open, but from right clicking within nautilus, it's 60/40 for the terminal window closing

unquenchedservant avatar Mar 01 '24 02:03 unquenchedservant

Okay I found a solution for Nautilus on Ubuntu: https://github.com/Stunkymonkey/nautilus-open-any-terminal

Go to 'releases' and download the '.deb' file then run it. After that, follow the steps on the main page. Change the terminal to 'warp'. It needs to be lower-case. This is working perfectly for me so far. The only down side is now instead of saying "Open Terminal Here" it says "Open warp Here". The lower-case 'w' just bugs me a bit and I can't find a work around for it, but if you don't care or can ignore it then there shouldn't be any issues.

FlamenWolf avatar Mar 01 '24 03:03 FlamenWolf