* 2026-03-05 16:04:53+0100, Jan Claeys wrote:

> On Mon, 2026-03-02 at 09:46 +0200, Teemu Likonen wrote:
>> So, the general question is: how could a background root script give
>> a desktop notification for the current / all users?
>
> If no better & more generic solution pops up, you could have the backup
> script write its "message" to a file in a specific location, and then
> in the desktop user session watch that file for changes, [...]

I did that. A systemd .path unit watches for changes in the file and
triggers a .service unit for showing the notification. Simple enough but
indeed there's a need for a good generic solution.

-- 
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: DD3B8E8ABD28B98176E6A7CCCC9A5E615FCC1D93
/ old key: 6965F03973F0D4CA22B9410F0F2CAE0E07608462

Attachment: signature.asc
Description: PGP signature

Reply via email to