glib not aware of snap confinement
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glib2.0 (Ubuntu) |
Fix Released
|
High
|
Robert Ancell | ||
Jammy |
Fix Released
|
High
|
Robert Ancell | ||
Kinetic |
Won't Fix
|
High
|
Robert Ancell | ||
Lunar |
Fix Released
|
High
|
Robert Ancell |
Bug Description
[ Impact]
glib is not aware of snap confinement and this causes the internal logic to decide when to use portals to not work as designed. One important case is the gsettings backend, which should use a keyfile when confined rather than using dconf. When using a fully confined desktop this is required, as dconf is not suitable for sharing between snaps.
This has been fixed in glib main: https:/
[ Test Plan ]
(requires a core snap running the updated glib).
1. Install gnome-calculator snap:
$ snap install gnome-calculator
2. Disconnect gsettings interface:
$ snap disconnect gnome-calculato
3. Run gnome-calculator
4. Change mode from basic to advanced
5. Close and re-open gnome-calculator
Expected result:
Mode change remembered on second run. gnome-calculator settings written to ~/snap/
Observed result:
Mode change not remembered on second run, errors shown in console about accessing dconf:
(gnome-
[ Where problems could occur ]
- New bug introduced in glib causing a crash.
- Security issue introduced in glib due to accessing snapctl.
- Unexpected behaviour change when running snaps with updated glib.
description: | updated |
Changed in glib2.0 (Ubuntu Kinetic): | |
status: | New → Won't Fix |
Targeting 22.04 so this can become part of the core22 snap fixing the issue for most modern snaps.