mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-01 01:00:03 +01:00
11 lines
249 B
Diff
11 lines
249 B
Diff
|
--- a/bin/gufw
|
||
|
+++ b/bin/gufw
|
||
|
@@ -1,3 +1,6 @@
|
||
|
#!/bin/bash
|
||
|
+if [ $(loginctl show-session $(loginctl|grep $(whoami) |awk '{print $1}') -p Type) = "Type=wayland" ]; then
|
||
|
+ xhost +si:localuser:root
|
||
|
+fi
|
||
|
c_user=$(whoami)
|
||
|
pkexec gufw-pkexec $c_user
|
||
|
|