On Thursday, March 05, 2015 21:46:13 Stanislav Brabec wrote:
Guido Berhoerster wrote: [...]
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.
There are desktops with more users logged, each with a different locale. It complicates such things a bit.
Desktop application has to translate them. But it is hard for already composed messages with variable parts.
Note that similar problem was successfully solved in sane project in past.
Well, this could be a longer time task. In the first step, we need to deliver messages at least in English.
There already is a daemon running providing smart status to desktop applications/notifiers: udisks There is a dbus object for every drive, several smart attributes are exported as properties, and a PropertiesChanged signal is generated when the disk starts to fail. See http://udisks.freedesktop.org/docs/latest/gdbus-org.freedesktop.UDisks2.Driv... for smart properties. You can use udiskctl dump to show the current state on your system. Udisks also works on a multiseat system, plug in an external hard drive, and an eventual notification will be shown for the user at the corresponding seat. AFAIK only GNOME provides a desktop notification currently, but providing a desktop agnostic bridge between udisks and the notification spec for anything but gnome (KDE, xfce, ...) should be easy. Kind regards, Stefan -- Stefan Brüns / Bergstraße 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019 work: +49 2405 49936-424-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org