snap run --shell gnome-calculator gives a series of errors

Bug #1803687 reported by Paweł Stołowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gtk-common-themes
New
Undecided
Unassigned
snapd
Invalid
Undecided
Zygmunt Krynicki

Bug Description

core from edge, snapd 2.36.1+git1017.fdb9926~ubuntu16.04.1

Doing "snap run --shell gnome-calculator" produces a bunch of errors, all of them seem to be related to known problems with themes, but the "/snap/" error look weird:

$ sudo snap run --shell gnome-calculator
[sudo] password for pawel:
main.go:224: cannot change mount namespace of snap "gnome-calculator" according to change mount (/snap/gtk-common-themes/808/share/icons/Solus /snap/gnome-calculator/260/data-dir/icons/Solus none bind,ro 0 0): c
annot write to "/snap/gtk-common-themes/808/share/icons/Solus" because it would affect the host in "/snap/"
main.go:224: cannot change mount namespace of snap "gnome-calculator" according to change mount (/snap/gtk-common-themes/808/share/icons/Suru /snap/gnome-calculator/260/data-dir/icons/Suru none bind,ro 0 0): can
not use "/snap/gtk-common-themes/808/share/icons/Suru" as bind-mount source: not a directory
main.go:224: cannot change mount namespace of snap "gnome-calculator" according to change mount (/snap/gtk-common-themes/808/share/sounds/Yaru /snap/gnome-calculator/260/data-dir/sounds/Yaru none bind,ro 0 0): c
annot write to "/snap/gtk-common-themes/808/share/sounds/Yaru" because it would affect the host in "/snap/"
main.go:224: cannot change mount namespace of snap "gnome-calculator" according to change mount (/snap/gtk-common-themes/808/share/sounds/communitheme /snap/gnome-calculator/260/data-dir/sounds/communitheme none
 bind,ro 0 0): cannot write to "/snap/gtk-common-themes/808/share/sounds/communitheme" because it would affect the host in "/snap/"
main.go:224: cannot change mount namespace of snap "gnome-calculator" according to change mount (/snap/gtk-common-themes/808/share/themes/EvoPop-Azure /snap/gnome-calculator/260/data-dir/themes/EvoPop-Azure none
 bind,ro 0 0): cannot write to "/snap/gtk-common-themes/808/share/themes/EvoPop-Azure" because it would affect the host in "/snap/"
main.go:224: cannot change mount namespace of snap "gnome-calculator" according to change mount (/snap/gtk-common-themes/808/share/themes/EvoPop /snap/gnome-calculator/260/data-dir/themes/EvoPop none bind,ro 0 0
): cannot write to "/snap/gtk-common-themes/808/share/themes/EvoPop" because it would affect the host in "/snap/"

Changed in snapd:
assignee: nobody → Zygmunt Krynicki (zyga)
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Reproduced, I suspect this is a fallout from fixing https://bugs.launchpad.net/snapd/+bug/1803535

Changed in snapd:
status: New → Confirmed
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This is actually a bug in gtk-common-themes snap, the $SNAP/share/sounds directory is missing but the content interface refers to two directories inside.

https://forum.snapcraft.io/t/gtk-common-themes-bind-mount-sources-are-symlinks-missing-sounds/8540

Changed in snapd:
status: Confirmed → Invalid
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Reported in the best upstream location I could find: https://gitlab.gnome.org/Community/Ubuntu/gtk-common-themes/issues/4

Revision history for this message
Ken VanDine (ken-vandine) wrote :

With gtk-common-themes revision 818 I only get one line output at startup:

main.go:192: cannot change mount namespace of snap "gnome-calculator" according to change mount (/snap/gtk-common-themes/818/share/icons/Suru /snap/gnome-calculator/260/data-dir/icons/Suru none bind,ro 0 0): cannot use "/snap/gtk-common-themes/818/share/icons/Suru" as bind-mount source: not a directory

That's the symlink issue which has a proposed fix that is being reviewed.

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.