Created attachment 115536 [details] Screenshot of the notification producded SUMMARY Notifications in kde truncate after '<' character in body. Using opensuse tumbleweed 20180915 kde. STEPS TO REPRODUCE 1. install libnotify-tools 2. in konsole run notify-send 'while (1<2)' 'while(1<2)' OBSERVED RESULT in the notification first message is shown correctly while second is truncated before '<'. In this: notify-send [OPTIONS] <summary> [body] the body part gets truncated. Notification: while(1<2) while(1 EXPECTED RESULT Both parts show complete message, the summary and body. Notification: while(1<2) while(1<2) SOFTWARE VERSIONS (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
Plasma expects rich text for the body, please try quoting angle brackets using < >
Christoph, is this RESOLVED INTENTIONAL then?
(In reply to Christoph Feck from comment #1) > Plasma expects rich text for the body, please try quoting angle brackets > using < > Well, the problem is this erroneous notification is sent by clementine for the music album because of the '<' in the name. I thought the behavior would be same for both the <summary> and the [body]. If this is expected, I'll take up the issue with clementine developers. Thanks.
I am not sure if this is intentional. Is 'libnotify' using some XDG standard for notifications? If there is a standard, and it forbids rich text, then Plasma notifications should have a way to show plain notifications, without any character substitutions.
To answer my own question: According to https://wiki.archlinux.org/index.php/Desktop_notifications libnotify follows the Notification Spec at https://developer.gnome.org/notification-spec/ which says the body may contain simple XML based Markup <b> <i> etc.
So yes, to answer your question forneus48, you should contact the Clementine developers and tell them to properly escape their strings.
I don't have libnotify installed, but using kdialog I could confirm that Plasma properly substitutes XML entities. kdialog --passivepopup "Hello <b>"Plasma & Qt"</b>" 1 kdialog --passivepopup "while (1<2)" 1 --icon dialog-error kdialog --passivepopup "while (1<2)" 1 --icon dialog-information First line demonstrates XML markup, second line truncates, third line works.