1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-12 16:52:10 -04:00

clipboard: make CLI keep CL item in-memory again

This commit is contained in:
bbedward
2026-04-06 16:09:10 -04:00
parent 0bc1b7a3c2
commit 07d2c94676
4 changed files with 105 additions and 133 deletions

View File

@@ -5,6 +5,7 @@ package main
import (
"os"
"github.com/AvengeMedia/DankMaterialShell/core/internal/clipboard"
"github.com/AvengeMedia/DankMaterialShell/core/internal/log"
)
@@ -28,6 +29,8 @@ func init() {
}
func main() {
clipboard.MaybeServeAndExit()
if os.Geteuid() == 0 {
log.Fatal("This program should not be run as root. Exiting.")
}