Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 878043 - sys-apps/flatpak-1.14.0-r1 Can't find module 'dconf' specified in GSETTINGS_BACKEND
Summary: sys-apps/flatpak-1.14.0-r1 Can't find module 'dconf' specified in GSETTINGS_B...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-23 07:44 UTC by Konstantin Tutsch
Modified: 2023-08-18 05:16 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Log of flatpak run --verbose re.sonny.Tangram (re.sonny.Tangram.log,2.36 KB, text/x-log)
2022-10-23 07:44 UTC, Konstantin Tutsch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Tutsch 2022-10-23 07:44:28 UTC
Created attachment 825065 [details]
Log of flatpak run --verbose re.sonny.Tangram

Hello,

I've experienced that multiple Flatpak apps won't start if one clicks on their .desktop shortcuts. They run when using

flatpak run org.gnome.example

but I get this error:

GLib-GIO-WARNING **: 09:21:29.880: Can't find module 'dconf' specified in GSETTINGS_BACKEND

I've attached an example log when running re.sonny.Tangram. But other apps output similar errors.

Regards,
Konstantin Tutsch
Comment 1 Zac Medico gentoo-dev 2022-10-23 16:50:03 UTC
Can you try installing the gnome-base/dconf package to see if that help?
Comment 2 Konstantin Tutsch 2022-10-23 17:40:35 UTC
I had already checked if it is installed. It is. I also reemerged it. Nothing changed.
Comment 3 Randall 2023-01-07 01:17:30 UTC
To clarify, it's reporting that the flakpak you're running is missing the dconf module. I don't know if that's to be expected (ref: https://blogs.gnome.org/mclasen/2019/07/12/settings-in-a-sandbox-world/); but the workaround suggested does get rid of the message.

I used Flatseal to add GSETTINGS_BACKEND=keyfile gobally.
Comment 4 knifed 2023-02-26 08:58:14 UTC
I am experiencing this exact problem, but I am not sure the bug report title is actually connected to the problem of not being able to launch Flatpak apps by using their icon (.desktop file).

This is an issue with dbus and/or Flatpak, and it specifically affects Flatpak apps with DbusActivatable=true in their .desktop files. As best I can tell, it seems like the session bus is not finding the .service files that Flatpak creates. The .service files are under ~/.local/share/flatpak/app, and their presence should be found via XDG_DATA_DIRS by dbus. But this does not happen.

From what I can tell, everything is configured correctly. Don't know too much about dbus unfortunately.

One "workaround" for this situation is to copy the Flatpak service files to ~/.local/share/dbus-1/service:

cp -L ~/.local/share/flatpak/exports/share/dbus-1/services/*.service ~/.local/share/dbus-1/services/

This should allow the Flatpak apps to launch via .desktop files. Not sure what other effects it could have though.

I'm thinking this is more of a problem with dbus than Flatpak, but I am not sure.
Comment 5 konsolebox 2023-08-18 05:15:35 UTC
gnome-base/dconf sets GSETTINGS_BACKEND=dconf globally through /etc/env.d/51dconf but it's not ideal for applications like Flatpak that run as a sandbox.  I also saw this message when running steam so I created /usr/local/bin/steam as a wrapper that sets GSETTINGS_BACKEND=keyfile.

Since Gentoo sets GSETTINGS_BACKEND=dconf explicitly, sys-apps/flatpak should also create a wrapper that sets GSETTINGS_BACKEND=keyfile, unless it already does so, or unless Flatpak already does it somewhere internally.