snap applications icons missing in launcher wayland with zsh

Bug #1765979 reported by Swoorup Joshi
38
This bug affects 9 people
Affects Status Importance Assigned to Milestone
snapd
Triaged
Medium
Unassigned

Bug Description

This issue was reported before. https://bugs.launchpad.net/snappy/+bug/1681547 and was marked solved, but the issue still exist. I just upgraded to dev build 18.04 and using wayland. `snap` applications are not listed under applications and cannot issue snap app commands on the terminal. I am using zsh. However this works fine under X11.

So I have posted the findings below:

```bash
➜ ~ snap --version
snap 2.32.5+18.04
snapd 2.32.5+18.04
series 16
ubuntu 18.04
kernel 4.15.0-15-generic
➜ ~ uname -a
Linux swoorup-W35xSS-370SS 4.15.0-15-generic #16-Ubuntu SMP Wed Apr 4 13:58:14 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
➜ ~ lsb_release -r
Release: 18.04
➜ ~ env | grep DATA
XDG_DATA_DIRS=/home/swoorup/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/
➜ ~ firefox
zsh: command not found: firefox
➜ ~ snap list
Name Version Rev Tracking Developer Notes
atom 1.26.0 148 stable snapcrafters classic
core 16-2.32.3 4407 stable canonical core
discord 0.0.4 52 stable snapcrafters -
firefox 59.0.2-1 71 stable mozilla -
intellij-idea-community 2018.1.1 43 stable jetbrains classic
mailspring 1.2.1 209 stable foundry376 -
pycharm-community 2018.1.1 58 stable jetbrains classic
spotify 1.0.77.338.g758ebd78-41 13 stable spotify -
telegram-desktop 1.2.17 142 stable 3v1n0 -
tusk 0.10.1 15 stable klauscfhq -
vlc 3.0.1-4-g14a4897 190 stable videolan -
vscode 1.20.1-1518535978 27 stable flexiondotorg classic
webstorm 2018.1.1 22 stable jetbrains classic
```

Let me know if you need additional information.

Tags: wayland
Revision history for this message
Neal Gompa (ngompa13) wrote :

This seems similar to the issue recently reported in Fedora...

Revision history for this message
Oliver Grawert (ogra) wrote :

for zsh see bug 1640514

Revision history for this message
Swoorup Joshi (swoorup) wrote :

Everything works under X11, while still using zsh, how is that specific to zsh?

Revision history for this message
Antti Kaihola (akaihola) wrote :

This is also the case in Ubuntu 18.10. I installed PyCharm Professional from a snap package, and I can't find it in the GNOME launch menu (by hitting the Super/Windows key). The only way to launch it is by running the `pycharm-professional` command in the terminal. Once it is running, it's not possible to pin it or drag it into a different position in the dock panel.

Revision history for this message
Bernhard Cygan (bcygan-xl) wrote :

Happens to me when using fish.

Revision history for this message
sirianni (eric-sirianni) wrote :

+1

If I switch from GNOME (Xorg) to GNOME (Wayland) session, all Gnome launchers from snap-installed apps are missing (IntelliJ being a notable one).

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This looks like an interaction between:

- differences in how GNOME x11 and GNOME wayland get their environment
- differences in how snapd injects environment to user sessions using bash/sh and zsh

I'm marking this as triaged / medium

affects: snappy → snapd
Changed in snapd:
importance: Undecided → Medium
status: New → Triaged
summary: - snap applications icons missing in launcher wayland
+ snap applications icons missing in launcher wayland with zsh
Revision history for this message
Lukas von Blarer (luksak) wrote :

I have the same issue. Launching snap apps works after sourcing /snap/bin though. Application icons are still missing...

Revision history for this message
Lukas von Blarer (luksak) wrote :

Switching the default shell to bash makes the icons appear again.

Revision history for this message
Lukas von Blarer (luksak) wrote :

Does anyone have a temporary workaround?

Revision history for this message
Bruno (brvollino) wrote :

This has happened to me after I installed the 'flatpak' package. Uninstalling it solved the problem.

It creates a file /etc/profile.d/flatpak.sh which I believe was overwriting environment variables.

Revision history for this message
Pierre Equoy (pieq) wrote :

$ snap --version
snap 2.44.3+20.04
snapd 2.44.3+20.04
series 16
ubuntu 20.04
kernel 5.4.0-33-generic

Facing the same problem. I was using zsh as my default shell and a wayland session and could not find pycharm community from the GNOME Activities window (when pressing Super) even though it's installed and can be launched from the command line with `pycharm-community`.

Switching my default shell to bash (using `chsh`), then restarting the computer solved the problem.

Revision history for this message
MasterProg (masterprog) wrote :

Thanks Bruno, uninstalling Flatpak makes Snap icons appear in Wayland sessions.

That being said, is not the only issue I'm having with Wayland, so I guess I'll go back to Xorg for at least 2 more years.

$ snap --version
snap 2.45
snapd 2.45
series 16
ubuntu 20.04
kernel 5.4.0-37-generic

Revision history for this message
Manoel (manoelnt0) wrote :

> I'll go back to Xorg for at least 2 more years.

I did the same. For some reason, I upgrade two machines from 20.04 to 22.04 and decided to use wayland without coming back. In the first machine was working fine, without that bug of wayland snapd apps.

However, in another one, it happens and no matter what shell I config for the user (bash or zsh).

But I have a second user installed in this system and this issue doesn't occurs.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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