Bug 423890 - Konsole ignores user shell setting to fish in Wayland and always uses bash
Summary: Konsole ignores user shell setting to fish in Wayland and always uses bash
Status: RESOLVED MOVED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 20.08.3
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL: https://github.com/sddm/sddm/issues/1351
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2020-07-05 01:34 UTC by Neal Gompa
Modified: 2021-01-10 16:12 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
env output on Wayland (3.43 KB, text/plain)
2020-09-13 19:11 UTC, Neal Gompa
Details
env output on xorg (1.39 KB, text/plain)
2020-09-13 19:12 UTC, Neal Gompa
Details
sddm Xsession file (2.95 KB, application/x-shellscript)
2020-09-13 19:12 UTC, Neal Gompa
Details
sddm wayland-session file (1.71 KB, application/x-shellscript)
2020-09-13 19:13 UTC, Neal Gompa
Details
pstree output on Wayland (4.13 KB, text/plain)
2020-10-22 00:12 UTC, Neal Gompa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neal Gompa 2020-07-05 01:34:34 UTC
SUMMARY
When setting my user's login shell to fish and logging out and logging back in, Konsole continues to use bash regardless of my shell setting. This behavior is only exhibited on Wayland. With X11, Konsole does the right thing.

STEPS TO REPRODUCE
1. Login into Wayland session
2. Open Konsole
3. Run `chsh -s /bin/fish` after installing fish
4. Log out and log back in
5. Open Konsole

OBSERVED RESULT
Konsole opens with Bash prompt

EXPECTED RESULT
Konsole opens with Fish prompt

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 32 KDE Plasma
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
Comment 1 Kurt Hindenburg 2020-07-05 11:57:45 UTC
What does your profile Command: have in it?  That's what Konsole uses.
Comment 2 Neal Gompa 2020-07-05 12:01:09 UTC
In Wayland: /bin/bash

In X11: /bin/fish
Comment 3 tcanabrava 2020-09-06 21:07:25 UTC
Wait, the profile is unique, you are saying that it has different contents depending on wayland and x11?
Comment 4 Neal Gompa 2020-09-06 21:42:40 UTC
Yes, that's what I'm saying.
Comment 5 tcanabrava 2020-09-07 09:14:57 UTC
Ok, I'll try to pinpoint the error.
Comment 6 David Edmundson 2020-09-08 18:21:13 UTC
Please include "env" from both.

See also

/usr/share/sddm/scripts/Xsession
Comment 7 Neal Gompa 2020-09-13 19:11:52 UTC
Created attachment 131606 [details]
env output on Wayland
Comment 8 Neal Gompa 2020-09-13 19:12:06 UTC
Created attachment 131607 [details]
env output on xorg
Comment 9 Neal Gompa 2020-09-13 19:12:46 UTC
Created attachment 131608 [details]
sddm Xsession file
Comment 10 Neal Gompa 2020-09-13 19:13:05 UTC
Created attachment 131609 [details]
sddm wayland-session file
Comment 11 Neal Gompa 2020-09-13 19:13:28 UTC
I've attached all the requested files, plus the wayland-session file as well.
Comment 12 Neal Gompa 2020-10-22 00:12:58 UTC
Created attachment 132622 [details]
pstree output on Wayland

Per the suggestion of someone, I attached the output of pstree run on my machine shortly after logging in. It doesn't seem particularly enlightening to me, but maybe it might be to someone else...?
Comment 13 Neal Gompa 2020-10-22 00:23:29 UTC
I have just upgraded to Fedora 33 everywhere, and this is still reproducible...

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 33 KDE Plasma
(available in About System)
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.1
Comment 14 Justin Zobel 2020-11-03 00:41:28 UTC
(In reply to Neal Gompa from comment #13)
> I have just upgraded to Fedora 33 everywhere, and this is still
> reproducible...
> 
> SOFTWARE/OS VERSIONS
> Linux/KDE Plasma: Fedora 33 KDE Plasma
> (available in About System)
> KDE Plasma Version: 5.19.5
> KDE Frameworks Version: 5.73.0
> Qt Version: 5.15.1

Can you please confirm if your /etc/passwd contains the changed fish prompt before and after restart?
Comment 15 Neal Gompa 2020-11-03 00:43:08 UTC
(In reply to Justin Zobel from comment #14)
> (In reply to Neal Gompa from comment #13)
> > I have just upgraded to Fedora 33 everywhere, and this is still
> > reproducible...
> > 
> > SOFTWARE/OS VERSIONS
> > Linux/KDE Plasma: Fedora 33 KDE Plasma
> > (available in About System)
> > KDE Plasma Version: 5.19.5
> > KDE Frameworks Version: 5.73.0
> > Qt Version: 5.15.1
> 
> Can you please confirm if your /etc/passwd contains the changed fish prompt
> before and after restart?

It does. /etc/passwd says my shell is '/bin/fish'.
Comment 16 Neal Gompa 2020-11-15 18:28:23 UTC
I upgraded to Plasma 5.20 on Fedora 33 now, and the issue is still present.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 33 KDE Plasma
(available in About System)
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Comment 17 Neal Gompa 2020-12-31 13:59:37 UTC
So I've narrowed down the issue to being a problem with SDDM. I was able to pinpoint the issue by sacrificing a computer to having both GNOME and Plasma installed, and using GDM as the display manager. With GDM, Konsole gets the correct shell set on Wayland.

I've transferred the issue to SDDM: https://github.com/sddm/sddm/issues/1351