[Users] Attachments - can the window manger be changed ?

Manfred Schmitt claws at slashproc.org
Wed Feb 5 21:53:33 UTC 2025


Paul wrote:

> On Tue, 4 Feb 2025 22:16:05 +0100
> Manfred Schmitt <claws at slashproc.org> wrote: 
> 
> > Does Claws-Mail implement the relatively new (?) xdg-desktop-portal
> > front-end service?
> 
> Yes, it does. Using the following command to start claws-mail, for
> me on my KDE DE, does indeed use dolphin as the file chooser:
> 
> GTK_USE_PORTAL=1 claws-mail
> 
This does not work for me in Debian Bookworm with XFCE 4.18, nothing
happens if I try to add a file in the compose window, I'm only getting:

$ GTK_USE_PORTAL=1 claws-mail

(claws-mail:389314): GLib-GObject-WARNING **: 22:24:51.065: invalid cast from 'GtkFileChooserNative' to 'GtkWindow'
(claws-mail:389314): Gtk-CRITICAL **: 22:24:51.065: gtk_window_set_transient_for: assertion 'GTK_IS_WINDOW (window)' failed
(claws-mail:389314): GLib-GObject-WARNING **: 22:24:51.065: invalid cast from 'GtkFileChooserNative' to 'GtkWindow'
(claws-mail:389314): Gtk-CRITICAL **: 22:24:51.065: gtk_window_set_modal: assertion 'GTK_IS_WINDOW (window)' failed
(claws-mail:389314): Gtk-WARNING **: 22:24:51.073: Can't open portal file chooser: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Keine derartige Schnittstelle ?org.freedesktop.portal.FileChooser? des Objekts im Pfad /org/freedesktop/portal/desktop

Translated:
Can't open portal file chooser: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface ?org.freedesktop.portal.FileChooser? of the object in the path /org/freedesktop/portal/desktop
 
Also installing xdg-desktop-portal-gtk and the suggested package
xdg-desktop-portal-gnome or xdg-desktop-portal-kde does not change
anything. Only xdg-desktop-portal was installed beforehand, maybe
because of some recursive reverse dependency, dunno.

Anyway, everything works fine here without GTK_USE_PORTAL=1 and I don't
bother to debug something which was afair mostly invented because of
some flatpak strangeness ;)

Bye,
Manne


More information about the Users mailing list