Also need to exclude ssh-agent while getting the currently logged in KDE user.

This commit is contained in:
2018-10-04 10:03:58 +02:00
parent 6b01a0b0cc
commit fe18a22690
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
MODE=$4 MODE=$4
USER=$(ps aux | grep startkde | grep -v sddm | grep -v grep | awk '{print $1}') USER=$(ps aux | grep startkde | grep -v sddm | grep -v ssh-agent |grep -v grep | awk '{print $1}')
export DISPLAY=:0 export DISPLAY=:0