天天看點

HOWTO: Replace Nautilus with PCMan (4 Steps, No Fuss).

1. 

Install pcmanfm from the package manager.

Quote:

Applications > System Tools > PCMan File Manager

2. 

If you find that you like PCMan and want to have "Places" use it instead of nautilus do the following: 

Start the PCMan File Manager and go to:

/usr/share/applications

In PCMan "Open Current Folder as root"

Tools > Open Current Folder as root.

3. 

Make a backup copy of the files below (copy and paste and add "_bak" on the end of the file name.

/usr/share/applications/nautilus-computer.desktop 

/usr/share/applications/nautilus-folder-handler.desktop

4. 

Change the line in each with starts with Exec= 

e.g

For nautilus-computer.desktop: Exec=pcmanfm / 

For nautilus-folder-handler.desktop: Exec=pcmanfm %U

Done 

HOWTO: Replace Nautilus with PCMan (4 Steps, No Fuss).

o completly replace nautilus follow this steps, they all are reversable and not harmful at all, as long as you make the backups. 

First we need to backup some files

sudo cp /usr/share/applications/nautilus.desktop /usr/share/applications/nautilus.desktop.backup 

sudo cp /usr/share/applications/nautilus-folder-handler.desktop /usr/share/applications/nautilus-folder-handler.desktop.backup

Then open these files

sudo gedit /usr/share/applications/nautilus-folder-handler.desktop 

sudo gedit /usr/share/applications/nautilus.desktop

and replace every nautilus word with pcmanfm (delete the arguments after the word pcmanfm since some are not supported) 

And save 

And these changes are for gnome session manager(so ubuntu stops trying to load nautilus) 

Backup this file

sudo cp /usr/share/gnome/default.session /usr/share/gnome/default.session.backup

Then we need to delete a few lines an change some numbers

sudo gedit /usr/share/gnome/default.session

Then open it and delete the lines that have at the beggining the same number as the nautilus line 

something like this:

<b>2</b>,id=default2 

<b>2</b>,Priority=40 

<b>2</b>,RestartCommand=nautilus --no-default-window --sm-client-id default2

Then rename the other lines so the numbers dont jump from 1 to 3. 

And from the line

num_clients=X

Change the number to the new number of process you just changed. 

If you don't understand i added my file to this post as an attachment so you can compare. 

And the most important step to kill nautilis you need to do this :

sudo cp /usr/bin/nautilus /usr/bin/nautilus.backup 

sudo rm /usr/bin/nautilus 

sudo ln -s /usr/bin/pcmanfm /usr/bin/nautilus

Finally, you need to open a PCMan window and go to edit, preferences, desktop, to configure the desktop. 

And dont forget to restart the session doing ctrl+alt+backspace 

Doing this ubuntu wont ever load nautilus, saving the precious ram and reducing boot time. 

I wish you could just uninstall it, but the package is tied to many other important packages.

本文轉自孤舟夜航之家部落格51CTO部落格,原文連結http://blog.51cto.com/cysky/560033如需轉載請自行聯系原作者

cysky

繼續閱讀