Whatever the defualt file manager is constantly crashes under heavy load forcing me to either reboot. I’ve tried using exo tools but not only is dolphin not an option, but i get the following error every time I try to change something
Gtk-Message: 19:49:59.627: GtkDialog mapped without a transient parent. This is discouraged. (exo-helper-1:4774): Gdk-CRITICAL **: 19:50:03.261: gdk_window_get_window_type: assertion 'GDK_IS_WINDOW (window)' failed
I’ve also tried the following terminal commands (seperately)
xdg-mime default kde4/dolphin.desktop inode/directory
xdg-mime default org.kde.dolphin.desktop inode/directory
xdg-mime default dolphin.desktop inode/directory application/x-gnome-saved-search
i’ve also tried following these instructions to no avail both using gedit and the editor adapting it for dolphin’s desktop file “org.kde.dolphin.desktop” I’m pretty much stumped at this point.
his is the recommended method because it doesn’t mess around with the files that were installed by your package manager. Also, if it is a shared computer (eg. family, library or lab computer) then this method is your only option.
Default system settings in Ubuntu are overridden by settings in hidden files in a user’s home directory (~), if you want to change settings, this is the place to do it. The files in ~/.local/share/applications override the files in /usr/share/applications (mentioned above in MIME Types). If the directory does not exist, create it. To change the default File Manager you’ll have to edit the file defaults.list (or mimeapps.list) found in this directory but first we have to find the right .desktop file for the program you want to use.
getting the right .desktop file You have read-access to /usr/share/applications so navigate to that directory and search through the .desktop files to find the one for your desired File Manager, for example the one for Xfe is xfe.desktop.
To search for files in Nautilus start typing the name of the file. To search for files from the command line you can list the contents of the directory and search the output for the name of the file:
ls /usr/share/applications | grep xfe
If you find it you can move on to the next step, otherwise, if it doesn’t exist we’ll have to create one. As far as I know there is no .desktop file for Thunar so we’ll make one for that. Navigate to ~/.local/share/applications, make a file thunar.desktop and write the following in it
[Desktop Entry] Name=Open Folder TryExec=thunar Exec=thunar %U NoDisplay=true Terminal=false Icon=folder-open StartupNotify=true Type=Application MimeType=x-directory/gnome-default-handler;x-directory/normal;inode/directory;application/x-gnome-saved-search;
There are lots of other things you can add if you want to but this should be enough. If you’re making a file for another file manager replace the command thunar at Exec and TryExec to the command for your file manager and name it whateverfilemaneger.desktop.
Just to remind you one last time this file is in sub-directory of your home directory (~), not somewhere in /usr!
editing the defaults.list or mimeapps.list file If you’re not in the directory ~/.local/share/applications then navigate to it now and edit the defaults.list file. You can double-click it in Nautilus to open it with Gedit or from the commandline:
editor defaults.list It shouldn’t contain much because it’s only for the MIME Types which you’re overriding. Add the following 2 lines to the file:
Replace thunar.desktop with whateverfilemaneger.desktop according to the file you found/created in the previous step.
And that should take care of it. No need to reboot, changes should take effect immediately!