Xfce Forum

Sub domains

You are not logged in.

#1 2018-07-16 08:05:12

Registered: 2016-09-18
Posts: 45

Sorting files and folders with underscore at the beginning


thunar normally ignored underscores at the beginning of file names or folder names, just like other file managers. but sometimes this behaviour can be changed by starting thw FM with

LC_COLLATE=C filemanager

But this doesn work with thunar. how can i use this sorting with thunar. is there an other way to change the behaviour?



#2 2018-07-16 11:04:22

From: Canada
Registered: 2011-06-02
Posts: 5,115

Re: Sorting files and folders with underscore at the beginning

Make sure that thunar's daemon isn't running - any new thunar instance will inherit the environment variables from this daemon. The LC_COLLATE=C trick should then work.

Bigger picture, you'll need to start "Thunar --daemon" with LC_COLLATE. A simple way to do this is to create the file /usr/local/bin/Thunar with the following content:

LC_COLLATE=C /usr/bin/Thunar "$@" &

...and make the file executable.

Then stop the daemon:

thunar -q

...and restart it:

Thunar --daemon

...and you should be good to go.


Board footer

Powered by FluxBB