You can get back the full date by recompiling nautilus:
sudo apt-get build-dep nautilus
sudo apt-get install quilt
export QUILT_PATCHES=debian/patches
apt-get source nautilus
cd nautilus*
quilt new 999_full_dates.patch
quilt edit libnautilus-private/nautilus-column-utilities.c
Change line 77 from
"attribute", "date_modified",
to
"attribute", "date_modified_full",
Rebuild and install modified package:
quilt refresh
fakeroot dpkg-buildpackage
cd ..
killall nautilus
sudo dpkg -i nautilus_*.deb
nautilus &
As always, you have to perform these steps every time there is an update for nautilus in Ubuntu.
Now, a full analysis of the problem:
The actual patch which caused this change is this one.
The function nautilus_file_get_date_as_string
gains an extra gboolean parameter "compact" - when true the abbreviated date is returned.
This function is never called directly - it is accessed through the wrapper function nautilus_file_get_string_attribute_q
. This function takes attribute parameters like "date_modified". To accommodate the new signature of nautilus_file_get_date_as_string
a new attribute is added "date_modified_full
". After this change, any code in nautilus which uses the file date string will get the abbreviated date.
Finally, the file properties dialog is updated to use "date_modified_full" attribute.
So in order to have nautilus display the full date in list view, it is only necessary to change one line of code: in libnautilus-private/nautilus-column-utilities.c, line 77 from "date_modified" to "date_modified_full".
A slightly more useful patch could add a new column type which would show the full date, making this an optional feature, and only add 10 lines of code.
In order to achieve that.. you should edit the Nautilus source code and the nautilus.desktop
file or using another file manager that allows this, such as nemo.
NOTE: In this example I'm running ubuntu 13.04 with nautilus (files) 3.6.3.
You can test this in a virtual machine to see if everything is OK.
1) Make sure you have enable the Source code repository
- Open the Ubuntu Software Center
- In the Menu Bar choose Edit -> Software Sources. Click to enable "Source code repository".
Just in case I use the "Main Server" to Download.
Open a Terminal Window to update the repositories.
2) In the Terminal type the following to install the necessary packages.
sudo apt-get install build-essential quilt
3) Install build dependencies.
sudo apt-get build-dep nautilus
4) Create a folder to download the source code.
mkdir ~/Downloads/src
cd ~/Downloads/src
5) Download the source code & Export variables.
6) Create the patch and edit the source code.
Custom Trash: To change the name of the Trash.You can change the strings in the lines 567 and 569.
eg: "Trash" to "Custom Trash" & "Open the trash" to "Open the Custom Trash"
Add Folder: In this example I will add the "Test" folder in my home directory /home/virtual/Test. (change the folder according to your needs)
After the line number 562 add the following:
/* add Test directory */
mount_uri = "file:///home/virtual/Test";
icon = g_themed_icon_new (NAUTILUS_ICON_FOLDER);
add_place (sidebar, PLACES_BUILT_IN,
SECTION_COMPUTER,
_("Test"), icon, mount_uri,
NULL, NULL, NULL, 0,
_("Open Test folder"));
g_object_unref (icon);
Remove Recent Files: To remove the Recent Files from the places... delete the lines from 525 to 534.
Save the changes.
7) Build the deb packages.
quilt refresh
fakeroot dpkg-buildpackage
8) Install the deb packages.
9) For system-wide..edit the nautilus.desktop file to add the folder eg:(/home/virtual/Test) in the quick list.
sudo nano /usr/share/applications/nautilus.desktop
Change:
Actions=Window;
To:
Actions=Test;Window;
Add:
[Desktop Action Test]
Name=Test
Exec=nautilus --new-window /home/virtual/Test
OnlyShowIn=Unity;
Before:
After:
10) Finally you can logout and Login to see the changes.
RESULT:
Hope this helps.
Best Answer
The bookmarks will be at nautilus
You can edit this file to change your bookmarks.
This also work in Ubuntu 13.04, with Nautilus 3.6.3 .
If in doubt, use
nautilus --version
to see which version you have.