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:

Quote:

/usr/share/applications

In PCMan "Open Current Folder as root"

Quote:

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.

Quote:

/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

Quote:

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

Done 

 

 

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

Quote:

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

Quote:

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

Quote:

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

Quote:

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:

Quote:

2,id=default2 
2,Priority=40 
2,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

Quote:

num_clients=X

Change the number to the new number of process you just changed. 
And save 
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 :

Quote:

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 editpreferences, 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

相关文章
|
Ubuntu
Ubuntu :relocation R_X86_64_32 against `.rodata‘ can not be used when making a PIE object;
Ubuntu :relocation R_X86_64_32 against `.rodata‘ can not be used when making a PIE object;
3127 0
Ubuntu :relocation R_X86_64_32 against `.rodata‘ can not be used when making a PIE object;
2071 verbose node v16.6.0 2072 verbose npm v7.19.1或者 no such file or directory, lstat ‘D:\wor
该博客文章提供了解决在使用npm版本7.19.1时出现的"no such file or directory"错误的具体方法,建议通过降级npm到6.14.8版本来解决问题,并确认了该方法可以成功安装node_modules。
2071 verbose node v16.6.0 2072 verbose npm v7.19.1或者 no such file or directory, lstat ‘D:\wor
|
8月前
|
存储 开发工具 git
【SourceTree】Your local changes to the following files would be overwritten by merge【解决办法】
【SourceTree】Your local changes to the following files would be overwritten by merge【解决办法】
成功解决Failed to execute stage ‘Setup validation’: Cannot locate gluster packages
成功解决Failed to execute stage ‘Setup validation’: Cannot locate gluster packages
Autodesk软件 You need to apply when licence screen appears 错误解决方案
Autodesk软件 You need to apply when licence screen appears 错误解决方案
【hacker的错误集】DeprecationWarning: find_element_by_* commands are deprecated.
DeprecationWarning: find_element_by_* commands are deprecated. Please use find_element() instead。依旧是使用单词意思分析报错原因
157 0
【hacker的错误集】DeprecationWarning: find_element_by_* commands are deprecated.
|
开发工具 git
报错解决:your local changes to the following files would be overwritten by merge: .idea/workspa
报错解决:your local changes to the following files would be overwritten by merge: .idea/workspa
482 0
报错解决:your local changes to the following files would be overwritten by merge: .idea/workspa
The 2015 Concise List of Hacker Tools and videos
https://www.concise-courses.com/hacking-tools/?inf_contact_key=0650a9cf7774b3b3fb3099a578c49a0...
624 0

热门文章

最新文章