PuppyThis forum is for the discussion of Puppy Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It seems that this cannot be done, either in the application and in the configuration files. In fact Thunar's date styles are hard-wired in the C code, in the file named 'thunar-util.c', so one has to modify it and rebuild the application. But this can be done easily. The four date styles are called:
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")
The simplest way, apparently, is to modify either the 'ISO' or the 'LONG' style, since they are one-liners which do not involve conditional constructs. For example, if you want a date like '12/05/2014' you can do the following change to 'ISO' (which of course will not be ISO anymore) in 'thunar-util.c':
Code:
{
/* Use ISO date formatting */
- return exo_strdup_strftime ("%Y-%m-%d %H:%M:%S", tfile)
+ return exo_strdup_strftime ("%m/%d/%Y", tfile)
}
The modified line is 329 in Thunar 1.6.3. I wanted to have a format like "Dec 05 2014" instead (see image below), so I used "%b %m %Y". If you want to get rid of the "Today etc." thing completely, then you might want to modify the code for SIMPLE and/or SHORT by editing / commenting out the related conditional constructs (which are needed to choose between 'Today', 'Yesterday', 'Monday', etc.). Then rebuild (that's quick, even on a 10 years old machine) and reinstall. You might need to log out from Xfce for the changes to be enabled.
Last edited by Philip Lacroix; 12-04-2014 at 07:41 PM.
You have to replace the first line with the second, and omit the '+' and '-', as they are only intended to show which line has to be replaced with the other.
Code:
{
/* Use ISO date formatting */
return exo_strdup_strftime ("%m/%d/%Y", tfile)
}
Quote:
Originally Posted by Fixit7
I need some more info. Like what compiler do I use etc.
You would essentially follow the "configure && make && make install" pattern. However, the default configuration will put everything in /usr/local and might not work on your system; libraries might not be found, etc. Therefore you should check how your system is configured, and how the original Thunar package was built, and which configuration flags were used.
That having been said, here is a disclaimer: these steps are not that difficult, but they involve doing things as root, which in turn can result in breaking the system badly and/or losing your data. For these reasons you should try this only if you are familiar with your system and with the command line, thus knowing what you are doing. I'm not familiar with Puppy Linux myself, and I don't know how Thunar is deployed there, so I guess that it's up to you to document yourself in order to get it right: that's how Linux works.
Last edited by Philip Lacroix; 12-05-2014 at 12:23 PM.
Reason: typo
For an example of configure options for Thunar 1.6.3, below are the ones used on a 64 bit Slackware system (the backslashes tell the shell that the command continues on the following line). As you can see, nothing will go in '/usr/local', as on Slackware this directory is not used by default:
The best way to install, uninstall and upgrade software is probably by using packages that are compatible with your distribution. For this reason, I suggest that you learn how to package the software you build for Puppy Linux. I guess that this article by Barry Kauler himself is the best source:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.