1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-13 01:02:18 -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 e224417593
commit 3318864ece
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"
)
@@ -30,6 +31,8 @@ func init() {
}
func main() {
clipboard.MaybeServeAndExit()
if os.Geteuid() == 0 {
log.Fatal("This program should not be run as root. Exiting.")
}