Well, I installed Viber for the Linux desktop today. Yet again. I remember installing it not so long ago only to end up uninstalling it straight away because the application window looked disproportionately huge on my Ubuntu 16.04.
The issue is still present now. Describing it, below are a few of what I noticed when Viber was first launched after install.
- The application window would not fit the screen resolution properly.
- Parts of the window won’t show because it’s too big.
- I could not resize the application.
- Maximize doesn’t work too.
- The fonts are very large.
Everything looked very odd. Not to mention butt ugly.
Didn’t bother to look for a solution before. But today I did. And it is quite an easy fix. All you need is a good old text editor and a few clicks on the file manager.
So according to Ask Ubuntu this is what you should do if you encounter this issue (Credit goes where credit is due).
This works for Viber >= 0.70 only. The solution linked above includes one for older versions.
Find the .desktop file for Viber. It should be in /usr/share/applications by default. Aptly named, viber.desktop (Yes, no surprise there).
Then edit the Exec part to include an adjustment on how the app will be scaled when launched.
Note: You need to run your GUI text editor with gksudo or you will not be able to modify the file.
The modified command looks like this:
Exec=env QT_SCALE_FACTOR=0.6 /opt/viber/Viber %u
Modify the line on the .desktop file to look exactly like the one above.
Note: Though I did say exactly, you can – of course – experiment with a number that best suits your desktop environment. Mine is currently set at 0.8.
Close your Viber before re-launching it with this fix or you won’t notice the change until the next login. And by this I mean, kill the running app instance by going to the app indicator and clicking on Exit. That should terminate the app which is just running in the background.
That should do it. Now on next launch, you should have the Viber application scaled properly on your desktop. The window is already resizable. Maximize works too. Fonts display accordingly. Lastly, it will now look pretty on your desktop instead of sticking out like a sore thumb.
Enjoy messaging your friends!
Official Viber downloads page: https://www.viber.com/en/download/ How To install Viber on Linux - Scroll down at the bottom half part of the page for links to packages for Ubuntu, Fedora and an AppImage is provided too. There are unofficial Snap versions for the Viber app on SnapCraft.io: https://snapcraft.io/search?q=viber
- > Keyboard Not Functioning Properly After Ubuntu 13.10 Upgrade October 25, 2013
- > More OpenVPN Options On NetworkManager December 31, 2020
- > Eclipse IDE Global Menu Hack On Ubuntu October 2, 2012
- > Getting That Ubuntu Snap Icon Right On Unity Shell August 13, 2020
- > “PROGRAM_NAME” Is Not Recognized As An Internal Or External Command, Operable Program Or Batch File December 20, 2013