Bug 422247

Summary: KDE dialog folder selector does not work with Meld
Product: [Plasma] xdg-desktop-portal-kde Reporter: medin <med.medin.2014>
Component: generalAssignee: Jan Grulich <jgrulich>
Status: RESOLVED FIXED    
Severity: normal CC: jgrulich, kde, plasma-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In: 5.19.0
Attachments: KDE Folder selector does not work with Meld

Description medin 2020-05-30 00:28:07 UTC
Created attachment 128923 [details]
KDE Folder selector does not work with Meld

When I use Meld I cannot select any folder using the default KDE folder selector, but when I forced it to use GTK file dialog with GTK_USE_PORTAL="0" it's working. See my attached video for more info.
Comment 1 medin 2020-05-30 10:21:40 UTC
I reported the same bug to Meld developer but
https://gitlab.gnome.org/GNOME/meld/-/issues/473
Comment 2 David Edmundson 2020-05-30 16:17:20 UTC
Reproduced, relevant log from bustle on the FileChooser call

@s "x11:4e00007"
@s "Select Second Folder"
@a{sv} {"directory": <@b True>, "filters": <@a(sa(us)) []>, "handle_token": <@s "gtk677043879">, "modal": <@b False>, "multiple": <@b False>}


From the spec that does seem like it's our fault for not following "directory == true" added in v3
Comment 3 David Edmundson 2020-05-30 16:20:22 UTC
Edit. We do follow that flag and set something appropriately.

And it does work here. (though the UI is weird) you can enter the directory then click open and it works correctly.

Please confirm your plasma version
Comment 4 medin 2020-05-30 16:29:34 UTC
I have the following config :

Operating System: Manjaro Linux 
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2
Kernel Version: 5.6.12-1-MANJARO
OS Type: 64-bit
Processors: 2 × Pentium® Dual-Core CPU T4400 @ 2.20GHz
Memory: 5.7 GiB of RAM

gtk2: 2.24.32-2
gtk3: 3.24.20-1
Meld: 3.20.2
Comment 5 Jan Grulich 2020-05-31 10:42:43 UTC
Support for opening directories was added into xdg-desktop-portal-kde recently and will be in Plasma 5.19.