Skip to content

Zed without sandbox doesn't open addresses in browser #351

Description

@mati865

EDIT: As the workaround I'm doing rm -r ~/.local/share/flatpak/app/dev.zed.Zed/current/active/files/lib/* after each update and it seems to work fine.

Original report below:

Zed ships libraries that are conflicting with ones provided by freedesktop-sdk-25.08.8 (likely other versions too). See individual cases:

Sandbox Enabled

With default configuration (sandbox enabled) clicking on "Sign In" button in the top right-hand corner opens a new tab in my browser, despite some tools failing to launch due to messed up dependencies:

❯ flatpak run dev.zed.Zed --foreground
2026-04-16T17:51:50+02:00 INFO  [zed] ========== starting zed version 0.232.2+stable.229.34f1025a77a17ae5401c9395b4f73536c6f76d6c, sha 34f1025 ==========
<snip>
2026-04-16T17:51:53+02:00 INFO  [client] set status on client 0: Authenticating
2026-04-16T17:51:53+02:00 ERROR [crates/client/src/client.rs:369] File backend error Portal communication failed A portal frontend implementing `org.freedesktop.portal.Secret` was not found
/usr/lib/x86_64-linux-gnu/gio/modules/libgiognomeproxy.so: undefined symbol: g_uri_is_valid
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiognomeproxy.so
/usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so: undefined symbol: g_source_set_static_name
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so
/usr/lib/x86_64-linux-gnu/libproxy/libpxbackend-1.0.so: undefined symbol: g_strv_builder_unref
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so

The secrets are not stored though, as reported in #350.
Trying to launch secret-tool also fails:

❯ flatpak run --command=sh dev.zed.Zed
[📦 dev.zed.Zed dev.zed.Zed]$ secret-tool
secret-tool: symbol lookup error: /usr/lib/x86_64-linux-gnu/libsecret-1.so.0: undefined symbol: g_task_set_static_name

Sandbox Disabled

Without sandbox clicking on "Sign In" button doesn't do anything as some binary fails to start:

❯ flatpak run dev.zed.Zed --foreground
2026-04-16T17:56:17+02:00 INFO  [zed] ========== starting zed version 0.232.2+stable.229.34f1025a77a17ae5401c9395b4f73536c6f76d6c, sha 34f1025 ==========
<snip>
2026-04-16T17:56:19+02:00 INFO  [client] set status on client 0: Authenticating
XPCOMGlueLoad error for file /usr/lib/firefox/libmozgtk.so:
/usr/lib/libjson-glib-1.0.so.0: undefined symbol: g_once_init_leave_pointer
Couldn't load XPCOM.

secret-tool fails the same way.

Sandbox Disabled and Conflicting Deps Removed

I have pinpointed shipped libs that conflict with the platform version 49 and removing them fixes the issue:

❯ cd /home/mateusz/.local/share/flatpak/app/dev.zed.Zed/current/active/files/lib/
❯ mkdir bck
❯ mv libglib-2.0.so.0 libgio-2.0.so.0 libmount.so.1 libgmodule-2.0.so.0 bck/

Now when I click on "Sign In" the new tab in my browser is opened and secrets are stored. They are correctly restored when relaunching Zed.
Also secret-tool works fine now:

❯ flatpak run --command=sh dev.zed.Zed
[📦 dev.zed.Zed dev.zed.Zed]$ secret-tool
usage: secret-tool store --label='label' attribute value ...
       secret-tool lookup attribute value ...
       secret-tool clear attribute value ...
       secret-tool search [--all] [--unlock] attribute value ...
       secret-tool lock --collection='collection'

Related issues #330 #334

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions