Page 1 of 1

HOWTO: Dirty Hack to Replace Nautilus With PCManFM

Posted: Tue Feb 01, 2011 4:40 pm
by axxer
first of all, this is a dirty hack to replace nautilus with pcmanfm. do this at ur own risk, i will not be responsible for any damages caused by this. again, DO THIS AT UR OWN RISK.

i always hate nautilus, its kinda slow and sluggish. so i use this hack to replace it with pcmanfm, the default, light filemanager used in lxde. inspired by a thread in ubuntuforum http://ubuntuforums.org/showthread.php?t=692238. credits goes to them :mrgreen:

1- first of all, we need to enable debian stable repo because we want to pull 1 package from it, which is pcmanfm-nohal 0.5-3, so edit ur sources.list:

Code: Select all

gedit /etc/apt/sources.list
2- add debian stable repo in it:

Code: Select all

deb http://ftp.us.debian.org/debian/ lenny main contrib non-free
3- update ur package index

Code: Select all

sudo apt-get update
4- install pcmanfm-nohal

Code: Select all

sudo apt-get install pcmanfm-nohal
5- backup these 3 files; nautilus.desktop, nautilus-computer.desktop and nautilus-folder-handler.desktop:

Code: Select all

sudo cp /usr/share/applications/nautilus.desktop /usr/share/applications/nautilus.desktop.backup && sudo cp /usr/share/applications/nautilus-computer.desktop /usr/share/applications/nautilus-computer.desktop.backup && sudo cp /usr/share/applications/nautilus-folder-handler.desktop /usr/share/applications/nautilus-folder-handler.desktop.backup
6- open nautilus.desktop with gedit:

Code: Select all

sudo gedit /usr/share/applications/nautilus.desktop
find line 102 and edit it until it looks like this:

Code: Select all

Exec=pcmanfm
and save it.

7- open nautilus-computer.desktop with gedit:

Code: Select all

sudo gedit /usr/share/applications/nautilus-computer.desktop
find line 178 and edit it until it looks like this:

Code: Select all

Exec=pcmanfm
and save it.

8- open nautilus-folder-handler.desktop with gedit:

Code: Select all

sudo gedit /usr/share/applications/nautilus-folder-handler.desktop
find line 86 and edit it until it looks like this:

Code: Select all

Exec=pcmanfm -d
and save it.

9- restart x with Ctrl+Alt+Backspace, u should automatically relogin back. at this point nautilus has been replaced by pcmanfm, but desktop management still doesn't work (all icon on desktop dissapeared, right-click on desktop wont work) so we need to enable desktop management in pcmanfm. open pcmanfm (it should be in menu) and choose Edit>Preference, move to Desktop tab, tick "Manage the desktop and show file icons". all ur icons on desktop should appear and right-click on desktop should work by now. done!!! :lol: :lol: :lol:

in case u wanna revert back to use nautilus as ur filemanager, just replace back 3 files that we backup earlier:

Code: Select all

sudo cp /usr/share/applications/nautilus.desktop.backup /usr/share/applications/nautilus.desktop && sudo cp /usr/share/applications/nautilus-computer.desktop.backup /usr/share/applications/nautilus-computer.desktop && sudo cp /usr/share/applications/nautilus-folder-handler.desktop.backup /usr/share/applications/nautilus-folder-handler.desktop
and hit Ctrl+Alt+Backspace. cheers :D :D :D

Re: HOWTO: Dirty Hack to Replace Nautilus With PCManFM

Posted: Tue Feb 01, 2011 6:14 pm
by axxer
btw worth to mention, that pcmanfm-nohal 0.5.3 is old, from 2008.. current is 0.9.8 in unstable repo (yes i use lmde with debian unstable repo, dont know which version is in testing/squeeze).

that version doesnt support trashcan because it doesn't implement gvfs yet by that time, so any file that u choose to delete using it doesn't go to trash, its deleted forever. basicly, ur system wont have trashcan like in nautilus if use that pcmanfm.

