Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-08-28 16:58:31

Pizio
Member
Registered: 2017-03-30
Posts: 18

Modify Thunar date

Hi there, I appreciate if there is a way to modify the date in thunar like this: day/month/year
I have seen there there are only these possibilities:
THUNAR_DATE_STYLE_SIMPLE (e.g. "Today")
THUNAR_DATE_STYLE_SHORT (e.g. "Today at 07:04:22 AM")
THUNAR_DATE_STYLE_LONG (e.g. "Fri 05 Dec 2014 07:04:22 AM CST")
THUNAR_DATE_STYLE_ISO (e.g. "2014-12-05 07:04:22")

Thanks

Offline

#2 2017-09-01 14:23:16

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 3,749

Re: Modify Thunar date

Thunar doesn't have that level of customization, but you can use another locale's LC_TIME setting (for example pt_PT.UTF-8) that displays time in the dd-mm-yyyy format. To do so, start thunar via:

LC_TIME=pt_PT.UTF-8 thunar

Make sure that you have the correct locale configured for use and that the Thunar daemon isn't running when you test.

You can make this permanent by changing the thunar.desktop file so that the "Exec=" line reads:

Exec=env LC_TIME=pt_PT.UTF-8 thunar

How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#3 2017-09-03 08:51:18

Pizio
Member
Registered: 2017-03-30
Posts: 18

Re: Modify Thunar date

Well, my locale are:

LANG=it_IT.UTF-8
LANGUAGE=it
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE="it_IT.UTF-8"
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=
 dpkg -l locales
Voluto=U (non noto)/I (installato)/R (rimosso)/P (rimosso totale)/H (in attesa)
| Stato=Non/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(nessuno)/R (reinstallazione richiesta) (Stato,Err: maiuscolo=grave)
||/ Nome                                                  Versione                        Architettura                    Descrizione
+++-=====================================================-===============================-===============================-================================================================================================================
ii  locales                                               2.23-0ubuntu9                   all                             GNU C Library: National Language (locale) data [support]

Last edited by Pizio (2017-09-03 09:03:56)

Offline

#4 2017-09-03 22:24:48

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 3,749

Re: Modify Thunar date

Try this:

1. First kill any existing thunar processes:

thunar -q

2. Try running thunar like this from the terminal window:

LC_TIME=it_IT.UTF-8 thunar

Does it make the time/date display like you are expecting?


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#5 2017-09-03 23:28:41

Pizio
Member
Registered: 2017-03-30
Posts: 18

Re: Modify Thunar date

No, the date is always as I wrote above years/month/day and not dd/mm/yyyy.

Offline

#6 2017-09-04 01:32:00

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 3,749

Re: Modify Thunar date

On my Xubuntu 17.04 system:

$ locale

LANG=en_CA.UTF-8
LANGUAGE=en_CA:en
LC_CTYPE="en_CA.UTF-8"
LC_NUMERIC="en_CA.UTF-8"
LC_TIME="en_CA.UTF-8"
LC_COLLATE="en_CA.UTF-8"
LC_MONETARY="en_CA.UTF-8"
LC_MESSAGES="en_CA.UTF-8"
LC_PAPER="en_CA.UTF-8"
LC_NAME="en_CA.UTF-8"
LC_ADDRESS="en_CA.UTF-8"
LC_TELEPHONE="en_CA.UTF-8"
LC_MEASUREMENT="en_CA.UTF-8"
LC_IDENTIFICATION="en_CA.UTF-8"
LC_ALL=

$ cat /etc/locale.gen  | grep -v ^#

en_CA.UTF-8 UTF-8
en_US.UTF-8 UTF-8
it_IT.UTF-8 UTF-8
pt_BR.UTF-8 UTF-8
pt_PT.UTF-8 UTF-8

Thunar via the default (en_US.UTF-8) - date in YYYY-MM-DD format:
thunaren.png

Thunar run via "LC_TIME=it_IT.UTF-8 thunar" - date in DD/MM/YYYY:
thunarit.png

I used "sudo dpkg-reconfigure locales" to add the non-English locales.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#7 2017-09-04 07:54:50

Pizio
Member
Registered: 2017-03-30
Posts: 18

Re: Modify Thunar date

Well, redoing the same command "LC_TIME=it_IT.UTF-8 thunar" I note after this command  thunar opens file manager with any changes.
But I note also that the second image you have posted is the image obtained changing settings in preference day in Thunar (THUNAR_DATE_STYLE_SHORT). I would like to see the dates showed in this way dd/mm/yyyy and not "today/yesterday.

Offline

#8 2017-09-04 11:01:15

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 3,749

Re: Modify Thunar date

Then I believe you will need to create an enhancement request over at bugzilla.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

Board footer

Powered by FluxBB