Bug 467047 - Un-portalized GTK file picker ignores single/double click settings
Summary: Un-portalized GTK file picker ignores single/double click settings
Status: RESOLVED UPSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-08 08:42 UTC by David
Modified: 2023-03-13 17:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2023-03-08 08:42:44 UTC
SUMMARY
I have my system configured to open files and folders with a single click. However, in the latest versions of KDE software, this setting doesn't apply anymore to the GTK file picker.

STEPS TO REPRODUCE
1. Go to System Settings -> Workspace Behavior -> General Behavior -> Clicking files or folders -> select "Opens them".
2. Launch an app with a GTK file picker - examples: gedit, sublime, evolution.
3. Try to save a file or add an email attachment.
4. In the file picker dialog, click some folder.

OBSERVED RESULT
Selects the folder.

EXPECTED RESULT
Should go into the folder like it would in the QT file picker and like it used to do in the GTK one in previous versions.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-6-amd64 (64-bit)
Graphics Platform: X11
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 62.5 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: SLIMBOOK
Product Name: Executive

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-03-13 17:10:34 UTC
KDE doesn't control the GTK file dialog, which at some point removed the feature to allow you to single-click; now it only accepts double-clicks.

This annoyance is why KDE users generally prefer the KDE file dialogs over the GTK file dialogs. :)
Comment 2 David 2023-03-13 17:12:37 UTC
(In reply to Nate Graham from comment #1)
> KDE doesn't control the GTK file dialog, which at some point removed the
> feature to allow you to single-click; now it only accepts double-clicks.
> 
> This annoyance is why KDE users generally prefer the KDE file dialogs over
> the GTK file dialogs. :)

But it somehow managed to have KDE settings applied to it on previous plasma versions.
Comment 3 Nate Graham 2023-03-13 17:16:36 UTC
I'm assuming you just upgraded Debian. That being the case, Plasma wasn't the only thing that got upgraded; GTK did too. The feature was removed in a GTK release at some point in the last few years.
Comment 4 David 2023-03-13 17:24:29 UTC
(In reply to Nate Graham from comment #3)
> I'm assuming you just upgraded Debian. That being the case, Plasma wasn't
> the only thing that got upgraded; GTK did too. The feature was removed in a
> GTK release at some point in the last few years.

Ok, I did some experiments and turns out what changed this for me was not having an environment variable GTK_USE_PORTAL=1. Any reason why that variable isn't set by default in plasma?
Comment 5 Nate Graham 2023-03-13 17:39:00 UTC
When that envar set, you'll see the KDE dialogs which do support the single/double-click setting.

It's a debug tool that the GTK folks don't encourage people to set by default in a production environment. At some point in the past, I recall them deliberately breaking support for it in some app do discourage people from using it that way. So we can't rely on it. You're welcome to set it yourself if you'd like. Some distros even set it as well. But it's not something that's appropriate for us to do in Plasma.