I've recently came back to Ubuntu from Kubuntu, but I really like Dolphin. Is there any way how to set it up as default file manager?
5 Answers
To view the current default for opening directories:
xdg-mime query default inode/directory
To set Dolphin as default:
xdg-mime default org.kde.dolphin.desktop inode/directory
To set Thunar as default:
xdg-mime default thunar.desktop inode/directory
Run either on the terminal as regular user. If you want to set the default to another file manager, install the file manager, and find the correct .desktop file by searching in /usr/applications/ on the command-line.
Related files:
/usr/share/applications/defaults.listsystem-wide defaults$HOME/.local/share/applications/mimeapps.list$HOME/.config/mimeapps.listwherexdg-mimesaves configuration
Sources:
-
this actually works if you are using synapse. The solution should be a combination of all the above answers. – Avinash R Feb 25 '14 at 12:16
-
1Thank you, this is exactly what I was looking for. Also, if you want to set PCManFM, the file name is all lowercase, `pcmanfm.desktop`. – Aaron Franke Dec 15 '16 at 06:28
-
Is this still valid for 16.04? Didnt seem to work for me. – M. Becerra Feb 02 '17 at 19:45
-
This works for me with Ubuntu 16.04 and seems to be the easier solution. – Kubuntuer82 Jun 14 '18 at 10:23
-
Perfect. It is a better solution than the selected as answer because you dont have to install any other program – Joshua Salazar Sep 17 '18 at 14:38
-
still xdg-open uses the default file manager of Ubuntu to open a directory for me (instead of using Dolphin) – aderchox Jul 19 '20 at 08:01
Steps:
Open a terminal, e.g. using Ctrl+Alt+T
Install
exo-utilsby running the following command in the terminal:sudo apt-get install exo-utilsRun the following command in the terminal:
exo-preferred-applicationsIn the window that opens, click on Utilities
On the File Manager section, click the drop-down menu arrow + Other...
Find
/usr/share/applicationsdirectoryAdjust to show all files and select
dolphin.desktop(wherever you find it)Click close
- 221
- 3
- 11
- 378
- 4
- 2
-
5
-
3
-
2
-
8Not working: exo-preferred-applications /usr/bin/exo-preferred-applications: 11: exec: /usr/lib/x86_64-linux-gnu/xfce4/exo-1/exo-helper-1: not found – tribbloid Aug 30 '17 at 18:28
-
1@tribbloid -- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892010 -- At step 2, use `sudo apt install libexo-1-0 exo-utils` – loxaxs Apr 14 '18 at 16:23
-
4
-
2
Adding to Rucent88 answer:
For me the dolphin desktop file was stored in /usr/share/applications/org.kde.dolphin.desktop. So
xdg-mime default org.kde.dolphin.desktop inode/directory
did the trick.
Keep in mind to have a look where the desktop link is located. Have a look at the file list of your installed file manager to see how the desktop link is called if you can't find it.
- 171
- 1
- 2
also it works only with:
xdg-mime default dolphin.desktop inode/directory application/x-gnome-saved-search
From: http://www.fandigital.com/2013/01/set-nemo-default-file-manager-ubuntu.html
- 723
- 5
- 13
In My, Ubuntu 20.04.2 LTS below solution worked. Not sure, is there are any consequences for this approach.
In file /usr/share/applications/defaults.list modified entry inode/directory=org.gnome.Nautilus.desktop to inode/directory=org.kde.dolphin.desktop
- 155
- 8