Site folder opens in Sublime Text instead of File Manager

When attempting to open the site folder in the local environment using the file manager, the folder is incorrectly opened in Sublime Text editor instead of the default file manager. Ideally, clicking on the folder should open it in the system’s File Manager (e.g., Nautilus or Files) to allow normal browsing of files and directories.

The expected behavior is that double-clicking or selecting “Open” on a folder should open it in the file manager, not in an external editor.

Local Version 9.2.9+6887
Platform - Ubuntu 24.04.3 LTS

Welcome to Local and thanks for this report, @web_imr!

the folder is incorrectly opened in Sublime Text editor instead of the default file manager

Could you have accidentally set Sublime Text to handle directories in your Default Application settings or other mimetype associations?

Local just calls Electron’s shell.openPath when you click “Site folder”, so it should just launch whatever application you’ve set to handle inode/directory filetypes. When I test Local on Ubuntu, it just opens the file explorer, for example.

Could you please let me know how I can make this change? I’d really appreciate any suggestions or guidance you can share — it would be a great help.

You could check Settings → Default Applications to see if “Folders” or anything else is assigned to Sublime Text there.

If you don’t see Sublime Text there, you could also look through config files in the link I provided to mimetype associations before, for example at ~/.local/share/applications/mimeapps.list.

https://unix.stackexchange.com/questions/417829/are-there-mimetype-to-application-association-files-other-than-those-in-this-lis

If you change that mimeapps file, you’ll need to run update-desktop-database ~/.local/share/applications/ or restart your login session.

You can also try commands such as xdg-mime query default inode/directory to see what application is currently associated with directories.

1 Like