question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GNOME terminal not always present when using "Open in Shell" for first time

See original GitHub issue

Describe the bug

Can’t open repository folder in terminal on Deepin DE (also fails on Deepin OS distro)

Version & OS

Github Desktop Version: 2.5.4-linux1 OS: Arch Linux x64 - kernel version: 5.8.8-arch1-1

Steps to reproduce the behavior

  1. Open a local repository
  2. Go to Repository menu
  3. Click on ‘Open in GNOME(?) Terminal’ menu item (no GNOME installed)
  4. Bang! Error message shown

Expected behavior

System’s default Virtual Terminal Emulator (Deepin Terminal, in my case) started on repository folder

Actual behavior

This message: image

Screenshots

image

Compared to referenced issue #167 , Deepin Terminal finally appears in shell menu image

Logs

2020-09-16T17:11:11.064Z - info: [ui] Background fetch for 10 repositories took 1.321sec
2020-09-16T17:17:31.709Z - info: [ui] [AppStore] loading 10 repositories from store
2020-09-16T17:17:31.709Z - info: [ui] [AppStore] found account: jmejia32 (Javier Mejía Estrada)
2020-09-16T17:17:32.253Z - info: [ui] launching: 2.5.4-linux1 (Linux 5.8.8-arch1-1)
2020-09-16T17:17:32.254Z - info: [ui] execPath: '/opt/github-desktop/github-desktop'
2020-09-16T17:19:21.527Z - info: [ui] [AppStore] loading 9 repositories from store
2020-09-16T17:19:21.527Z - info: [ui] [AppStore] found account: jmejia32 (Javier Mejía Estrada)
2020-09-16T17:19:22.070Z - info: [ui] launching: 2.5.4-linux1 (Linux 5.8.8-arch1-1)
2020-09-16T17:19:22.071Z - info: [ui] execPath: '/opt/github-desktop/github-desktop'

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
shiftkeycommented, Nov 6, 2020

“GNOME Terminal” is shown regardless it is installed or not, and Deepin Terminal works so far.

There’s some history in here that I’m hazy on, but on initial launch we don’t have a selected terminal and the placeholder we use is a best guess. This works fine on Windows and macOS because we know what shells are available by default, but clearly that won’t work for Linux due to the different permutations of configurations available.

It’d be nice to be able to probe on this first launch and see what shells are installed, and choose the first valid shell, but I’m not sure if we have a suitable hook to do that.

0reactions
aminyacommented, Nov 22, 2022

I have the same problem. On Kubuntu, the default terminal is the Konsole, but the “Open in <Terminal>” UI still shows the GNOME terminal, which doesn’t work; giving a path error. KDE doesn’t come with a GNOME terminal.

The workaround seems to be going into the setting and manually setting the integrations to Konsole.

I think the default terminal detection logic should be improved. Checking more famous terminal apps by default and skipping those that are not installed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ZSH is not launched while opening a new terminal with ...
Hit the "Close" button, then exit gnome-terminal and then reopen it. It should now start zsh instead of Bash.
Read more >
Initial gnome-terminal tab has the wrong shell
I'm using Ubuntu Desktop 20. My user shell is zsh. When I open Terminal I get a bash session. When I click on...
Read more >
The Unresponsive Terminal - Learning the UNIX ... - O'Reilly
If this doesn't work the first time, try it once more; doing it more than twice usually won't help. Type CTRL-Q. If output...
Read more >
Avoid gnome-terminal close after script execution?
Stack Overflow answer: the terminal closes when the command run inside it has finished, so you need to write a command that doesn't...
Read more >
Managing gnome-terminal From the Command Line - Baeldung
We use bash twice. For the first time, with option -c, just to run a sequence of commands in a new shell. Subsequently,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found