Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Nautilus use to have the label for the file system in it's tree as "File System". Recently that was changed to now show "Computer" in the tree to open the file system. Regardless of why this change was made, how do I change it back?

enter image description here

share|improve this question
add comment

2 Answers

up vote 6 down vote accepted

As far as I know... to change this label you should edit the nautilus Source Code.

NOTE: In this example I'm running Ubuntu 13.04 with nautilus (Files) 3.6.3

1) Make sure you have enable the Source code repository

  • Open the Ubuntu Software Center and in the Menu Bar choose Edit -> Software Sources.
    Click to enable "Source code repository".

Just in case I use the "Main Server" to Download.

enter image description here

2) Open a Terminal and install the necessary packages.

  • sudo apt-get install build-essential

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.

  • apt-get source nautilus

6) Edit the file "nautilus-places-sidebar.c"

Search for the line 3261 to edit.

enter image description here

Replace "Computer" for "File System".

To edit:

  • gedit nautilus-3.6.3/src/nautilus-places-sidebar.c

BEFORE:

sidebar->hostname = g_strdup (_("Computer"));

AFTER:

sidebar->hostname = g_strdup (_("File System"));

In one command would be:

  • sed -i '3261s/Computer/File\ System/' ~/Downloads/src/nautilus-3.6.3/src/nautilus-places-sidebar.c

7) Go to the "nautilus-3.6.3" folder to build the deb packages.

  • cd nautilus-3.6.3/

  • dpkg-buildpackage -rfakeroot -uc -b

8) Now you can install the deb packages.

  • cd ..

  • sudo dpkg -i *deb

9) Finally you can logout and Login to see the changes.

BEFORE:

enter image description here

AFTER:

enter image description here

Hope it helps.

share|improve this answer
    
debian builds of nautilus use a source format of 3.0 (quilt) so after making any changes to the source they should be committed before using dpkg-buildpackage. As in dpkg-source --commit, ect. –  doug Sep 13 '13 at 1:33
add comment

You'd need to get the raring nautilus source, edit /src/nautilus-places-sidebar.c & rebuild. Preferable to rebuild as debian packages.

The edit would be something like this, -

--- nautilus-3.6.3.orig/src/nautilus-places-sidebar.c
+++ nautilus-3.6.3/src/nautilus-places-sidebar.c
@@ -3258,7 +3258,7 @@ nautilus_places_sidebar_init (NautilusPl
              G_CALLBACK(desktop_setting_changed_callback),
              sidebar);

-   sidebar->hostname = g_strdup (_("Computer"));
+   sidebar->hostname = g_strdup (_("File System"));
g_dbus_proxy_new_for_bus (G_BUS_TYPE_SYSTEM,
              G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES,
              NULL,
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.