add gsudo script to scripts directory. this script allows you to run
graphical programs as root. add requirement for gsudo to PKGBUILD. update opendoas to install doas-sudo-shim since previous package no longer exists.master
parent
ab09fc074f
commit
b0e94c0727
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
#copied from: https://www.reddit.com/r/Fedora/comments/5eb633/solution_running_graphical_app_with_sudo_in/
|
||||
#small script to enable root access to x-windows system
|
||||
xhost +SI:localuser:root
|
||||
sudo "$1"
|
||||
#disable root access after application terminates
|
||||
xhost -SI:localuser:root
|
||||
#print access status to allow verification that root access was removed
|
||||
xhost
|
|
@ -51,6 +51,7 @@ depends=(
|
|||
"openssh"
|
||||
"jq"
|
||||
"pamixer"
|
||||
"xorg-xhost" #needed to run graphical programs as root
|
||||
|
||||
#libs/plugins
|
||||
"python-urwid"
|
||||
|
|
|
@ -6,4 +6,4 @@ echo "permit nopass :wheel as root cmd /sbin/poweroff" >> ~/.cache/doas.conf
|
|||
echo "permit nopass :wheel as root cmd /sbin/reboot" >> ~/.cache/doas.conf
|
||||
sudo cp ~/.cache/doas.conf /etc/doas.conf
|
||||
|
||||
yay -S opendoas-sudo
|
||||
yay -S doas-sudo-shim
|
||||
|
|
Loading…
Reference in New Issue