Upgrading Thunar in Linux Mint 21.2

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Post Reply
zajemexer
Level 1
Level 1
Posts: 5
Joined: Thu Oct 26, 2023 12:34 am

Upgrading Thunar in Linux Mint 21.2

Post by zajemexer »

Linux Mint 21.2 XFCE comes with thunar v4.18.4. There are known bugs in that version that are now fixed in v4.18.8.

One issue that was very annoying (and reproducible on the Live CD) was:
https://bugs.mageia.org/show_bug.cgi?id=32253
"Don't reload the directory on copy or cut (#1060)"
This sometimes causes all open thunar windows to scroll seemingly randomly when a copy/cut is done in the window in focus.
After a lot of trail and error, I found replacing the binary was the best solution (YMMV).

How to compile thunar using the Live CD environment
  • Extract to a folder
  • From the Menu go to Software Sources > Official Repositories > turn on Source code repositories > OK to refresh
    This error will happen and can be ignored: "E:The repository 'cdrom://Linux Mint 21.2 _Victoria_ - Release amd64 20230711 jammy Release' does not have a Release file."
Open a terminal where you extracted the source code and run these commands:

Code: Select all

$ sudo apt-get --yes build-dep thunar
$ ./configure
$ make
The compiled thunar binary will be in this subfolder:

Code: Select all

./thunar/.libs/thunar

Code: Select all

mint@mint:/tmp/build_thunar$ ll ./thunar/.libs
  total 4432
  drwxrwxr-x 2 mint mint      60 Nov 20 20:22 ./
  drwxr-xr-x 4 mint mint    5800 Nov 20 20:22 ../
  -rwxrwxr-x 1 mint mint 4535912 Nov 20 20:22 thunar*
Copy that file to the home folder of your in-use install of Mint, close down all instances of thunar, and run these commands:

Code: Select all

$ killall -I thunar
$ sudo mv /usr/bin/thunar /usr/bin/thunar_v4.18.4
$ sudo mv ~/thunar /usr/bin/thunar
$ sudo chown root:root /usr/bin/thunar
$ sudo chmod 755 /usr/bin/thunar
Restart the computer and enjoy less bugs in thunar!

If you ever need to revert back to the original version, these commands will restore it:

Code: Select all

$ killall -I thunar
$ sudo mv /usr/bin/thunar /usr/bin/thunar_v4.18.8
$ sudo cp /usr/bin/thunar_v4.18.4 /usr/bin/thunar
User avatar
Pjotr
Level 23
Level 23
Posts: 19660
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Upgrading Thunar in Linux Mint 21.2

Post by Pjotr »

Respect for sharing this, but it's unwise to do this.... The default file manager of a desktop environment is not just a manager of files, but the very backbone of the DE. Replacing the file manager like this, is therefore high-risk.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
zajemexer
Level 1
Level 1
Posts: 5
Joined: Thu Oct 26, 2023 12:34 am

Re: Upgrading Thunar in Linux Mint 21.2

Post by zajemexer »

Thanks Pjotr, I also thought it was risky. However, I've now run the new version with no problems for about 3 weeks. v4.18.8 is marked as "stable".
User avatar
Pjotr
Level 23
Level 23
Posts: 19660
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Upgrading Thunar in Linux Mint 21.2

Post by Pjotr »

zajemexer wrote: Sun Nov 26, 2023 4:21 pm Thanks Pjotr, I also thought it was risky. However, I've now run the new version with no problems for about 3 weeks.
Future updates might cause problems. Your system has become unpredictable....
zajemexer wrote: Sun Nov 26, 2023 4:21 pm v4.18.8 is marked as "stable".
Right, but that doesn't say anything about its present or future behaviour in a DE version that wasn't designed for it. :wink:

This would probably be a safer procedure, because it involves upgrading the entire DE:
https://www.omgubuntu.co.uk/2022/12/how ... 2-04-22-10

.... but even that might cause quirks, although they're more likely to be relatively unimportant.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Hoser Rob
Level 20
Level 20
Posts: 11609
Joined: Sat Dec 15, 2012 8:57 am

Re: Upgrading Thunar in Linux Mint 21.2

Post by Hoser Rob »

zajemexer wrote: Sun Nov 26, 2023 4:21 pm Thanks Pjotr, I also thought it was risky. However, I've now run the new version with no problems for about 3 weeks. v4.18.8 is marked as "stable".
3 weeks use by one user is not enough, sorry.

And 'stable' in Linux doesn't mean what many users think it does. All it means is that the feature set has been frozen. In no way does it mean it's actually usable in the real world. This is true of everything in Linux from app software to the kernel ... see https://www.kernel.org/category/releases.html ... and that's largely why business users all use LTS.
For every complex problem there is an answer that is clear, simple, and wrong - H. L. Mencken
Post Reply

Return to “Tutorials”