Regression: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Key file does not have key “DesktopFile” in group “Snap Info”

My app Trackself uses a dialog to select a dir into which to export a CSV file.

This feature worked for years until recently.

When opening the dialog I get the following errors:

(trackself_com.trackself.trackself:124843): Gdk-WARNING **: 19:35:09.906: Server is missing xdg_foreign support

(trackself_com.trackself.trackself:124843): Gtk-WARNING **: 19:35:09.906: Failed to export handle, could not set transient for

(trackself_com.trackself.trackself:124843): Gtk-WARNING **: 19:35:09.916: Can't open portal file chooser: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Key file does not have key “DesktopFile” in group “Snap Info”

Only real changes were changing the GPU and updating the software in the last couple of days.

I cannot find any reference of this error, so I am completely lost about how to go about fixing this. Any help would be appreciated.

p.s.: This is 100% snapcraft related, since running binary directly works fine.

Okay, I figured it out.

Adding desktop: entry to my apps: entry fixed the issue where dialog would not open up.

But the other two warnings persist. Any ideas would be welcome.

1 Like