Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with 0.11.5 (+ 0.11.4, 0.10.4) on Tumbleweed: No GSettings schemas are installed on the system #1634

Closed
fusion809 opened this issue May 1, 2018 · 3 comments

Comments

@fusion809
Copy link

fusion809 commented May 1, 2018

Linux distribution and version

openSUSE Tumbleweed 20180427 snapshot.

Flatpak version

0.11.5, but error also occurred with 0.11.4 and 0.10.4

Description of the problem

Running:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo 

per instructions on Flatpak website returns:

(flatpak remote-add:7293): GLib-GIO-ERROR **: 21:35:08.461: No GSettings schemas are installed on the system
[1]    7293 trace trap (core dumped)  flatpak remote-add --if-not-exists flathub 

Steps to reproduce

Install openSUSE Tumbleweed, install Flatpak from official repos, or from my unofficial repo: https://build.opensuse.org/package/show/home:fusion809/flatpak, then run the above flatpak command.

It is quite frustrating and yes gsettings schemas ARE installed, I have even tried re-installed them with ZYpp using the command:

zypper in -f gsettings-desktop-schemas

but I still get this error. As I suspect it might be a simple matter of Flatpak expecting the schema files to be somewhere they're not here's what rpm -ql gsettings-desktop-schemas returns:

/usr/lib64/girepository-1.0/GDesktopEnums-3.0.typelib
/usr/share/GConf
/usr/share/GConf/gsettings
/usr/share/GConf/gsettings/gsettings-desktop-schemas.convert
/usr/share/GConf/gsettings/wm-schemas.convert
/usr/share/doc/packages/gsettings-desktop-schemas
/usr/share/doc/packages/gsettings-desktop-schemas/NEWS
/usr/share/doc/packages/gsettings-desktop-schemas/README
/usr/share/glib-2.0/schemas/org.gnome.desktop.a11y.applications.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.a11y.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.a11y.keyboard.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.a11y.magnifier.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.a11y.mouse.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.app-folders.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.background.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.calendar.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.datetime.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.default-applications.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.enums.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.input-sources.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.media-handling.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.notifications.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.peripherals.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.privacy.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.screensaver.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.search-providers.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.session.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.sound.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.thumbnail-cache.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.thumbnailers.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.wm.keybindings.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.desktop.wm.preferences.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.system.locale.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.system.location.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.system.proxy.gschema.xml
/usr/share/licenses/gsettings-desktop-schemas
/usr/share/licenses/gsettings-desktop-schemas/COPYING

Thanks for your time,
Brenton

@fusion809
Copy link
Author

Never mind I found out that the issue was a fault XDG_DATA_DIRS variable, just had to add /usr/share/glib-2.0/schemas to it.

@matthiasclasen
Copy link
Collaborator

it should be enough to have /usr/share in XDG_DATA_DIRS, the code should know to check in the glib-2.0/schemas subdirectory.

@mijorus
Copy link

mijorus commented Jun 16, 2023

it should be enough to have /usr/share in XDG_DATA_DIRS, the code should know to check in the glib-2.0/schemas subdirectory.

that fixed it for me (I was using WSL)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants