Answer: Zed spawns a login shell in the user's home directory and reads its environment, which is then set on the Zed process. When opening a project, it spawns another login shell in the project's directory and stores that environment for tasks, terminals, and language servers. Status: Overdue (check was due 2026-11-20T13:40:25Z and has not succeeded) Entry: tool/zed/settings/dock-launcher-environment-variables Revision: 1 Digest: sha256:37e002efbf5a2064 (changes whenever the content changes) Timeline: Created: 2026-11-13T04:01:59Z Last changed: 2026-11-13T04:01:59Z Last verified: 2026-11-19T13:40:25Z Next check: 2026-11-20T13:40:25Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of source of environment variables | spawns a login shell in the user's home directory and reads its environment | [1] | 2026-11-19 where environment is set | set on the Zed _process_ | [1] | 2026-11-19 second shell location | runs in the project's directory | [1] | 2026-11-19 second environment usage | stored and passed along when running tasks, opening terminals, or spawning language servers | [1] | 2026-11-19 Sources: [1] Zed Industries. "zed.dev/docs/environment.md". https://zed.dev/docs/environment.md Role: primary. Accessed: 2026-11-19T13:40:26Z Quote: "Zed spawns a login shell in the user's home directory and reads its environment." (Supports: source of environment variables) Quote: "This environment is then set on the Zed _process_, so all Zed windows and projects inherit it." (Supports: where environment is set) Quote: "This second shell runs in the project's directory." (Supports: second shell location) Quote: "Instead, that environment is stored and passed along when running tasks, opening terminals, or spawning language servers." (Supports: second environment usage) Snapshot SHA-256: 10ce443e5b5e85351b8506ba0e1df95ca8cab1e52aa49cba5bfda0ce7fed45cd (captured 2026-11-13T04:01:58Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T04:01:59Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T13:40:25Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:40:25Z Last attempt: 2026-11-19T13:40:25Z Notes and limitations: Extracted automatically from a single official source (section "Launched via window manager, Dock, or launcher"). Human-readable page: https://zed.dev/docs/environment.html Related: https://latestn.com/tool/zed/settings/enable-accessible-mode How do I enable accessible mode in Zed? https://latestn.com/tool/zed/settings/enable-deno-language-server How do I enable the Deno language server in Zed for TypeScript and TSX files? https://latestn.com/tool/zed/settings/enable-disable-language-servers How do I enable or disable a language server in Zed? https://latestn.com/tool/zed/settings/disable-prettier-typescript How do I disable Prettier formatting for TypeScript files in Zed? https://latestn.com/tool/zed/settings/disable-preview-tabs-project-panel How do I disable preview tabs when opening files from the Zed project panel? https://latestn.com/tool/zed/settings/disable-token-type How do I disable a specific semantic token type in Zed? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T04:01:59Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/zed/settings/dock-launcher-environment-variables/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/zed/settings/dock-launcher-environment-variables POST: https://latestn.com/dispute/tool/zed/settings/dock-launcher-environment-variables with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/zed/settings/dock-launcher-environment-variables?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Where does Zed get environment variables when launched from the Dock or a window manager? Revision 1, last verified 2026-11-19T13:40:25Z. https://latestn.com/tool/zed/settings/dock-launcher-environment-variables (accessed 2026-11-21T09:58:25Z). @misc{LatestN_tool_zed_settings_dock_launcher_environment_variables_r1, title = {Where does Zed get environment variables when launched from the Dock or a window manager?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/zed/settings/dock-launcher-environment-variables}}, note = {Revision 1; digest sha256:37e002efbf5a2064; last verified 2026-11-19T13:40:25Z; accessed 2026-11-21T09:58:25Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/zed/settings/dock-launcher-environment-variables