Launching programs that require "root" privileges

Moderator: Forum moderators

Post Reply
User avatar
Sofiya
Posts: 2371
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1505 times
Been thanked: 1617 times

Launching programs that require "root" privileges

Post by Sofiya »

Launching programs that require " root " privileges in Hyprland and Sway

Running programs that require " root " privileges using " pkexec " and " polkit-gnome "

1) install sudo xbps-install -Su polkit-gnome
2) register in /home/spot/.config/hypr/configs/exec.conf
exec-once = /usr/libexec/polkit-gnome-authentication-agent-1 or uncomment line 27, if it is written there
3) place the below attached script "pkexec" in /usr/local/bin/pkexec
4) logout and login

Now you can run programs
pkexec pcmanfm - and enter your user's password . the program runs with " root " privileges

Enjoy! Write thanks, put likes

Attachments
pkexec-conf.tar.gz
(381 Bytes) Downloaded 12 times

KL-Linux
KL LINUX Simple fast free

Post Reply

Return to “KLV-HyprlandCE”