1-click open directories in Dolphin without Plasma

The setting to toggle single/double click behavior isn’t built into Dolphin itself. Rather, it’s configured globally for the entire plasma desktop. If you’re actually using KDE Plasma as your DE, you can simply change it in the graphical system settings app. I’m not using plasma, so I manually updated ~/.config/kdeglobals, with the following text:

[KDE]
SingleClick=true

However, without plasma, the changes won’t automatically apply to Dolphin. I needed to take another couple extra steps:

  1. Install kdePackages.plasma-integration
  2. Set the environment variable QT_QPA_PLATFORMTHEME='kde'

Putting it all together, here’s the home manager setup I came up with:

home.packages = with pkgs.kdePackages; [
  dolphin
  breeze # Nice to have for theming
  plasma-integration
];

home.file."${config.xdg.configHome}/kdeglobals".text = ''
[KDE]
SingleClick=true
'';

Now, executing QT_QPA_PLATFORMTHEME='kde' dolphin, I’m able to enter directories without double-clicking.