Software & AppsOperating SystemLinux

How To Change Viber Download Folder Location

Ubuntu 12

In this article, we will guide you through the process of changing the Viber download folder location. By default, Viber saves all downloaded files in the ~/Documents/ViberDownloads directory. However, you might want to change this location for various reasons, such as to free up space on your primary drive or to organize your files better.

Backup Your Files

Before we start, it’s crucial to backup your files and the .ViberPC folder. This step is necessary because if something goes wrong, you could lose your message history on that machine. To backup your files, simply copy the ViberDownloads and .ViberPC folders and paste them into a secure location.

Method 1: Using SQLiteman

SQLiteman is an application that allows you to edit SQLite databases. Here’s how you can use it to change the Viber download folder location:

  1. Open the file ~/.ViberPC/{your-phone-number}/viber.db with SQLiteman.
  2. In SQLiteman, navigate to Tables > Settings on the left sidebar.
  3. Look for the setting titled DownloadFolder and double-click on its value.
  4. Change the location to your desired folder under ~/Downloads.
  5. Save the changes and exit SQLiteman.

Method 2: Modifying the Viber Binary

This method involves modifying the Viber binary directly. However, it’s important to note that this method may not work for newer versions of Viber. Here’s how to do it:

  1. Open a terminal.
  2. Run the following commands:
    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
    Let’s break down what these commands do:
    • sudo -i: This command gives you root access, which is necessary to modify the Viber binary.
    • cd /opt/viber: This command changes the current directory to /opt/viber, which is where the Viber binary is located.
    • cp -a Viber Viber.original: This command makes a backup of the original Viber binary.
    • The hexdump, sed, and xxd commands modify the Viber binary by replacing the string ViberDownloads with .viberDownload.

Method 3: Creating a Symbolic Link

The last method involves creating a symbolic link. This method moves the existing ViberDownloads folder to a new location and creates a symbolic link in ~/Documents pointing to the new location. Here’s how to do it:

  1. Open a terminal.
  2. Run the following commands:
    cd ~/Documents
    mv ViberDownloads /SomeOtherLocation
    ln -s /SomeOtherLocation/ViberDownloads
    Here’s what these commands do:
    • cd ~/Documents: This command changes the current directory to ~/Documents.
    • mv ViberDownloads /SomeOtherLocation: This command moves the ViberDownloads folder to a new location (/SomeOtherLocation).
    • ln -s /SomeOtherLocation/ViberDownloads: This command creates a symbolic link in ~/Documents pointing to the new ViberDownloads location.

In conclusion, there are several methods to change the Viber download folder location. Depending on your comfort level with using terminal commands and editing databases, you can choose the method that suits you best. Remember to always backup your files before making any changes.

Can I change the Viber download folder location on my mobile device?

No, this guide is specifically for changing the Viber download folder location on a computer. The process may be different for mobile devices.

Will changing the Viber download folder location delete my existing downloaded files?

No, changing the download folder location will not delete your existing downloaded files. However, it is always recommended to backup your files before making any changes, just in case.

Can I revert back to the default Viber download folder location?

Yes, you can revert back to the default Viber download folder location. You can either use the backup files you created before making any changes or follow the same methods mentioned in this article, but set the download folder location back to ~/Documents/ViberDownloads.

Is it safe to modify the Viber binary directly?

Modifying the Viber binary directly can be risky, especially if you are not familiar with the process. It is recommended to proceed with caution and make sure you have a backup of the original Viber binary before attempting any modifications.

Will changing the Viber download folder location affect the performance of the application?

Changing the Viber download folder location should not affect the performance of the application. However, it is always a good practice to choose a location that is easily accessible and has sufficient storage space to ensure smooth operation.

Leave a Comment

Your email address will not be published. Required fields are marked *