atom / atom

:atom: The hackable text editor
https://atom.io
MIT License
60.23k stars 17.39k forks source link

Not Running Atom version 1.51 use Sudo in Ubuntu 20.04 Focal Fossa #21485

Open gagaltotal opened 4 years ago

gagaltotal commented 4 years ago

ask

why bro ?

$ sudo atom /usr/bin/atom: line 190: 5771 Trace/breakpoint trap nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1 [5771:1012/102716.136625:FATAL:atom_main_delegate.cc(194)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

gagaltotal commented 4 years ago

I see another issue [https://github.com/atom/atom/issues/20756] which he said worked

examples like this : $ atom --no-sandbox --disable-setuid-sandbox

because it was too long, I made a command in bash using an alias, example

$ vim .bashrc alias atom='sudo atom --no-sandbox --disable-setuid-sandbox'

$ atom

hey developer, what other way can you fix it in the next update ?

sadick254 commented 4 years ago

@gagaltotal is the suggestion to allow running sudo atom without providing --no-sandbox --disable-setuid-sandbox?

gagaltotal commented 4 years ago

@sadick254 I have not found it, because it is different from the ubuntu 20.04 focal fossa OS, for other Linux distributions and 16.04,18.04, maybe it still can, but just wait for the update fix atom