Disallow running CLI with root privileges (#32583)

In #31331, I made a change that prevents Zed from running with root
privileges, but I forgot about the CLI.
So if you run the CLI without the `--foreground` flag, it just freezes
without any messages. This PR fixes that.

Release Notes:

- N/A
This commit is contained in:
Yaroslav Pietukhov 2025-06-13 20:09:32 +03:00 committed by GitHub
parent 3fb28f695f
commit 628f91dd96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 29 additions and 17 deletions

View file

@ -88,7 +88,7 @@ markdown_preview.workspace = true
menu.workspace = true
migrator.workspace = true
mimalloc = { version = "0.1", optional = true }
nix = { workspace = true, features = ["pthread", "signal", "user"] }
nix = { workspace = true, features = ["pthread", "signal"] }
node_runtime.workspace = true
notifications.workspace = true
outline.workspace = true