Xfce Forum

Sub domains
 

You are not logged in.

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

Friedrich
Member
Registered: 2016-09-18
Posts: 140

Sorting files and folders with underscore at the beginning

Hi,

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?

Friedrich

Offline

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

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

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:

#!/bin/bash
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.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 534.3 KiB (Peak: 544.08 KiB) ]