xeco23 / WasIstLos

An unofficial WhatsApp desktop application for Linux.
GNU General Public License v3.0
1.01k stars 105 forks source link

Generic GTK file picker is used #412

Closed rien333 closed 6 days ago

rien333 commented 2 weeks ago

Description When picking files to send as attachments, I'm currently presented with the generic GTK file picker dialogue.

However, with the recent release of Gnome 47, Nautilus can now also be used as the file picker. Since Gnome does this through a freedesktop portal, I presume other platforms could, or already have, implemented similar things.

I kind of expected this to just work™ as I assumed that webkit2gtk took care of this, but maybe the whatsapp-for-linux project has to do some work too?

In any case, the nautilus as file picker works fine in Epiphany/Gnome Web, which is also based on webkit2gtk.

To Reproduce

  1. Install webkit2gtk > 2.46.0
  2. Attempt to send a document or picture in whatsapp
  3. Be presented with the old, generic GTK file picker dialogue

Expected behavior Seeing Nautilus whenever the file picker is called, just as in Epiphany.

Environment

rien333 commented 6 days ago

Fixed by launching the application with GTK_USE_PORTAL=1.

@eneshecan: this should probably be the default for everyone, not just snap users.