This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Doubble click on desktop icons and in file open dialogs

Tags: None
(comma "," separated)
frantek
Registered Member
Posts
19
Karma
0
OS
Hi,

I've managed to activate "double click" for nearly everything with two exceptions:

* Icons on the desktop
* File open dialogs

How to switch to double click there too?

TIA
wolfi323
Registered Member
Posts
1129
Karma
11
OS
frantek wrote:* Icons on the desktop

Icon plasmoids do not respect the single/double click option, and that is on purpose.
https://bugs.kde.org/show_bug.cgi?id=348960

"Workaround":
Use a folderview plasmoid or switch your desktop layout to "Folderview" (right-click on the desktop or left-click on the toolbox icon in the upper-left corner and choose "Configure Desktop"), and add your icons there.


* File open dialogs

KDE's file open dialog should respect the setting.

So, which applications do show this problem?

If those are KDE4 applications, you may be affected by this bug:
https://bugs.kde.org/show_bug.cgi?id=367074
Manually editing the KDE4 config file should help then (or updating to Plasma 5.7.4 at least).
frantek
Registered Member
Posts
19
Karma
0
OS
wolfi323 wrote:"Workaround":
Use a folderview plasmoid or switch your desktop layout to "Folderview" (right-click on the desktop or left-click on the toolbox icon in the upper-left corner and choose "Configure Desktop"), and add your icons there.

Thanks, both approaches work for me.
KDE's file open dialog should respect the setting.

So, which applications do show this problem?

If those are KDE4 applications, you may be affected by this bug:
https://bugs.kde.org/show_bug.cgi?id=367074
Manually editing the KDE4 config file should help then (or updating to Plasma 5.7.4 at least).

I've to investigate this, thanks for the tips.
frantek
Registered Member
Posts
19
Karma
0
OS
wolfi323 wrote:So, which applications do show this problem?


Finally got them: Google Chrome and Chromium browser.
wolfi323
Registered Member
Posts
1129
Karma
11
OS
frantek wrote:
wolfi323 wrote:So, which applications do show this problem?


Finally got them: Google Chrome and Chromium browser.

Well, these are not KDE applications, they use GTK3 AFAIK.
So they would also use GTK3's file dialog.

I have no idea how or where that would be configurable, sorry.

Not sure if it helps, but a quick google found this:
https://bbs.archlinux.org/viewtopic.php?id=212278
https://bugzilla.gnome.org/show_bug.cgi?id=766089
https://bugzilla.gnome.org/show_bug.cgi?id=758065
Haven't thoroughly read through them, a quick look would suggest it follows nautilus's settings...
And I can actually confirm that with gedit, another GTK3 application. (I don't have Chrome/Chromium installed)

PS: it seems you can change this in dconf-editor too:
org.gnome.nautilus.preferences.click-policy
So you probably don't actually have to install nautilus for changing that...
frantek
Registered Member
Posts
19
Karma
0
OS
wolfi323 wrote:
frantek wrote:
wolfi323 wrote:So, which applications do show this problem?


Finally got them: Google Chrome and Chromium browser.

Well, these are not KDE applications, they use GTK3 AFAIK.
So they would also use GTK3's file dialog.

Thanks, sounds reasonable. AFAIK Firefox is a GTK application too and the file dialogs work as expected ...
wolfi323
Registered Member
Posts
1129
Karma
11
OS
frantek wrote:Thanks, sounds reasonable. AFAIK Firefox is a GTK application too and the file dialogs work as expected ...

Yes, Firefox is a GTK application too. And it can be built to use GTK2 or GTK3, which may make a difference here.

Though in openSUSE it is patched to use KDE's file dialog if you run it inside a KDE session...

With "works as expected" you mean that Firefox's file dialog uses double click?
IIANM this is the default for GTK/GNOME anyway, so that's actually to be expected I suppose (forgot about that earlier, sorry).

I'm not really sure about Chrome/Chromium, I don't use them nor have them installed.

But (according to some Google results) it seems Chromium at least actually uses the kdialog utility to open the file dialog when inside a KDE session.
As the KF5 based kdialog only got released recently (with KDE Applications 16.12), it's likely that you still have the KDE4 version installed, so you may hit that bug I mentioned (that syncing back the setting to KDE4 didn't work correctly).

So try to set "SingleClick=false" in ~/.kde/share/config/kdeglobals (in the "[KDE]" section) with a text editor, or run this command (as user, not root):
Code: Select all
kwriteconfig --file kdeglobals --group KDE --key SingleClick false

This should set the KDE4 libraries/applications to use double click.
frantek
Registered Member
Posts
19
Karma
0
OS
wolfi323 wrote:But (according to some Google results) it seems Chromium at least actually uses the kdialog utility to open the file dialog when inside a KDE session.
As the KF5 based kdialog only got released recently (with KDE Applications 16.12), it's likely that you still have the KDE4 version installed, so you may hit that bug I mentioned (that syncing back the setting to KDE4 didn't work correctly).

So try to set "SingleClick=false" in ~/.kde/share/config/kdeglobals (in the "[KDE]" section) with a text editor, or run this command (as user, not root):
Code: Select all
kwriteconfig --file kdeglobals --group KDE --key SingleClick false

This should set the KDE4 libraries/applications to use double click.


Thanks, that fixed it.

I've a few more questions to get ab over all better understanding of KDE and versions. KDE reports that I'm using Plasma 5.8.5. But when I have a look with "dpkg" (Im on Ubuntu LTS) I get things like:

Code: Select all
ii  libdebconf-kde1:amd64                                       1.0.2-0ubuntu1                             amd64        Debconf KDE GUI library
ii  libkde3support4                                             4:4.14.22-0ubuntu2~ubuntu16.04~ppa61       amd64        KDE 3 Support Library for the KDE 4 Platform
ii  libkdeclarative5                                            4:4.14.22-0ubuntu2~ubuntu16.04~ppa61       amd64        declarative library for plasma
ii  libkdecorations2-5v5                                        4:5.8.5-0ubuntu1~ubuntu16.04~ppa1          amd64        library to create window decorations
ii  libkdecorations2private5v5                                  4:5.8.5-0ubuntu1~ubuntu16.04~ppa1          amd64        library to create window decorations - private library
ii  libkdecore5                                                 4:4.14.22-0ubuntu2~ubuntu16.04~ppa61       amd64        KDE Platform Core Library
ii  libkdesu5                                                   4:4.14.22-0ubuntu2~ubuntu16.04~ppa61       amd64        Console-mode Authentication Library for the KDE Platform
ii  libkdeui5                                                   4:4.14.22-0ubuntu2~ubuntu16.04~ppa61       amd64        KDE Platform User Interface Library
ii  libkdewebkit5                                               4:4.14.22-0ubuntu2~ubuntu16.04~ppa61       amd64        KDE WebKit Library


Were I read 4.x. So what is the proper way to determine what version of what is in use?

TIA


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]