You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fish doesn't play well with "open terminal here" in Nautilus #1816
I think the problem is that trailing dash. fish doesn't support that. I'm not sure why it's there - maybe to try to hint bash into reading from standard input?
$SHELL reports /bin/bash, but that is for a reason. I am not using fish systemwide, as that would break the system. This is what archlinux wiki recommends.
I am using fish by setting "run custom command instead of my shell" gnome-terminal setting.
On an unrelated note, thanks for this great shell and very active developer(s).
Hi,
I just wanted to point out that this issue is also occuring to me. I'm on Arch, using Gnome 3.14. Issue was also occuring in Gnome 3.12. But, on my Xubuntu 14.04 virtualbox machine at home the issue doesn't occur (I don't know if it has anything to do with me changing the default shell on that account...).
The gnome-terminal executes when it is launched is simply: fish.
For now, the only fix I've got is to launch fish from .bashrc.
The issue I can see with gnome-terminal 3.14.0 and nautilus-open-terminal 0.20 is that if you use "Run a custom command" in the terminal profile settings to launch fish, that is not respected when you start new terminals with "Open in Terminal" from Nautilus.
I suspect this is a problem with GNOME Terminal rather than fish.
For me, it's quite a dealbreaker, so I guess I'll have to compile gnome-terminal myself. Hope it gets resolved, but until then, I'm available if you need anything.
Unfortunately if you unset use-custom-command then it will launch your login shell, so you lose the functionality. The best way to work around it is probably to put [ -x /usr/bin/fish ] && exec fish at the bottom of your .bashrc or .zshrc, I do this at our centre and it works very well.
@strelec, it might be worth commenting on the GNOME bug to explain your use case. HTH!
Reacted by ix5, cmtjk, Aleksi Suutarinen, Marcelo R. Avila, Petko Dichev, Jibesh Patra and yvanst
Activity
ridiculousfish commentedon Nov 18, 2014
I think this is the relevant code, in particular:
I think the problem is that trailing dash. fish doesn't support that. I'm not sure why it's there - maybe to try to hint bash into reading from standard input?
ridiculousfish commentedon Nov 18, 2014
Never mind, I think that's only for remote ssh connections.
@strelec can you confirm what value
$SHELLhas?strelec commentedon Nov 18, 2014
$SHELL reports /bin/bash, but that is for a reason. I am not using fish systemwide, as that would break the system. This is what archlinux wiki recommends.
I am using fish by setting "run custom command instead of my shell" gnome-terminal setting.
On an unrelated note, thanks for this great shell and very active developer(s).
ridiculousfish commentedon Nov 18, 2014
Thanks for the clarification. What's the custom command that you're running?
strelec commentedon Nov 18, 2014
fish or /usr/bin/fish, logically.
raphaeldore commentedon Nov 19, 2014
Hi,
I just wanted to point out that this issue is also occuring to me. I'm on Arch, using Gnome 3.14. Issue was also occuring in Gnome 3.12. But, on my Xubuntu 14.04 virtualbox machine at home the issue doesn't occur (I don't know if it has anything to do with me changing the default shell on that account...).
The gnome-terminal executes when it is launched is simply: fish.
For now, the only fix I've got is to launch fish from .bashrc.
ridiculousfish commentedon Nov 19, 2014
When this fails, what exactly happens?
zanchey commentedon Nov 20, 2014
The issue I can see with gnome-terminal 3.14.0 and nautilus-open-terminal 0.20 is that if you use "Run a custom command" in the terminal profile settings to launch fish, that is not respected when you start new terminals with "Open in Terminal" from Nautilus.
I suspect this is a problem with GNOME Terminal rather than fish.
zanchey commentedon Nov 20, 2014
As per #1814, the behaviour I have described - if this is what @strelec and @raphaeldore are experiencing - is intentional in gnome-terminal:
https://github.com/GNOME/gnome-terminal/blob/371306b334c642fec756fe76449fd5823921dddb/src/terminal-screen.c#L1269
https://git.gnome.org/browse/gnome-terminal/commit/?id=fc68d2735f8804d3c5d0d40635a27989727c3f9b
https://bugzilla.gnome.org/show_bug.cgi?id=706927
strelec commentedon Nov 20, 2014
So, the two problems are related after all.
For me, it's quite a dealbreaker, so I guess I'll have to compile gnome-terminal myself. Hope it gets resolved, but until then, I'm available if you need anything.
ridiculousfish commentedon Nov 20, 2014
It looks like you could potentially set the
TERMINAL_PROFILE_USE_CUSTOM_COMMAND_KEY(="use-custom-command") preference?ridiculousfish commentedon Nov 20, 2014
👏 @zanchey btw
zanchey commentedon Nov 20, 2014
Unfortunately if you unset
use-custom-commandthen it will launch your login shell, so you lose the functionality. The best way to work around it is probably to put[ -x /usr/bin/fish ] && exec fishat the bottom of your.bashrcor.zshrc, I do this at our centre and it works very well.@strelec, it might be worth commenting on the GNOME bug to explain your use case. HTH!
fanderegg commentedon Dec 16, 2016
If you set fish as your default shell globally (http://askubuntu.com/questions/26439/how-do-i-set-fish-as-the-default-shell) and do not set is as custom command in gnome terminal, it works as it should.