It sounds like your system has Lapce set as the default application for opening directories. To fix this and set Nautilus (Gnome Files) as the default, follow these steps:
Method 1: Using xdg-mime
- Open a terminal.
- Run the following command to check the current default application for opening directories:If it shows something like
xdg-mime query default inode/directorylapce.desktop, that means Lapce is set as the default. - Set Nautilus (Gnome Files) as the default by running:
xdg-mime default org.gnome.Nautilus.desktop inode/directory - Verify the change:It should now show
xdg-mime query default inode/directoryorg.gnome.Nautilus.desktop.
Method 2: Using mimeapps.list
- Open the file that stores your default applications:
nano ~/.config/mimeapps.list - Look for a line starting with:
If it exists and is set toinode/directory=lapce.desktop, change it to:
If the line doesn’t exist, add it under theinode/directory=org.gnome.Nautilus.desktop[Default Applications]section. - Save and exit (in Nano: press
CTRL+X, thenY, thenEnter). - Apply the changes:
update-desktop-database ~/.local/share/applications
Method 3: Using gnome-default-applications-properties (GNOME Settings)
- Open GNOME Settings.
- Navigate to Default Applications.
- Look for a setting related to File Manager (it may be missing on some distros).
- If it’s available, set it to Nautilus (Files).
After applying these steps, when you open a directory from another program, it should launch in Nautilus instead of Lapce. 🚀