https://bugs.kde.org/show_bug.cgi?id=515130
Bug ID: 515130
Summary: Dolphin fails to apply Qt/Kvantum theme on startup in
LXQt until lxqt.conf is modified
Classification: Applications
Product: dolphin
Version First 25.12.1
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: view-engine: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Summary
When launching Dolphin in an LXQt environment, the application fails to
correctly load the designated Qt/Kvantum theme (colors and widget styles are
partially lost). However, if ~/.config/lxqt/lxqt.conf is modified while Dolphin
is running, Dolphin immediately updates and applies the correct theme.
Environment
Steps to Reproduce
Set the system widget style to kvantum-dark in LXQt Appearance settings.
Close all instances of Dolphin.
Launch Dolphin via terminal or application menu.
Observed Result: Dolphin opens with an inconsistent "default" look
(incorrect colors/borders).
Discovery via strace
By attaching strace to the running Dolphin process, we identified that Dolphin
maintains an inotify watch on the LXQt configuration file:
inotify_add_watch(..., "/home/user/.config/lxqt/lxqt.conf",
IN_MODIFY|IN_ATTRIB|...)
When a manual change is made in lxqt-config-appearance, the file lxqt.conf is
written to. This IN_MODIFY event triggers a refresh signal within Dolphin's
KConfig/KPlugin cache, which finally applies the correct theme.
So open dolphin, change to some theme in lxqt-config-appearance, then back to
eg. kvantum-dark, Dolphin almost instantly apply the theme which before
refused! Note that i was searching for years for such fix. This also is fixing
the nightmare of many how to highlight the 2nd row in dolphin.
Workaround / "Fix"
The theme can be "forced" to load by programmatically toggling the style string
within lxqt.conf after the window has drawn:
```
sed -i 's/style=kvantum-dark/style=kvantum/g' ~/.config/lxqt/lxqt.conf
sleep 0.2
sed -i 's/style=kvantum/style=kvantum-dark/g' ~/.config/lxqt/lxqt.conf
```
Expected Behavior
Dolphin should correctly initialize the Qt Platform Theme and Kvantum styles
upon the initial MapWindow event without requiring an external file-system
trigger.
SOFTWARE/OS VERSIONS
Dolphin: 25.12.1
KDE Frameworks: 6.20.0
Qt: Using 6.9.2 and built against 6.9.2
Debian GNU/Linux forky/sid (Xcb)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.17.13+deb14-amd64
--
You are receiving this mail because:
You are watching all bug changes.