Results 1 to 8 of 8

Thread: Error in kde notifications

  1. #1

    Default Error in kde notifications

    The notifications in kde cannot show '<' character in notification detail and truncates to it.
    To reproduce install libnotify-tools
    Code:
    notify-send 'while (1<2)' 'while(1<2)'
    same happen with
    Code:
    notify-send "while (1<2)" "while(1<2)"
    screenshot:
    https://paste.opensuse.org/85867886

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,646
    Blog Entries
    14

    Default Re: Error in kde notifications

    Quote Originally Posted by K380 View Post
    The notifications in kde cannot show '<' character in notification detail and truncates to it.
    To reproduce install libnotify-tools
    Code:
    notify-send 'while (1<2)' 'while(1<2)'
    same happen with
    Code:
    notify-send "while (1<2)" "while(1<2)"
    screenshot:
    https://paste.opensuse.org/85867886
    Hmm, I don't see that here:
    Code:
    notify-send 'while (1<2)' 'while (2>1)'
    results in


    Which makes me wonder how you have updated your Tumbleweed install. If not through 'zypper dup' than invoke that first, it's the only supported way, due to the fact that TW is released over and over again, instead of providing just package updates.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3

    Default Re: Error in kde notifications

    You're using > instead of < in second quotes

  4. #4
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,646
    Blog Entries
    14

    Default Re: Error in kde notifications

    Quote Originally Posted by K380 View Post
    You're using > instead of < in second quotes
    You're right. I do see it when using < in both cases. Removal of the inner quotes works around the issue, but prints both 'while' statements on one line. If you consider this a bug, report it at bugs.kde.org
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  5. #5

    Default Re: Error in kde notifications

    libnotify seems a gnome project, but I cannot reproduce in some other gnome distro. I'll file a bug in the kde bugtracker then.
    Thanks for the assistance.

  6. #6
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,646
    Blog Entries
    14

    Default Re: Error in kde notifications

    And ........ this works:
    Code:
    notify-send "$(echo -e 'while (1<2)\nwhile (2<1)')"
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  7. #7

    Default Re: Error in kde notifications

    It's just a minor bug.
    I noticed it when clementine music player sent a notification.
    So some applications do depend on the second parameter of notify-send

    Actual notification:
    https://paste.opensuse.org/85877449
    I was just able to easily reproduce it with that command.

  8. #8

    Default Re: Error in kde notifications

    It's resolved on kde side:
    https://bugs.kde.org/show_bug.cgi?id=399608

    The second parameter of send-notify expects rich text ( <b> <i> etc)
    This caused the truncation, it should be escaped by the application itself like:
    Code:
    notify-send "while (1<2)" "while(1&lt;2)"
    https://bugs.kde.org/show_bug.cgi?id=399608#c5

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •