Bug 473401 - kdialog and dark theme
Summary: kdialog and dark theme
Status: REPORTED
Alias: None
Product: kdialog
Classification: Applications
Component: general (other bugs)
Version First Reported In: 22.12.3
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Brad Hards
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-15 08:47 UTC by Roberto
Modified: 2023-08-15 08:49 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roberto 2023-08-15 08:47:03 UTC
I  have some script enabled in cron (as my user, not root) which run kdialog to notice me in case of errors. However the dialog occurs to use light theme even if I'm using Breeze-dark in plasma.

Also, I cannot use the `--platformtheme` option in kdialog:

$ kdialog --platformtheme breeze-dark --msgbox "HELLO"
kdialog: Unknown option 'platformtheme'.

How should I set dark theme in scripts running in cron?

STEPS TO REPRODUCE
1.  set a user script in crontab, which calls kdialog
2. wait that the script runs

OBSERVED RESULT
the window message is using standard (light) theme

EXPECTED RESULT
the window message should be using the user's theme

SOFTWARE/OS VERSIONS
Linux:  debian/sid
KDE Plasma Version: 5.27.7.1
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10