The value displayed is called by the function g_format_size_for_display of GLib. You have to edit the source code of nautilus to change this behaviour by just adding an %i to the output:
Step 1: Download source, install dependencies and open the file to edit
mkdir -p .p/nautilus && cd .p/nautilus
sudo apt-get build-dep nautilus
apt-get source nautilus && cd nautilus*
gedit src/file-manager/fm-properties-window.c
Step 2: Change the code
Now go to line 2338 (in Nautilus 2.30) and change with size %s
to with size %s (%i Bytes)
. Do the same for totalling %s
. Change it to totalling %s (%i Bytes)
It should now look like this:
text = g_strdup_printf (ngettext("%'d item, with size %s (%i Bytes)",
"%'d items, totalling %s (%i Bytes)",
Step 3: Compile
Now you can simply compile Nautilus like every other application
./configure --prefix=/usr
make
sudo make install
nautilus -q
Note that Nautilus will be overwritten whenever there will be an update to it through package management. This means you have to build and install it again manually.
There is also an alternative way by using an Nautilus script, but this would add another entry in the right click meny instead of having the value in the properties window.
If you want use the same sources from the installed version you must get it from the Ubuntu repository.
First, from the softwate center, software sources, you need to enable the "source code" sources.
Then you can use apt-get source
, to get the source, and dpkg-buildpackage
, to build the package.
Check the following link for details.
http://www.debian.org/doc/manuals/apt-howto/ch-sourcehandling.en.html
Best Answer
I never found any official entry for this in the GNOME documentation, but - as pointed out in my answer on installing Nautilus scripts - you can use the keycodes reported by
xev
for the most part.The only exceptions I found were the various modifier keys:
<Primary>
<Alt>
<Shift>
As for the different properties/actions controllable through the
accels
file: As far as I know the only actions supported are the ones already listed in the file by default (though commented out).