feat: force pass gui
This commit is contained in:
parent
a759ac8dd2
commit
f48e958d44
4 changed files with 9 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue