How to start Viber minimized on system startup?
6,276
Solution 1
Configure your linux startup commands (Properties - Startup - Viber) for Viber:
/opt/viber/Viber StartMinimized
Solution 2
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
Details:
export QT_AUTO_SCREEN_SCALE_FACTOR=0
to avoiding huge display on my XFCE4Viber StartMinimized
to starting Viber hidden as possiblewmctrl -xc Viber.ViberPC
to closing the Viber window only avoid closing otherswhile ! wmctrl ...
to close the windows as fast it can
Solution 3
Install wmctrl and use the following script to start viber:
#!/bin/bash
/opt/viber/Viber &
sleep 3
wmctrl -c "Viber"
Adjust the sleep time if necessary.
Related videos on Youtube
Author by
Andrii Lytvynenko
By Day: I coding something in PHP, RUBY, JAVA etc. By Night: I sleep and see how i am coding something Sometimes: Play Airsoft
Updated on September 18, 2022Comments
-
Andrii Lytvynenko over 1 year
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 ?
-
Zon almost 8 yearsAdded details .
-
Zon almost 8 yearsAt least it is minimized as window.