System:
Debian 11 (all updates installed)
KDE
AMD CPU
I have a service that starts at bootup with root ownership.
If this service detects a specific condition, it sends an email to a designated user (not root).
I'd like it to also send a popup message to the display of this designated user.
So I need to direct the popup message to a display owned by someone other than root (designated user).
Everything works, except the popup message.
Redirecting the popup message to the display of the designated user fails.
Stripping the failure down, I discovered that I'm failing at the most basic level: I can't specify the display.
Here is the simplest sequence showing the failure:
Code: Select all
env #get the display name: "DISPLAY=:0" (self)
kdialog --error 'Test Message' #make sure the popup works when using the default display (default self)
kdialog --display=:0 --error 'Test Message' #now explicitly specify the display (specify self)
kdialog: Unknown option 'display' #FAIL
kdialog [Qt-options] [KDE-options] [options] [arg]
I discovered that only the [options] work; and that the [Qt-options] and the [KDE-options] all fail.
The "--display" option is one of the [Qt-options], hence its failure.
I assume that I need to install/configure some Qt package, but I can't find any info on which package is needed.
What am I doing wrong?
Any pointer appreciated.
Thanks for the help.