Files transferred by Viber are stored on ~/Documents/ViberDownloads
by default. How is it possible to change the destination to a location under ~/Downloads
?
Files transferred by Viber are stored on ~/Documents/ViberDownloads
by default. How is it possible to change the destination to a location under ~/Downloads
?
This is a complimentary answer to AliNa's.
If you want to move your previously downloaded files to the new location follow below steps:
.ViberPC
folder~/.ViberPC/{your-phone-number}/viber.db
with sqlitemanPaste 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
Documents/ViberDownloads
with.viberdownloads
inPayloadPath
field ofmessages
table. I typed ".viberdownloads" because I wanted my downloads in /home/user/.viberdownloads folder. Change these strings according to your use.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/Users/<Username>/Library/Application Support/ViberPC
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: