Also need to exclude ssh-agent while getting the currently logged in KDE user.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user