Duncan wrote, On 08/27/2013 10:56 AM: > Dotan Cohen posted on Tue, 27 Aug 2013 12:33:53 +0300 as excerpted: > >> On Tue, Aug 27, 2013 at 10:05 AM, Duncan <1i5t5.dun...@cox.net> wrote: >>> Dotan Cohen posted on Sun, 25 Aug 2013 14:49:42 +0300 as excerpted:
> FWIW, I don't appear to have a notify-send binary installed here, but I > do see a couple package hits. But what package provides it for you On Debian Wheezy: zia:debian# apt-file search notify-send libnotify-bin: /usr/bin/notify-send > there? (The ones I see appear to be smaller alternative implementations, > in case whatever package that normally provides it isn't installed, > tinynotify-send and sw-notify-send, the latter being a system-wide Debian doesn't have 'sw-notify-send' However, 'kdialog' has built-in dbus notify via: kdialog --passivepopup "Danger, Will Robinson" 0 # "text of message" Timeout-in-seconds It's much more limited in that respect. (icon is hardcoded at "info", timeouts seem limited to 30 seconds max, and can't be made persistent) > Meanwhile, google indicates that dbus-send can provide similar > functionality with an appropriate invocation. I obviously have that > (part of dbus), so I have some choices available and experimentation to > do... =:^) notify-send -u critical -t 0 -a APPNAME -i face-raspberry -c CATEGORY -h string:HINT:clue SUMMARY BODY results in (via running 'dbus-monitor'): method call sender=:1.149 -> dest=:1.14 serial=7 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify string "APPNAME" uint32 0 string "face-raspberry" string "SUMMARY" string "BODY" array [ ] array [ dict entry( string "urgency" variant byte 2 ) dict entry( string "HINT" variant string "clue" ) dict entry( string "category" variant string "CATEGORY" ) ] int32 0 $ qdbus org.freedesktop.Notifications /org/freedesktop/Notifications signal void org.freedesktop.Notifications.ActionInvoked(uint id, QString action_key) method void org.freedesktop.Notifications.CloseNotification(uint id) method QStringList org.freedesktop.Notifications.GetCapabilities() method QString org.freedesktop.Notifications.GetServerInformation(QString& vendor, QString& version, QString& spec_version) signal void org.freedesktop.Notifications.NotificationClosed(uint id, uint reason) method uint org.freedesktop.Notifications.Notify(QString app_name, uint replaces_id, QString app_icon, QString summary, QString body, QStringList actions, QVariantMap hints, int timeout) method QDBusVariant org.freedesktop.DBus.Properties.Get(QString interface_name, QString property_name) method QVariantMap org.freedesktop.DBus.Properties.GetAll(QString interface_name) method void org.freedesktop.DBus.Properties.Set(QString interface_name, QString property_name, QDBusVariant value) method QString org.freedesktop.DBus.Introspectable.Introspect() $ qdbus org.freedesktop.Notifications /org/freedesktop/Notifications GetServerInformation Plasma KDE 1.0 1.1 $ qdbus org.freedesktop.Notifications /org/freedesktop/Notifications GetCapabilities body body-hyperlinks body-markup icon-static actions (body-markup allows <b>bolded</b>, <i>...</i> Ref: http://www.galago-project.org/specs/notification/ href's (body-hyperlinks) appear to work from notify-send and from kdialog --passivepopup (i.e. not stripped) --stephen -- Stephen Dowdy - Systems Administrator - NCAR/RAL 303.497.2869 - sdo...@ucar.edu - http://www.ral.ucar.edu/~sdowdy/ ___________________________________________________ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.