I use ViberIndicator to start Viber with correctly display tray icon on Ubuntu 15.10. Then I added viberIndiator to startups applications Viber start with displaying last dialog window.
How to start Viber minimized on system startup ?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
I think you should combine @zon and @yavor-dobrev solutions with a bit of tricks.
I use this startup script:
#!/bin/bash set -e export QT_AUTO_SCREEN_SCALE_FACTOR=0 /opt/viber/Viber StartMinimized & while ! wmctrl -xc Viber.ViberPC; do sleep .5 done
export QT_AUTO_SCREEN_SCALE_FACTOR=0to avoiding huge display on my XFCE4
Viber StartMinimizedto starting Viber hidden as possible
wmctrl -xc Viber.ViberPCto closing the Viber window only avoid closing others
while ! wmctrl ...to close the windows as fast it can