LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Change of default File Manager? (https://www.linuxquestions.org/questions/linux-software-2/change-of-default-file-manager-700122/)

LAN-Dominator.nl 01-27-2009 12:55 AM

Change of default File Manager?
 
I found the solution, for using Thunar instead of Nautilus
READ POST 5
----------------------------------------------------------

Is there a possibility to make a change of default File Manager?

Locally i'm using Ubuntu 8.10 with as default fm Nautilus, but i rather use Dolphin instead.

If this could be done by system change, could it also be done like in (Open)Suse and Mandrake?

I thought it could also be done in Solaris, but that's unix, not linux ^^


Thanks for your comments on this.

mrcheeks 01-27-2009 06:55 PM

The file manager is an integral part of the desktop you're using. I don't think that what you ask is possible. If you prefer Dolphin, you should probably use KDE if you're using a desktop instead of a window manager only. Solaris also has gnome which is now the default desktop if I recall, and it behaves the same as in Linux.

LAN-Dominator.nl 05-01-2009 04:07 AM

Thnx i'll stay with nautilus as it is :)

tredegar 05-01-2009 12:15 PM

If you use KDE as your desktop (and I'm referring to KDE 3.x.y, not 4 - I'm not using KDE4 yet) then it is very easy to set up different file managers to be the default:

Launch kcontrol from a terminal (as not all distros offer it from the menus)

click KDE Components -> file Associations
Click on inode
Click on Directory

Now choose whichever application you wish to open Directories with.
I prefer konqueror first in the list, but you can always put dolphin or nautilus or whatever.

If the first application isn't present on your system, it'll try the next in the list.

I am a bit surprised that gnome doesn't also offer this functionality.

LAN-Dominator.nl 06-07-2009 03:43 PM

[SOLVED] Change of default File Manager in Gnome
 
I found the perfect way to change the Default File Manager under Ubuntu (gnome)..

From Nautilus to Thunar

1. Backup the official Nautilus file
Code:

sudo mv /usr/bin/nautilus /usr/bin/nautilus.real
2. Now make the new Nautilus file
Code:

sudo gedit /usr/bin/nautilus
3. place this code and save it
Code:

#!/bin/bash

#zenity --info --text="${1}/${@}" #DEBUG
if [ -n "${1}" ]; then
    if [ "${1:0:1}" == "/" ]; then
        thunar "${1}"
    elif [ "${1}" == "--no-desktop" ]; then
        if [ -n "${2}" ]; then
            if [ "${2:0:7}" == "file://" ] || [ "${2:0:1}" == "/" ]; then
                thunar "${2}"
            else
                nautilus.real "${2}"
            fi
        else
            thunar


        fi
    else
        nautilus.real "${@}"
    fi
else
    thunar
fi

4. Make sure that you own the file
Code:

sudo chmod 755 /usr/bin/nautilus
Done!

*ps. Thunar doesn't support gnome-vfs filesystem, like smb:// webdav:// ssh:// computer:///, and will be shown in nautilus by default, as the script tells it!


All times are GMT -5. The time now is 12:20 PM.