News for hackers. Stuff that matters.
Re:Zed on Linux Is Here by winternewt on Wednesday July 10, 2024 @04:19PM (#40931092)
I just tried it on NixOS 24.05. It starts, but nothing happens when I click "Open a project" or Ctrl+O. It's as if it lacks the ability to show a file selection dialog.
Re:Zed on Linux Is Here by ajitid on Wednesday July 10, 2024 @04:30PM (#40931175)
Re:Zed on Linux Is Here by winternewt on Wednesday July 10, 2024 @05:23PM (#40931612)
Apparently yes. I tried installing xdg-desktop-portal-gtk at first, but that didn't work. xdg-desktop-portal-kde did.

But now I get issues that are likely due to problems with downloading language server binaries and running them, as the parent comment indicated. When I open a Rust project it says "Language server rust-analyzer-2024-07-08 (id 1) status update: Failed to load workspaces."

Also, it dumps core every time I quit. :)

Re:Zed on Linux Is Here by jchw on Wednesday July 10, 2024 @05:03PM (#40931451)
This is almost definitely the problem they're facing although I think that description is a little bit odd. It's missing the operative word: "portals". It's the XDG desktop portals service that is involved here. What you need to ensure is that you have a desktop portal provider set up that provides org.freedesktop.impl.portal.FileChooser. What's kind of neat about the way xdg-desktop-portals is architected, you can pick and choose different implementations for different services. This is especially useful outside of desktop environments where you might need to use e.g. the wlr provider for screenshots and screen capture, but you still want e.g. KDE file dialogs.

It's unfortunate that the documentation for XDG desktop portals (and generally, setting up a complete desktop setup when using compositors like labwc or Sway) is relatively poorly documented. I have my feelings about the pervasiveness of DBus services everywhere but overall I like desktop portals.

Re:Zed on Linux Is Here by dindresto on Wednesday July 10, 2024 @05:18PM (#40931571)
NixOS 24.05 contains an older version of zed, as feature updates are generally not backported to stable NixOS releases. Try running the package from nixos-unstable instead.
Re:Zed on Linux Is Here by winternewt on Wednesday July 10, 2024 @05:40PM (#40931794)
Well that got rid of the core dump each time I quit, and it fixed the language server issues. So together with the portals configuration it seems to be working as well as it can.
Re:Zed on Linux Is Here by 1attice on Wednesday July 10, 2024 @06:15PM (#40932038)
[OP] yeah I'm using nixos-unstable too. I should have mentioned that
Re:Zed on Linux Is Here by zamalek on Thursday July 11, 2024 @01:18PM (#40938689)
There's also this, has AUR-style *-git packages: https://www.nyx.chaotic.cx