1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-11 16:22:09 -04:00

core: allow RO commands to run as root

This commit is contained in:
bbedward
2026-04-06 18:19:17 -04:00
parent 07d2c94676
commit 088ed806ae
3 changed files with 18 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ func init() {
func main() {
clipboard.MaybeServeAndExit()
if os.Geteuid() == 0 {
if os.Geteuid() == 0 && !isReadOnlyCommand(os.Args) {
log.Fatal("This program should not be run as root. Exiting.")
}