dunst-project / dunst

Lightweight and customizable notification daemon
https://dunst-project.org
Other
4.62k stars 342 forks source link

g_utf8_validate error #69

Closed Ypnose closed 12 years ago

Ypnose commented 12 years ago

I'm currently using dunst with the latest commit. I use the script to print track played with moc. It's called zinfo. It's working pretty good with my files. #!/bin/sh ZIK=$(mocp -Q %title 2> /dev/null) notify-send -u low "Title = $ZIK" exit I tried to print informations about track played from a web radio but it failed with this information: (notify-send:1396): GLib-CRITICAL **: g_variant_new_string: assertion `g_utf8_validate (string, -1, NULL)' failed /home/foo/.bin/zinfo : ligne 3 : 1396 Trappe pour point d'arrêt et de trace notify-send -u low "Title = $ZIK"

The output works in terminal with "mocp -Q %tile". Here the string: Michael Dupré - Heavenly Tranced Out 2012 I have to say that moc (with ncurses) print a missing character instead of "é".

I used default dunstrc, but I had same error.

I'm sure it's related to the streamer because I tried others streams and it was fine. I wanted to warn you about it.

knopwob commented 12 years ago

this looks like a problem with notify-send which is not part of dunst