# export XDG_RUNTIME_DIR="/run/user/1000"
# export DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus"
# HANDLE=`qdbus org.kde.kwalletd5 /modules/kwalletd5 open "kdewallet" 0 "0"`
# qdbus org.kde.kwalletd5 /modules/kwalletd5 writePassword "$HANDLE" "kstars" "ekoslive" "" "0"
# secret-tool clear user ekoslive server kstars

#kwalletcli -f kstars -e ekoslive -p "" <<< ""

rm -rf /home/stellarmate/.local/share/kwalletd/*
rm -rf /home/stellarmate/.config/kwallet*

cp /etc/stellarmate/wallet/kdewallet* /home/stellarmate/.local/share/kwalletd/
cp /etc/stellarmate/wallet/kwallet* /home/stellarmate/.config/

chown -R stellarmate:stellarmate /home/stellarmate/.config/
chown -R stellarmate:stellarmate /home/stellarmate/.local/share/kwalletd/
