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
Alex 2023-02-02 09:04:38 -06:00
parent ab09fc074f
commit b0e94c0727
3 changed files with 11 additions and 1 deletions

9
gsudo Executable file
View File

@ -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

View File

@ -51,6 +51,7 @@ depends=(
"openssh" "openssh"
"jq" "jq"
"pamixer" "pamixer"
"xorg-xhost" #needed to run graphical programs as root
#libs/plugins #libs/plugins
"python-urwid" "python-urwid"

View File

@ -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 echo "permit nopass :wheel as root cmd /sbin/reboot" >> ~/.cache/doas.conf
sudo cp ~/.cache/doas.conf /etc/doas.conf sudo cp ~/.cache/doas.conf /etc/doas.conf
yay -S opendoas-sudo yay -S doas-sudo-shim