current version (0.9.8) does support gvfs, but i couldn't make it run smoothly like that old version. that old pcmanfm uses "-d" command to run its daemon (look at 8th step), and 0.9.8 uses "-desktop" (read here http://blog.lxde.org/?p=737), but when i use 0.9.8 with "-desktop" or "-d" command earlier, it doesn't work... pcmanfm will just pops out from nowhere when login, and theres no way to make it manage the desktop like the old pcmanfm does (theres no such option in its preference).

so if anyone can make this hack works with pcmanfm 0.9.8, that would be awesome

Re: HOWTO: Dirty Hack to Replace Nautilus With PCManFM

Posted: Wed Feb 02, 2011 5:08 pm
by martyq
I didn't follow all of the steps in the post since I wanted to keep Nautilus around for a little. To get around the desktop manager issue, I created a small shell script and added it to the Startup Applications so that it starts up once I login.

The script was simple with only two lines in it:

#!/bin/bash

pcmanfm -d --desktop

The -d, tell it to run as daemon and the --desktop option launches the desktop manager.

BTW: Version 0.9.7 is what's included with the Testing/Squeeze

Re: HOWTO: Dirty Hack to Replace Nautilus With PCManFM

Posted: Wed Aug 24, 2011 8:27 am
by ctrlbrk
martyq wrote:I didn't follow all of the steps in the post since I wanted to keep Nautilus around for a little. To get around the desktop manager issue, I created a small shell script and added it to the Startup Applications so that it starts up once I login.

The script was simple with only two lines in it:

#!/bin/bash

pcmanfm -d --desktop

The -d, tell it to run as daemon and the --desktop option launches the desktop manager.

BTW: Version 0.9.7 is what's included with the Testing/Squeeze
I am using 0.9.8 on LMDE x64, and when I did this I got the following error. I'd like to make pcmanfm the default, ideas?

Code: Select all

# pcmanfm -d --desktop
No protocol specified
Cannot open display: 
This was from an X session terminal.

Re: HOWTO: Dirty Hack to Replace Nautilus With PCManFM

Posted: Fri Aug 26, 2011 4:53 am
by ctrlbrk
ctrlbrk wrote:
martyq wrote:I didn't follow all of the steps in the post since I wanted to keep Nautilus around for a little. To get around the desktop manager issue, I created a small shell script and added it to the Startup Applications so that it starts up once I login.

The script was simple with only two lines in it:

#!/bin/bash

pcmanfm -d --desktop

The -d, tell it to run as daemon and the --desktop option launches the desktop manager.

BTW: Version 0.9.7 is what's included with the Testing/Squeeze
I am using 0.9.8 on LMDE x64, and when I did this I got the following error. I'd like to make pcmanfm the default, ideas?

Code: Select all

# pcmanfm -d --desktop
No protocol specified
Cannot open display: 
This was from an X session terminal.
This was due to running the terminal as root instead of the logged in user.

Re: HOWTO: Dirty Hack to Replace Nautilus With PCManFM

Posted: Sun Oct 09, 2011 6:53 am
by elvis_ef
axxer wrote:8- open nautilus-folder-handler.desktop with gedit:

Code: Select all

sudo gedit /usr/share/applications/nautilus-folder-handler.desktop
find line 86 and edit it until it looks like this:

Code: Select all

Exec=pcmanfm -d
and save it.
Im using Linux Mint Debian with 2.6.39-2-486 core and PCManFm v0.9.8:
1.a) -d is for daemon - works fine!
1.b) --desktop is for managing desktop icons and so on - works great!
2. the file "nautilus-folder-handler.desktop" should have only "pcmanfm" line.
3. the file "nautilus.desktop" file should have "pcmanfm -d --desktop" line for getting work.

This is my configuration and works fine, after a few tests and working around..
Please let me know if this work..

PS.But still when I want to run (by ALT+F2 key combination) for exapmple this: "/", nautilus shows up...