Skip to content

fish doesn't play well with "open terminal here" in Nautilus #1816

Closed

Description

@ridiculousfish

strelec commented in #1814:

Gnome-terminal: 3.14.2
Fish 3.1.1

Not only that, I have figured out fish doesn't play well with "open terminal here" in nautilus. Speaking of this package: https://www.archlinux.org/packages/extra/i686/nautilus-open-terminal/

Activity

  1. added this to the fish-future milestone on Nov 18, 2014
  2. ridiculousfish commented on Nov 18, 2014

    @ridiculousfish
    MemberAuthor

    I think this is the relevant code, in particular:

    remote_command = g_strdup_printf ("cd %s && exec $SHELL -", quoted_path);
    

    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?

  3. ridiculousfish commented on Nov 18, 2014

    @ridiculousfish
    MemberAuthor

    Never mind, I think that's only for remote ssh connections.

    @strelec can you confirm what value $SHELL has?

  4. strelec commented on Nov 18, 2014

    @strelec

    $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).

  5. ridiculousfish commented on Nov 18, 2014

    @ridiculousfish
    MemberAuthor

    Thanks for the clarification. What's the custom command that you're running?

  6. strelec commented on Nov 18, 2014

    @strelec

    fish or /usr/bin/fish, logically.

  7. raphaeldore commented on Nov 19, 2014

    @raphaeldore

    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.

  8. ridiculousfish commented on Nov 19, 2014

    @ridiculousfish
    MemberAuthor

    When this fails, what exactly happens?

  9. zanchey commented on Nov 20, 2014

    @zanchey
    Member

    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.

  10. strelec commented on Nov 20, 2014

    @strelec

    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.

  11. ridiculousfish commented on Nov 20, 2014

    @ridiculousfish
    MemberAuthor

    It looks like you could potentially set the TERMINAL_PROFILE_USE_CUSTOM_COMMAND_KEY (= "use-custom-command") preference?

  12. ridiculousfish commented on Nov 20, 2014

    @ridiculousfish
    MemberAuthor

    👏 @zanchey btw

  13. zanchey commented on Nov 20, 2014

    @zanchey
    Member

    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!

  14. removed this from the fish-future milestone on Oct 24, 2015
  15. fanderegg commented on Dec 16, 2016

    @fanderegg
  16. locked as resolved and limited conversation to collaborators on Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions