Disallow running Zed with root privileges (#31331)

This will fix a lot of weird problems that are based on file access
issues.

As discussed in
https://github.com/zed-industries/zed/pull/31219#issuecomment-2905371710,
for now it's better to just prevent running Zed with root privileges.

Release Notes:

- Explicitly disallow running Zed with root privileges

---------

Co-authored-by: Peter Tripp <peter@zed.dev>
4f8d7f0a6bYaroslav Pietukhov committed on 5/30/2025, 9:22:52 PM· committed by GitHubparentcaf3d30
3 files changedLine totals unavailable