From fe18a226906c00d6e3de17d1a0fdf9e0c9664262 Mon Sep 17 00:00:00 2001 From: Digital Business and Software-Engineering Date: Thu, 4 Oct 2018 10:03:58 +0200 Subject: [PATCH] Also need to exclude ssh-agent while getting the currently logged in KDE user. --- etc/acpi/thinkpad-tabletmode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/acpi/thinkpad-tabletmode.sh b/etc/acpi/thinkpad-tabletmode.sh index 1e339f2..22ecdd3 100755 --- a/etc/acpi/thinkpad-tabletmode.sh +++ b/etc/acpi/thinkpad-tabletmode.sh @@ -1,7 +1,7 @@ #!/bin/bash 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