Bug 462243

Summary: "System Settings -> Workspace -> General Behaviour - Clicking files or folders" fails when ...
Product: [Applications] systemsettings Reporter: Paul <pip.kde>
Component: kcm_workspaceAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.24.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Paul 2022-11-25 14:45:23 UTC
"System Settings -> Workspace -> General Behaviour - Clicking files or folders" fails when reverting to "Opens them" (SingleClick mode) from "Selects them" (DoubleClick mode) -- But only for "legacy" users.


I have several openSUSE Leap systems, originally Leap 15.0 with:

Plasma 5.12.5 LTS
Applications 17.12.3
KDE Frameworks 5.45.

Which have been progressively updated to Leap 15.4 with:

Operating System: openSUSE Leap 15.4
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2

These were all initially set for "SingleClick" mode.

I recently had reason to temporarily set one of those machines to "DoubleClick" mode using "System Settings -> Workspace -> General Behaviour - Clicking files or folders"

Upon reverting to "SingleClick" mode, although "System Settings -> Workspace -> General Behaviour - Clicking files or folders" now indicated "Opens them" (SingleClick mode), the click behaviour was unchanged, ie, a double click was still required.

Testing this on a second machine exhibited the same behaviour.

Investigating further:

Initially "~/.config/kdeglobals" contained within the "[KDE] section "SingleClick=true"

Changing the setting to "DoubleClick" via "System Settings..." results in "SingleClick=false" - click behaviour is as expected.

Changing the setting back to "SingleClick" via "System Settings..." results in the "SingleClick=false" entry being removed completely (an implied "SingleClick=true" ?) - click behaviour was unchanged, ie, a double click was still required. Logout / Login and behaviour still unchanged.

The only way I am able to restore "SingleClick" mode is to manually edit "~/.config/kdeglobals" and re-instating the original entry of "SingleClick=true"


A newly created test user does not exhibit this behaviour "System Settings -> Workspace -> General Behaviour - Clicking files or folders" can be changed back and forth with the expected results.

So, what is amiss with these "leagacy" users, should there have been some sort of "setting migration" that didn't occur at some point in the (Leap/KDE) update path or is this a bug?
Comment 1 Nate Graham 2022-11-30 19:13:49 UTC
> The only way I am able to restore "SingleClick" mode is to manually edit "~/.config/kdeglobals" and re-instating the original entry of "SingleClick=true"

This suggests that the user configuration file is overriding a system configuration file that has "SingleClick=false" in it. Is there such an entry in /etc/xdg/kdeglobals?
Comment 2 Paul 2022-12-01 09:52:40 UTC
(In reply to Nate Graham from comment #1)
> This suggests that the user configuration file is overriding a system
> configuration file that has "SingleClick=false" in it. Is there such an
> entry in /etc/xdg/kdeglobals?

No:
paul@HP255G7:~> cat /etc/xdg/kdeglobals | grep -i 'singleclick'
paul@HP255G7:~>
Also opened the file with a text editor to double check... and checked on other machines exhibiting this behaviour, none have that entry.

If there had been such an entry in "/etc/xdg/kdeglobals" would that not mean the new test user I created would also exhibit the behaviour?