I am on Linux Mint 18.1, MATE.
I am using the notify-send command to visualize the name of keys (such as
<enter>), while sending them to the current window via a python script.For about two weeks, notify-send has shown a weird behavior. I know the basic syntax in bash is
notify-send [OPTIONS] <summary> [body].
However, when trying to print the key name in the message body with
notify-send -t 0 'Summary' '<enter>', I get:
The same happens with
notify-send -t 0 'Summary' '<',
notify-send -t 0 'Summary' '>' or
notify-send -t 0 'Summary' \<
Any ideas why the body text is printed blank if it contains < or > ?
I have tried to use a python module istead:
from gi.repository import Notify Notify.init("App Name") Notify.Notification.new("Summary","<enter>").show()
But the result is the same as in picture 2 above.
zenity --info --title='Summary' --text='<enter>' in bash, I get an error message:
(zenity:4952): Gtk-WARNING **: Failed to set text '<enter>' from markup due to error parsing markup: Error on line 1 char 24: Element 'markup' was closed, but the currently open element is 'enter'
And instead of the text
<enter>, the opening info dialog has the surprising text:
All updates are complete.