polybar: Synology-Drive Icon is not correctly positioned

Describe the issue

I’m on Archlinux and I have installed the package “synology-drive” from AUR (https://aur.archlinux.org/packages/synology-drive/). When I started the application, the icon did not have been correctly placed on the bar. In fact, the icon floating to the left whereas my systray is positioned to the right.

Expected behavior:

The icon of this app must be placed in systray block with the correct size.

Actual behavior:

the regular icons are well placed in systray emplacement but the icon of synology-drive floating to the left.

Was it working before? All working fine excepting that.

To Reproduce

Install synology-drive and launch the application.

# Polybar tray config
[bar/top]
...
tray-position = right
tray-padding = 4
tray-maxsize = 16
;tray-transparent = true
;tray-detached = true
;tray-offset-x = 50
...

Polybar Log

No log line was written during the test.

Screenshots

https://imgur.com/KEo6G4D

Environment:

  • WM: i3wm
  • Output of polybar -vvv:
polybar 3.2.1

Features: +alsa +curl +i3 -mpd +network +pulseaudio +xkeyboard

X extensions: +randr (+monitors) -render -damage -sync -composite +xkb +xrm +xcursor

Build type: RelWithDebInfo
Compiler: /usr/bin/c++
Compiler flags: -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -Wextra -Werror -Wno-noexcept-type -O2 -pedantic -pedantic-errors
Linker flags: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 8
  • Comments: 21 (5 by maintainers)

Commits related to this issue

Most upvoted comments

Synology seem to have fixed the issue in version 2.0.3-11102 of the Drive client. On my end (i3 version 4.17.1 and polybar 3.4.2) the icon now appears in the tray as expected. 🎉

Alright. Never done that before, but this is an excellent reason and method to learn. Will try my best.

Sent while on the road, errors may occur.

On Thu, Jan 23, 2020, 23:55 Patrick Ziegler notifications@github.com wrote:

@moonwitch https://github.com/moonwitch I think the greatest help here would be to dig into the code, run polybar under gdb and figure out where things go wrong compared to other well-behaving tray icons. From there it should be easier to figure out why this happens for this particular icon and not others.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/polybar/polybar/issues/1679?email_source=notifications&email_token=AAADVV634O2IM576WMNYMBLQ7IN6XA5CNFSM4G4HE5IKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJZE3BY#issuecomment-577916295, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADVV5ID2OCLAD7KVTT6WDQ7IN6XANCNFSM4G4HE5IA .