diff --git a/bin/standalone/reinstall-for-qt b/bin/standalone/reinstall-for-qt index e0f1abf..3b45df9 100755 --- a/bin/standalone/reinstall-for-qt +++ b/bin/standalone/reinstall-for-qt @@ -1,3 +1,5 @@ #!/bin/bash +parent_process=$(ps -p $PPID -o comm=) +[ "$parent_process" = 'pacman' ] || [ "$parent_process" = 'pamac-daemon' ] || exit rm /var/lib/pacman/db.lck pacman --noconfirm -S qt5-styleplugins qt6gtk2