Bug ID 1131076
Summary Gnome applications fail to start after zypper update and gets fixed by forcing gsettings-desktop-schemas
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware x86-64
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component GNOME
Assignee bnc-team-gnome@forge.provo.novell.com
Reporter mail@aitorpazos.es
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101
Firefox/66.0
Build Identifier: 

This is an issue I've been seeing in my installation for some months now. It is
one I don't have an explanation for but I do have a consistent workaround to
fix it when it happens.

Last time it happened, I spent the time on gathering logs and info that may
help getting to the bottom of it.

So this is what happens:
- After some zypper updates, Firefox and any other apps that use Gnome
libraries fail to start (I use KDE as my desktop environment). The reported
error is:
```
(firefox:11159): GLib-GIO-ERROR **: 16:28:47.893: No GSettings schemas are
installed on the system
ExceptionHandler::GenerateDump cloned child 11168
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...

(crashreporter:11170): GLib-GIO-ERROR **: 16:28:47.984: No GSettings schemas
are installed on the system
```

- See the zypper log attached for that update
- From experience on other instances of this error, I knew that reinstalling
gsettings-desktop-schemas package will solve the issue and therefore, I took a
look at the package to see if there was any difference between the contents of
the package and the files in my filesystem. There were no differences and I
couldn't see any script on the package that will trigger any system change
other than replacing the files.
- So I proceeded with the re-installation of gsettings-desktop-schemas package
(`sudo zypper in --force  gsettings-desktop-schemas`)
- As expected, Firefox started working again
- Checking at the filesystem changes on the `gsettings-desktop-schemas`
reinstall using `snapper diff`, there were only rpm database related file
changes:
```
Binary files /.snapshots/757/snapshot/usr/lib/sysimage/rpm/Basenames and
/.snapshots/758/snapshot/usr/lib/sysimage/rpm/Basenames differ
Binary files /.snapshots/757/snapshot/usr/lib/sysimage/rpm/Dirnames and
/.snapshots/758/snapshot/usr/lib/sysimage/rpm/Dirnames differ
Binary files /.snapshots/757/snapshot/usr/lib/sysimage/rpm/Group and
/.snapshots/758/snapshot/usr/lib/sysimage/rpm/Group differ
Binary files /.snapshots/757/snapshot/usr/lib/sysimage/rpm/Installtid and
/.snapshots/758/snapshot/usr/lib/sysimage/rpm/Installtid differ
Binary files /.snapshots/757/snapshot/usr/lib/sysimage/rpm/Name and
/.snapshots/758/snapshot/usr/lib/sysimage/rpm/Name differ
Binary files /.snapshots/757/snapshot/usr/lib/sysimage/rpm/Packages and
/.snapshots/758/snapshot/usr/lib/sysimage/rpm/Packages differ
Binary files /.snapshots/757/snapshot/usr/lib/sysimage/rpm/Providename and
/.snapshots/758/snapshot/usr/lib/sysimage/rpm/Providename differ
Binary files /.snapshots/757/snapshot/usr/lib/sysimage/rpm/Recommendname and
/.snapshots/758/snapshot/usr/lib/sysimage/rpm/Recommendname differ
Binary files /.snapshots/757/snapshot/usr/lib/sysimage/rpm/Sha1header and
/.snapshots/758/snapshot/usr/lib/sysimage/rpm/Sha1header differ
Binary files /.snapshots/757/snapshot/usr/lib/sysimage/rpm/Sigmd5 and
/.snapshots/758/snapshot/usr/lib/sysimage/rpm/Sigmd5 differ
```

Restarting the system doesn't fix it.

Some googling suggests it may be related with the value of `XDG_DATA_DIRS`, but
some other reports for other distros seem to suggest the same workaround
(reinstalling gsettings-desktop-schemas):
https://stackoverflow.com/questions/28953925/glib-gio-error-no-gsettings-schemas-are-installed-on-the-system
https://stackoverflow.com/questions/37510261/ubuntu-meld-no-gsettings-schemas-are-installed-on-the-system
https://forums.freebsd.org/threads/mate-not-starting-with-message-no-gsettings-schemas-are-installed-on-the-system.56205/

My `XDG_DATA_DIRS` environment variable (no change between before and after the
error):
XDG_DATA_DIRS=/home/aitor/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share

Any advice would be greatly appreciated.




Reproducible: Sometimes

Steps to Reproduce:
1. Perform a packages upgrade (`zypper up` or `zypper dup`)
Actual Results:  
Sometimes, after the update, Firefox and other applications using Gnome
libraries fail to start:
```
(firefox:11159): GLib-GIO-ERROR **: 16:28:47.893: No GSettings schemas are
installed on the system
ExceptionHandler::GenerateDump cloned child 11168
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...

(crashreporter:11170): GLib-GIO-ERROR **: 16:28:47.984: No GSettings schemas
are installed on the system
```

Expected Results:  
Start Firefox or any other Gnome app as usual

Forcing the reinstall of `gsettings-desktop-schemas` package fixes the issue:
(`sudo zypper in --force  gsettings-desktop-schemas`)


You are receiving this mail because: