Skip to content

"Open in Terminal" not working on Fedora #4478

Closed

Description

@Coder206
  • VSCode Version: 0.10.11
  • OS Version: Fedora 23 (64 Bit)

Steps to Reproduce:

  1. Save work
  2. Right click in the toolbar
  3. Select "Open in Terminal"

Activity

  1. added
    bug
    linux
    on Mar 20, 2016
  2. Tyriar commented on Mar 20, 2016

    @Tyriar
    Contributor

    Reproduced. It gives the error spawn ENOTDIP. It's happening because x-terminal-emulator is not in the PATH on Fedora.

  3. Tyriar commented on Mar 20, 2016

    @Tyriar
    Contributor

    x-terminal-emulator is part of the Debian alternatives system which is why this doesn't work.

  4. pflannery commented on Mar 21, 2016

    @pflannery

    There is a PR #3495 that allows Linux users to specify a different terminal other than the hard coded x-terminal-emulator not sure whether it will be accepted or not though

  5. Tyriar commented on Mar 21, 2016

    @Tyriar
    Contributor

    Peter Flannery (@pflannery) thanks for pointing that out

  6. Coder206 commented on Mar 21, 2016

    @Coder206
    Author
  7. changed the title [-]"Open in Terminal" not loading terminal[/-] [+]"Open in Terminal" not working on Fedora[/+] on Apr 18, 2016
  8. Tyriar commented on Apr 18, 2016

    @Tyriar
    Contributor

    #3495 fixes this issue, thanks again Peter Flannery (@pflannery)

  9. aeschli commented on Apr 26, 2016

    @aeschli
    Contributor

    On my freshly installed Fedora 23 install I get the same error as above. That's with VSCode 1.0.1 (April release). Reopening...

  10. pflannery commented on Apr 26, 2016

    @pflannery

    Just did a fresh install of fedora 23 and it works for me.
    Did you have a workspace open?

    This is the vscode version I tested with

    image

  11. aeschli commented on Apr 26, 2016

    @aeschli
    Contributor

    I'm on the latest build from today that we use for testing
    The dev tools console shows: shell.ts:415spawn x-terminal-emulator ENOENT: Error: spawn x-terminal-emulator ENOENT.

    [aeschli@localhost workspaces]$ which x-terminal-emulator 
    /usr/bin/which: no x-terminal-emulator in (/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/home/aeschli/.local/bin:/home/aeschli/bin)
    

    Is there anything I need to install or configure first?

  12. Tyriar commented on Apr 27, 2016

    @Tyriar
    Contributor

    The code for that is here https://github.com/Microsoft/vscode/blob/849abd65ebf3e8c0f807e05639e723d16f8e6e3a/src/vs/workbench/parts/execution/electron-browser/terminal.ts#L9, it should yield gnome-terminal if it uses gnome (not sure if Fedora has other flavors).

    I created this to improve the defaults later though I expect it to work #5780

  13. Tyriar commented on May 14, 2016

    @Tyriar
    Contributor

    Closing in favor of #5780

  14. added
    verified
    on May 23, 2016
  15. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buglinuxverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions