Skip to content

Leaks LD_LIBRARY_PATH into application - including zed terminals #330

Description

@jmaargh

This flatpak leaks its value of LD_LIBRARY_PATH (somewhere in /var/lib/flatpak/app/dev.zed.Zed on my system) into the application and, importantly, therefore into terminal instances within the application.

This can cause weird and confusing changed behaviour between developing within the zed terminal versus any other terminal emulator because different libraries will be loaded in unexpected ways. It is worth noting that the flatpak of vscodium does not leak LD_LIBRARY_PATH

Comparing env | grep -e 'zed' to env | grep -e 'codium' from their respective terminals reveals leaked environment from the flatpaks. Zed actually appears to do better for the most part - the only problematic one I can see leaked is LD_LIBRARY_PATH -- this flatpak otherwise seems to have done a good job of namespacing its environment variables to not interact with user scripts/bashrc/etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions