Message ID | 20190725085355.15921-1-tz.stoyanov@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | c9b3aa0c5dedeb554e04406cfe8fadc6dac44699 |
Headers | show |
Series | kernel-shark: Xserver, grant access to user root | expand |
diff --git a/kernel-shark/bin/kshark-su-record b/kernel-shark/bin/kshark-su-record index 8c9fbd0..c14f03d 100755 --- a/kernel-shark/bin/kshark-su-record +++ b/kernel-shark/bin/kshark-su-record @@ -1,9 +1,6 @@ #!/bin/bash -if [ "$XDG_SESSION_TYPE" = "wayland" ] -then - xhost +si:localuser:root &>/dev/null -fi +xhost +si:localuser:root &>/dev/null THIS_DIR=`dirname $0` pkexec env DISPLAY=${DISPLAY} ${THIS_DIR}/kshark-record -o ${PWD}/trace.dat