#!/bin/bash RUNNING=$(pgrep yubioath-deskto) if [ "$RUNNING" ]; then kill $RUNNING sudo systemctl stop pcscd.socket sudo systemctl restart pcscd.service sudo systemctl start pcscd.socket fi if [ -z ${SWAYSOCK+x} ]; then QT_QPA_PLATFORMTHEME=qt5ct QT_QPA_PLATFORM=wayland QT_PLUGIN_PATH=/usr/lib/qt/plugins flatpak run com.yubico.yubioath & else QT_QPA_PLATFORMTHEME=qt5ct QT_QPA_PLATFORM=wayland QT_PLUGIN_PATH=/usr/lib/qt/plugins flatpak run com.yubico.yubioath & fi