Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zed doesn't use default file manager #21105

Open
1 task done
yorunoken opened this issue Nov 23, 2024 · 1 comment
Open
1 task done

Zed doesn't use default file manager #21105

yorunoken opened this issue Nov 23, 2024 · 1 comment
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue

Comments

@yorunoken
Copy link

Check for existing issues

  • Completed

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

@yorunoken yorunoken added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Nov 23, 2024
@notpeter
Copy link
Member

This appears to be triggered here:

#[cfg(any(feature = "x11", feature = "wayland"))]
pub(super) fn reveal_path_internal(
executor: BackgroundExecutor,
path: PathBuf,
activation_token: Option<String>,
) {
executor
.spawn(async move {
if let Some(dir) = File::open(path.clone()).log_err() {
match ashpd::desktop::open_uri::OpenDirectoryRequest::default()
.activation_token(activation_token.map(ashpd::ActivationToken::from))
.send(&dir.as_fd())
.await

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue
Projects
None yet
Development

No branches or pull requests

2 participants