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
50.9k stars 3.15k forks source link

Zed doesn't use default file manager #21105

Open yorunoken opened 1 week ago

yorunoken commented 1 week ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Zed uses Nautilus when I use "Reveal in File Manager" in the context menu of folders, even though my default file manager is Thunar;

@yoru in ~ 
💜 xdg-mime query default inode/directory
thunar.desktop

I can't delete nautilus since I need xdg-desktop-portal-gnome

Environment

Zed: v0.162.3 (Zed) OS: Linux Wayland arch unknown Memory: 15.5 GiB Architecture: x86_64 GPU: AMD Radeon RX 6600 XT (RADV NAVI23) || radv || Mesa 24.2.7-arch1.1

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 ``` ```
notpeter commented 5 days ago

This appears to be triggered here: https://github.com/zed-industries/zed/blob/a02684b2f7f86fc8cc7963c350815a656525c677/crates/gpui/src/platform/linux/platform.rs#L577-L589

ashpd::desktop::open_uri::OpenDirectoryRequest is wrapper on the org.freedesktop.portal.OpenURI dbus call.

Not super familiar with XDG internals but sounds like Nautilus is handling that instead of Thunar.