* Stanislav Brabec
Guido Berhoerster wrote:
* Stanislav Brabec
[2015-03-05 17:00]: Probably a small application connected to the notification service (that is compatible over desktops), needs to be written. Or, if somebody already wrote it, it should be packages.
Use wall(1), ie. in one of the included examples, KDE turns that into a desktop notification by default, for other desktops there is xwrited which I could submit to Factory if desired.
I support this. It would be nice and useful not only for smartd. And then add it to GNOME and XFCE patters.
How about the following default configuration:
/etc/smartd.conf:
----8<----
# send mail to root and execute scripts in /etc/smartd_warning.d
DEVICESCAN -d removable -m root,@ALL -M exec /etc/smartd_warning.sh
---->8----
/etc/smartd_warning.d/wall.sh:
----8<----
#! /bin/sh
# Warn all users of a problem
wall <
But it is a bit sub-optimal, as it does not allow internationalization.
True, but I guess it is not much worse than sending untranslated mails to root. For translated desktop notifications it'd have to be implemented the other way around, i.e. have a per-user daemon which uses some form of IPC like DBus to listen to standardized smartd messages which can the be presented in a translated form. That also won't reach users logged in on a console or via ssh. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org