Bug 422247 - KDE dialog folder selector does not work with Meld
Summary: KDE dialog folder selector does not work with Meld
Status: RESOLVED FIXED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-30 00:28 UTC by medin
Modified: 2020-05-31 10:43 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.19.0


Attachments
KDE Folder selector does not work with Meld (700.04 KB, video/mp4)
2020-05-30 00:28 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
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.