Forked from http://cgit.collabora.com/git/user/bari/shell-message-notifier.git/