feat: force pass gui

This commit is contained in:
ange 2025-04-06 14:57:23 +00:00
parent a759ac8dd2
commit f48e958d44
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
4 changed files with 9 additions and 14 deletions

View file

@ -1,11 +1,10 @@
#!/bin/bash -e
DMENU=/usr/local/bin/dmenu
SUDO=pkexec
if tty -s; then
DMENU=fzf
SUDO=sudo
else
DMENU=/usr/local/bin/dmenu
SUDO=pkexec
fi
if [ "$EUID" != 0 ]; then