How to install Thunar file manager on Linux Mint

Endrit Qerreti

Endrit Qerreti

In this tutorial, you will learn how to install Thunar on Linux Mint.

Thunar is the default file manager for the XFCE desktop environment.

There are many ways to install Thunar file manager on Linux Mint. However, in this tutorial, we'll be installing Thunar by downloading the official package thunar that can be downloaded directly from the main repositories of Linux Mint.

Thunar is already installed if your are running XFCE desktop environment on your machine. However, if your thunar file manager installation is broken, and you need to reinstall it, you can easily do so by following this tutorial.

Installing Thunar on Linux Mint

In this tutorial, we'll be installing Thunar via the official repositories of Linux Mint.

Step 1 - Update Linux Mint

First thing that needs to be done, is to update your Linux Mint machine, as updating packages that haven't been updated for some time, is done so you don't encounter any issue when installing Thunar.

To update your Linux Mint machine, you can do so by running the command below.

sudo apt update

Step 2 - Install Thunar

Now that your Linux Mint machine is updated, you can proceed to install Thunar.

To do so, simply launch your terminal, and run the command below to install Thunar.

sudo apt install thunar -y

In the command above we are using the -y parameter, to install thunar automatically without having to confirm the installation manually.

Step 3 - Check Thunar version

If you are not aware which version of Thunar was installed, you can easily find Thunar version by running the following.

thunar --version

Step 4 - Use Thunar

Thunar is now installed in your Linux Mint machine, which means you can now use it.

You can launch Thunar easily via the terminal, by running the command below.

thunar

Make Thunar default file manager

Thunar is already the default file manager for the XFCE desktop environment. However, if you encounter errors when trying to launch the default file manager, then you need to set Thunar as your default file manager.

To do so, simply run the command below.

xdg-mime default thunar.desktop inode/directory

Verify default file manager

Once you've set Thunar as the default file manager in your system, you need to verify that it was set correctly.

To do so, you can use the xdg-mime tool.

xdg-mime query default inode/directory

If Thunar is the default file manager, then you should see the outputthunar.desktop as shown in the screenshot below.

Conclusion

In this tutorial, you learned how to install Thunar and how to make the default file manager in Linux Mint.