There are a few things you could try. However, no method of fixing anything is garunteed to work, no matter what you are fixing or how you are fixing it.
Try reinstalling it.
To reinstall it, open a terminal, and run the following command:
sudo apt-get install --reinstall thunar
Free up some disk space.
The first time thunar runs, it has to look through all the directories on your system (the main ones at least) and remember 'sort-of' what's in there, so it doesn't take
as long to open when you decide to browse the filesystem.
Note: This probably won't make much of a difference in thunar, but will help your overall system performance, which in turn helps thunar:
Run the following commands:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -f
sudo apt-get autoclean # This is one of the main ones we are needing for increased performance
sudo apt-get autoremove # This is also a main one... The others just make sure everything is good and updated
Rebuild Thunar from source:
Building an application from source means that it is build specifically for YOUR computer. No extra crap from other architectures.
First, make sure you have "apt-build" installed:
During the installation, apt-build will ask you for configuration options. Use the following options:
sudo apt-get update
sudo apt-get install apt-build
- Directory used by apt-build to download and build packages: /var/cache/apt-build/build
- Directory used to store packages built by apt-build: /var/cache/apt-build/repository
- Add apt-build repository to sources.list? YES
- Optimization Level: Medium (strong produces unstable code)
- Options to add to gcc: [DON'T ADD ANYTHING HERE]
- Options to add to make: See the next section, labeled "make options"
- Architecture: Select your processor
Find out how many cores your processor has. Let's pretend I have 2 cores.
Add 1 to the number of cores you have. For example, 2 + 1 = 3
In the section labeled "Options to add to make", I would use "-j3" (without quotation marks)
If you have 1 core, use -j2
If you have 4 cores use -j5
You should get it by now...
Now the screen will close, and everything is back to normal.
We need to build thunar, so issue the following commands:
sudo apt-build update
sudo apt-build install thunar thuna-data thunar-archive-plugin
sudo apt-build clean-build
sudo apt-build clean-repository
sudo apt-build clean-sources