[Lazarus] RE : RE : RE : g_variant_new_string: assertion `g_utf8_validate (string, -1, NULL)' failed

Ludo Brands ludo.brands at free.fr
Wed Dec 14 18:42:05 CET 2011


A small suggestion for the example: test the libnotify version. The header
conversion is based on 0.7.0 which is fairly recent. Ubuntu 10.04, the
latest LTS, still only has version 0.4.5. The example crashes miserably with
this version since notify_notification_new had an additional parameter. 

Note also that the example could be reduced to a one-liner without header
conversion:

Sysutils.ExecuteProcess('/usr/bin/notify-send','-i dialog-information
"Example for libnotify" "This is a simple example how to use libnotify."');

Notify-send comes with the libnotify package. I guess you need the header
translation for doing things that aren't possible with notify-send but for
the average user it is an easier alternative.

Ludo





More information about the Lazarus mailing list