The officially official Devuan Forum!

You are not logged in.

#1 2018-02-25 19:47:29

GNUser
Member
Registered: 2017-03-16
Posts: 570  

some taskbar icon images shrunken and duplicated on ascii [SOLVED]

I am running ASCII with MATE desktop and noticed that some applications are having a hard time putting icons on the taskbar: Instead of an icon containing one reasonably-sized image, an icon with multiple miniature images shows up.

Here is my taskbar with two examples:

taskbar.png

The key icon was put there after I entered my credentials to add a printer. The little brown box was put there by one of my shell scripts using yad.

All the desktop themes and icon themes that I tried are similarly affected.

This is purely cosmetic, of course, but I was wondering if anyone knows how to fix this.

Last edited by GNUser (2018-02-28 00:20:45)

Offline

#2 2018-02-28 00:19:37

GNUser
Member
Registered: 2017-03-16
Posts: 570  

Re: some taskbar icon images shrunken and duplicated on ascii [SOLVED]

I found a workaround: An older version of yad (0.27.0-1.1 instead of the 0.38.2-1 available in ascii repository) handles the taskbar icons perfectly.

The elevated credentials icon is still messed up, but I see that icon 1/10 of the time I see various icons placed in taskbar by yad, so I am happy with the workaround.

My gut feeling is that the buggy taskbar icons are due to a GTK3 version incompatibility between current yad/gnome-keyring and current mate-panel, but I wouldn't know how to test this hypothesis. If someone knowledgeable knows the actual reason and/or a proper fix, please do share.

Last edited by GNUser (2018-02-28 00:22:01)

Offline

#3 2018-02-28 12:34:13

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,486  

Re: some taskbar icon images shrunken and duplicated on ascii [SOLVED]

I can't explain why it would be gtk3 related, but I can offer a way to test that theory. Here's a yad package compiled with support for gtk2 instead of gtk3. Install this one and see if it does the same thing. (sorry, no i386 package)
http://distro.ibiblio.org/refracta/file … _amd64.deb

Offline

#4 2018-02-28 13:30:52

GNUser
Member
Registered: 2017-03-16
Posts: 570  

Re: some taskbar icon images shrunken and duplicated on ascii [SOLVED]

Thank you, fsmithred. I installed the version you provided and it handles taskbar icons well: The images on the icons are a bit smaller than what yad 0.27.0-1.1 shows, but centered on the icon and not duplicated.

Last edited by GNUser (2018-02-28 13:50:32)

Offline

#5 2018-12-19 17:16:23

GNUser
Member
Registered: 2017-03-16
Posts: 570  

Re: some taskbar icon images shrunken and duplicated on ascii [SOLVED]

I bumped into this today. It turns out that the behavior I described with yad is a "feature" and not a bug.

Q: 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.
...
Is this a bug?

A: 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)"

ref: https://groups.google.com/forum/#!msg/y … a3gOegCQAJ

Last edited by GNUser (2018-12-19 17:17:37)

Offline

Board footer