2.54.3+21.10.1ubuntu0.1 broke Plasma Desktop when Fish is the default shell

Bug #1961791 reported by Andy Goossens
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
snapd
Fix Released
Undecided
Unassigned
fish (Ubuntu)
Fix Released
Undecided
Unassigned
plasma-desktop (Ubuntu)
Fix Released
Undecided
Unassigned
snapd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Yesterday I received snapd's 2.54.3+21.10.1ubuntu0.1 update. And when I rebooted, my Plasma Desktop was broken. Applications that were still open worked (Firefox, Konsole), but task panel was absent, icons missing, ... Basically the desktop session became unusable.

Note that I am using Fish shell as my default shell. When I use Bash however, the Plasma Desktop is working fine.

To reproduce:
* create a new user account "test"
* start Plasma session with user "test", everything looks fine
* execute: chsh -s /usr/bin/fish
* log out
* log in again, things are broken

Verified workarounds:
* Use Bash as default shell. Configure your terminal emulator to use Fish.
* Remove snapd package

Revision history for this message
Andy Goossens (andygoossens) wrote :

Interesting information from a Fish Shell developer:
https://github.com/fish-shell/fish-shell/issues/8741#issuecomment-1047801157

description: updated
Revision history for this message
Andy Goossens (andygoossens) wrote :

Other workarounds:
* Using LightDM instead of SDDM: https://askubuntu.com/q/1394269/1573362
* Changing your local Fish configuration: https://github.com/fish-shell/fish-shell/issues/8741#issuecomment-1047820309

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in fish (Ubuntu):
status: New → Confirmed
Changed in plasma-desktop (Ubuntu):
status: New → Confirmed
Changed in snapd (Ubuntu):
status: New → Confirmed
Revision history for this message
Matteo Italia (matteo-mitalia) wrote :

Other trivial workaround: keep snapd to 2.44.3 (at least on 20.04), possibly forever. There's a serious QA problem here, in a week I got three updates, each of which progressively broke stuff worse than the previous one:

- first warnings every time I opened a shell
- then broken XDG env, which made applications crash in the strangest ways but only when started from the shell
- then even more broken XDG env that literally _broke the user session after login_.

I don't think a bug can get worse than this, as it makes the machine (progressively more) impossible to use _for tasks unrelated to those for which you need this package_, and, with the exception of the first problem, without any hint about the fact that it's snapd fault — in the last case I only suspected that (and downgraded) because I was bit by the first issue, I had to debug the second one, and it dawned on me that they could have fucked up the fix for a third time after managing to open a shell inside the broken session through strange expedients and checking the environment.

I get that the Linux desktop environment initialization is a shitshow, but after breaking this for the first time the response should have been immediate rollback and _thorough_ testing instead rushing fixes, at least on the LTS channel.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package snapd - 2.54.3+21.10.1ubuntu0.2

---------------
snapd (2.54.3+21.10.1ubuntu0.2) impish-security; urgency=medium

  * SECURITY REGRESSION: Fix fish shell compatibility
    - data/env/snapd.fish.in: more workarounds for even older fish shells,
      provide reasonable defaults.
    - LP: #1961791

 -- Paulo Flabiano Smorigo <email address hidden> Wed, 23 Feb 2022 14:48:54 +0000

Changed in snapd (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package snapd - 2.54.3+20.04.1ubuntu0.2

---------------
snapd (2.54.3+20.04.1ubuntu0.2) focal-security; urgency=medium

  * SECURITY REGRESSION: Fix fish shell compatibility
    - data/env/snapd.fish.in: more workarounds for even older fish shells,
      provide reasonable defaults.
    - LP: #1961791

 -- Paulo Flabiano Smorigo <email address hidden> Wed, 23 Feb 2022 18:25:31 +0000

Changed in snapd (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package snapd - 2.54.3+18.04.2ubuntu0.2

---------------
snapd (2.54.3+18.04.2ubuntu0.2) bionic-security; urgency=medium

  * SECURITY REGRESSION: Fix fish shell compatibility
    - data/env/snapd.fish.in: more workarounds for even older fish shells,
      provide reasonable defaults.
    - LP: #1961791

 -- Paulo Flabiano Smorigo <email address hidden> Wed, 23 Feb 2022 18:29:05 +0000

Changed in snapd (Ubuntu):
status: Confirmed → Fix Released
Changed in snapd:
status: New → Fix Released
Changed in fish (Ubuntu):
status: Confirmed → Fix Released
Changed in plasma-desktop (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.