@ -7,6 +7,14 @@ use clap::{App, AppSettings, Arg, ArgSettings, SubCommand};
usestd::process::exit;
fnmain(){
extern"C"{
fngeteuid()-> u32;
}
ifunsafe{geteuid()}==0{
panic!("Running amethyst as root is disallowed as it can lead to system breakage. Instead, amethyst will prompt you when it needs superuser permissions.")