Notification icon not displaying properly

583 views
Skip to first unread message

JMcC

unread,
Dec 12, 2017, 8:14:18 PM12/12/17
to yad-common
Hi,

I'm using yad 0.39.0 on ArchLinux with XFCE.

When I do 
    yad --notification --image="myicon.png"

the icon shows up in the tray too small (about 2/3 the correct height) and about half of it is repeated on the right hand side.   The icon is a normal 96x96 png file which should scale appropriately.  

If I do 
     yad --notification

I get the default "test tube" icon displayed normally.  

But if I do
    yad --notification --image="/usr/share/icons/hicolor/32x32/apps/yad.png" (pointing to yad's own icon explicitly), I get the same distortion!

Is this a bug?

Any thoughts or help would be appreciated!

Victor Ananjevsky

unread,
Dec 13, 2017, 2:58:51 AM12/13/17
to yad-c...@googlegroups.com

hi

no, this is not a bug. before yad 0.40 notification icons which
specifies by absolute filename automatically scales to 16 pixels size

in the release 0.40.0 i add --icon-size option for costom icon sizes

so please update to the latest version or use icon name instead of
filenames.
this workaround must works in older versions

yad -- notification --image="myicon" --image-path="$(pwd)"

В Tue, 12 Dec 2017 17:14:18 -0800 (PST)
JMcC <mcclella...@gmail.com> писал:
> --
> You received this message because you are subscribed to the Google Groups "yad-common" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to yad-common+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


--
Victor Ananjevsky <anan...@gmail.com>

JMcC

unread,
Dec 14, 2017, 8:46:31 PM12/14/17
to yad-common
Hello, thanks for your response (and thanks for making a great program BTW).

I think my problem actually has to do with how XFCE deals with the 16x16 icon.  I just recently switched to Arch/XFCE from Mint-KDE 17.3.  On the old KDE system, which had yad 0.39 installed, the same command worked - at least a single icon showed up in the tray... a little small at 16x16, but quite serviceable.  Now with XFCE it seems it's trying to fill the space by doubling a portion of the icon. 

Unfortunately your suggested workaround did not work for me - just got an error icon in the tray and the following output:

  (yad:10492): Gtk-CRITICAL **: gtk_icon_theme_append_search_path: assertion 'GTK_IS_ICON_THEME (icon_theme)' failed

I will work on installing yad 0.40 but so far the arch repositories only have up to 0.39.  Will need to install from source I guess (and am a bit of a newbie at that).

Thanks again,
J

JMcC

unread,
Dec 15, 2017, 6:34:14 PM12/15/17
to yad-common
For the record, I was able to improve the icon appearance by right clicking the XFCE notification area, selecting "properties" and reducing the maximum icon size from 22 to 20.

Upgreyed

unread,
Jun 20, 2018, 4:49:13 PM6/20/18
to yad-common
Since 0.40.0 I have been using a patch to fix the notify icon... The patch displays the icons correct size in PCLinuxOS
all DE's for us.
yad-0.40.3-notify-icon.patch
Reply all
Reply to author
Forward
0 new messages