zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.92k stars 2.69k forks source link

Zed install messes with default file manager settings #15161

Open limbusdev opened 1 month ago

limbusdev commented 1 month ago

Check for existing issues

Describe the bug / provide steps to reproduce it

After installing Zed when clicking on "open folder" in some apps like the Epson Scan App Zed opens instead of Nautilus. I had to uninstall Zed to get back the old behavior.

Environment

Zed: v0.143.7 (Zed) OS: Linux Wayland manjaro unknown Memory: 46.8 GiB Architecture: x86_64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log


neunato commented 1 month ago

That is I believe up to your default applications setup.

Zed simply states it can be used to open directories, you might be able to fix with:

xdg-mime default org.gnome.Nautilus.desktop inode/directory
# sudo update-desktop-database /usr/share/applications           # or reboot
limbusdev commented 1 month ago

I'll check this. Thanks.

edgarogh commented 1 month ago

Same issue here, which causes IntelliJ and other JetBrains IDEs to open Zed when I want to show a file in the system explorer. Here is my ~/.local/share/applications/mimeinfo.cache before I fixed it with @/neunato's solution:

[MIME Cache]
application/x-ipynb+json=jupyter-notebook.desktop;jupyterlab.desktop;
application/zip=org.prismlauncher.PrismLauncher.desktop;
inode/directory=dev.zed.Zed.desktop;
text/plain=dev.zed.Zed.desktop;
x-scheme-handler/curseforge=org.prismlauncher.PrismLauncher.desktop;
[...]

Note that in Linux Mint, the file manager is nemo.desktop instead of org.gnome.Nautilus.desktop. What's odd is that the "Preferred applications" settings app in Linux Mint isn't able to fix this issue, it still displays the default file manager as the inode/directory opener...

jansol commented 21 hours ago

This should no longer be happening since zed no longer advertises support for opening directories in its desktop file since #16940 . @limbusdev can you verify and close this?