Are you experiencing the frustrating issue of your "Places" menu in Ubuntu launching the Disk Usage Analyzer (Baobab) instead of the file manager? This can be a common problem, especially after upgrading your Ubuntu version or tweaking system settings. This article provides several solutions to restore the correct behavior, ensuring your folders open as expected.
The root cause of this problem lies in incorrect file associations. Ubuntu uses MIME types to determine which application should open a particular file or directory type. When the association for "inode/directory" is incorrectly linked to the Disk Usage Analyzer, it overrides the default file manager behavior.
Here are several approaches to fix this issue. Try them in order, as some solutions are more direct and might resolve the problem quickly.
This solution is particularly effective for users running the gnome-session-fallback
desktop environment. It directly sets the default application for directories.
Open a terminal.
Run the following command:
xdg-mime default nautilus.desktop inode/directory
This command explicitly tells the system to use Nautilus (the default GNOME file manager) for opening directories.
The command xdg-mime default <file_manager>.desktop inode/directory
works by setting the application to handle the opening of directories. It associates the inode/directory
MIME type with nautilus.desktop
, which is the configuration file for the Nautilus file manager. This tells the system to use Nautilus to open folders by default, correcting the issue where the Disk Usage Analyzer was being launched instead
.
This method involves modifying the Disk Usage Analyzer's desktop entry file to prevent it from claiming the "inode/directory" MIME type.
Open a terminal.
Open the baobab.desktop
file with root privileges using your preferred text editor. For example:
sudo nano /usr/share/applications/baobab.desktop
Locate the line that starts with MimeType=
.
Remove inode/directory;
from the list. The line should no longer include this entry.
Save the file and exit the text editor.
Update the desktop database:
sudo update-desktop-database -q
This removes the Disk Usage Analyzer's association with directory handling.
If Nautilus, the default file manager, is responsible, the solution might be to reconfigure the said file manager via:
Open a terminal.
Excute the command:
sudo dpkg-reconfigure nautilus
If you are running Kubuntu with KDE Plasma desktop, the File Associations settings can be easily configured to override the "inode/directory" associated application.
sudo
to obtain root privileges. Incorrect permissions can prevent your changes from taking effect.sudo
. This allows you to easily revert to the original state if something goes wrong.By systematically applying these solutions, you should be able to resolve the issue of "Places" opening in the Disk Usage Analyzer in Ubuntu. Identifying the underlying cause, whether it's a MIME type association problem or a desktop environment configuration, is key to implementing the correct fix.