Snap 'ed applicaitons have garbage on top of the window Close [x] button

Bug #1861558 reported by Norbert on 2020-02-01
52
This bug affects 11 people
Affects Status Importance Assigned to Milestone
adwaita-icon-theme (Ubuntu)
Undecided
Unassigned
gnome-themes-extra (Ubuntu)
Undecided
Unassigned
humanity-icon-theme (Ubuntu)
Undecided
Unassigned
snapd (Ubuntu)
Undecided
Unassigned
ubuntu-mono (Ubuntu)
Undecided
Unassigned

Bug Description

Steps to reproduce:
1. Have Ubuntu 19.10 installed
2. Install GNOME application as a Snap - for example with

    sudo snap install gedit gnome-calculator

3. Open GNOME Tweaks -> Appearance tab, then switch Icon set to the one of the following:

* Adwaita
* DMZ-Black
* DMZ-White
* hicolor
* HighContrast
* Humanity
* Humanity-Dark
* LoginIcons

For example - Adwaita theme with Adwaita icon set.

4. Open GNOME Calculator as a Snap application:

   /snap/bin/gnome-calculator

Expected result:

* GNOME Calculator looks as any other GTK application

Actual result:

* GNOME Calculator has garbage on top of the window Close [x] button

---

Notes:
1. Problem was first seen on AskUbuntu - https://askubuntu.com/q/1206868
2. one can use the script below to check all possible Theme<->Icon combinations:

```
#!/bin/bash

DISPLAY=:0

for t in $(ls -1 /usr/share/themes/)
do
 for i in $(ls -1 /usr/share/icons/)
 do

  echo -e "\nTheme: $t, Icons: $i\n"

  gsettings set org.gnome.desktop.interface gtk-theme "$t"
  gsettings set org.gnome.desktop.interface icon-theme "$i"

  /snap/bin/gnome-calculator

  #read -r -s -p "Press <Enter> for next theme"
 done
done

```

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: snapd 2.41+19.10.1
ProcVersionSignature: Ubuntu 5.3.0-29.31-generic 5.3.13
Uname: Linux 5.3.0-29-generic x86_64
ApportVersion: 2.20.11-0ubuntu8.2
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sat Feb 1 17:55:09 2020
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)

Norbert (nrbrtx) wrote :

I've seen this happen occasionally with snaps on Arch too.

Nonetheless it isn't clear whether it's a snapd problem or the actual libraries. Switching to confirmed in snapd, but needs investigation from desktop team too.

Changed in snapd (Ubuntu):
status: New → Confirmed
Launchpad Janitor (janitor) wrote :

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

Changed in adwaita-icon-theme (Ubuntu):
status: New → Confirmed
Changed in gnome-themes-extra (Ubuntu):
status: New → Confirmed
Changed in humanity-icon-theme (Ubuntu):
status: New → Confirmed
Changed in ubuntu-mono (Ubuntu):
status: New → Confirmed
Michael Weimann (m982) wrote :

Present on current 20.04 dev release with vanilla GNOME.

While this bug doesn't affect any functionality is shows me every day a broken UI. That reduces the fun using Ubuntu / snaps.

Francois Thirioux (fthx) wrote :

Still happens, Focal.

Francois Thirioux (fthx) wrote :

Seems to be Wayland related, from other sources.
(I did not test it in X, though.)

Martin Hamel (martin-komunide) wrote :

@Francois Thirioux, I have the problem under X11.

Sebastien Bacher (seb128) wrote :

@Martin, could you add a screenshot from the issue under xorg as well as a 'journalctl -b 0' log from the session?

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

Duplicates of this bug

Other bug subscribers