From a9e7c1b5b7106cde81df42f885cd7925e21c9ca4 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Sun, 30 Apr 2023 13:07:27 +0200 Subject: [PATCH] Update lock script --- veille.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/veille.sh b/veille.sh index 0e243db..c45ea7c 100755 --- a/veille.sh +++ b/veille.sh @@ -25,17 +25,17 @@ rm --recursive --force -- /tmp/ssh-* # GPG Agent keychain --agents gpg --clear -kill $(pidof gpg-agent) +pkill --uid="$(id -u)" -- "gpg-agent" # Delete everything link to ssh-agent or gpg-agent rm --recursive --force -- ~/.keychain/* # git-credential sockets -killall git-credential-cache--daemon +pkill --uid="$(id -u)" --full -- "git-credential-cache" rm --force -- ~/.git-credential-cache/* # Keepass2 (killall keepass, both those launch with 'mono' and those launch with 'cli) -pkill --full -- "keepass" +pkill --uid="$(id -u)" --full -- "keepass" # Delete sensitive files can contains unwanted clear passwords rm --force -- ~/.config/evince/print-settings ~/.config/eog/eog-print-settings.ini @@ -47,7 +47,7 @@ find ~/.config -ipath "*GIMP*" -and -iname "print-settings" -delete # Purge local user recent files rm --force -- ~/.local/share/recently-used.xbel rm --force -- ~/.recently-used -rm --force -- ~/.thumbnails/normal +rm --force --recursive -- ~/.thumbnails/normal rm --force -- ~/.config/vlc/vlc-qt-interface.conf rm --force -- ~/.config/smplayer/smplayer.ini