Files transferred by Viber are stored on
~/Documents/ViberDownloads by default. How is it possible to change the destination to a location under
This is a complimentary answer to AliNa's.
If you want to move your previously downloaded files to the new location follow below steps:
- Backup your downloaded files
Paste below query to query edit area:
Update messages set PayloadPath = replace(PayloadPath, "Documents/ViberDownloads", ".viberdownloads") where PayloadPath is not null and PayloadPath <> '';
What this does is; replaces text
PayloadPath field of
messages table. I typed ".viberdownloads" because I wanted my downloads in /home/user/.viberdownloads folder. Change these strings according to your use.
- Click Run(F9)
Make sure you carefully backup
.ViberPC folder, if something goes wrong you will lose all your message history on this machine.
Viber preferences are stored as ".db" files under
~/.ViberPC/. You should have installed an extra application in order to open or edit them; for example, Sqliteman which is available from Software Center.
To edit the location of downloads folder, open the following file:
On the left sidebar of Sqliteman, open Tables > Settings. You can see the setting entitled DownloadFolder on the bottom right. Double click on its value to change the location as you wish.
If you have downloaded some files before you change the setting, you won't be able to open them from Viber afterwards. To solve this, @HeyYo have a great answer.
In OSX you can find
ViberPC folder here
The above didn't work for me (in version 6.5.5), so I temporarily fixed it by hacking the main viber binary, the sed below replaces ViberDownloads with .viberDownload:
sudo -i cd /opt/viber cp -a Viber Viber.original hexdump -ve '1/1 "%.2X"' Viber.original | sed "s/5669626572446F776E6C6F616473/2E7669626572446F776E6C6F6164/g" | xxd -r -p > Viber