I don't know when it stopped working but my first guess is that some of
those features have not been ported to Wayland yet. I switched from X11
to Wayland a couple of months ago (and it's great; I'm not going back).
I also upgraded from Debian 12 to 13 last summer.
You could look at this bug report about wall https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1115259That is probably saying that "wall" will not be fixed for the operation.
So, the general question is: how could a background root script give a desktop notification for the current / all users?
I'm not fixed to "wall". We can ditch it. The general question is: How
could a background root script give a desktop notification for the
current / all users?
On 02/03/26 at 08:46, Teemu Likonen wrote:Not that one (before) but those notification daemons tend to require the
So, the general question is: how could a background root script give
a desktop notification for the current / all users?
Have you tried "notify-send"? It is provided by the "fyi" package.
KDE Plasma desktop has a background service which delivers "wall"
messages as desktop notifications. This doesn't work anymore.
Not that one (before) but those notification daemons tend to require the
same user. So does "fyi":
$ sudo fyi Title Message
error: failed to connect: /usr/bin/dbus-launch terminated abnormally
without any error message
So root can't easily send notifications for other users.
So, the general question is: how could a background root script give
a desktop notification for the current / all users?
On Mon, 2026-03-02 at 09:46 +0200, Teemu Likonen wrote:I did that. A systemd .path unit watches for changes in the file and
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 andUh-oh. That's what notification in the age of systemd has come to.
triggers a .service unit for showing the notification. Simple enough but indeed there's a need for a good generic solution.
I have a systemd timer and service that runs my backup script daily. The script runs on root privileges.
If the backup script notices an error I would like to report the error
as a notification in normal user's desktop. In the past this worked with "wall" command in the backup script:
wall "The backup failed. See the journal for more info."
KDE Plasma desktop has a background service which delivers "wall"
messages as desktop notifications. This doesn't work anymore. "wall"
messages doesn't show in desktop even though the background service is running.
I don't know when it stopped working but my first guess is that some of
those features have not been ported to Wayland yet. I switched from X11
to Wayland a couple of months ago (and it's great; I'm not going back).
I also upgraded from Debian 12 to 13 last summer.
So, the general question is: how could a background root script give a desktop notification for the current / all users?
The ArchWiki (https://wiki.archlinux.org/title/Desktop_notifications#Send_notifications_to_all_graphical_users)Thank you! I knew that the systemd guys had all the basic pieces
offers this snippet:
# for id in $(loginctl list-sessions -j | jq -r '.[] | .session')ÿ; do
if [[ $(loginctl show-session $id --property=Type) =~ (wayland|x11) ]]ÿ; then
systemd-run --machine=$(loginctl show-session $id --property=Name --value)@.host --user \
notify-send 'Hello world!' 'This is an example notification.'
fi
done
if [[ $(loginctl show-session $id --property=Type) =~ (wayland|x11) ]]; then
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 5 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 117:50:52 |
| Calls: | 125 |
| Calls today: | 125 |
| Files: | 489 |
| D/L today: |
859 files (365M bytes) |
| Messages: | 76,472 |
| Posted today: | 26 |