diff --git a/mint.sh b/mint.sh index 463cad1..9319343 100644 --- a/mint.sh +++ b/mint.sh @@ -47,6 +47,15 @@ fi defaultuser=$(getent passwd 1000 | cut -d: -f1) defaultuserhome=$(getent passwd 1000 | cut -d: -f6) +# move data from element/signal flatpaks to default element/signal +if [ -d "$defaultuserhome/.var/app/org.signal.Signal/config/Signal" ] +then + [ -d "$defaultuserhome/.config/Signal" ] || rsync -av "$defaultuserhome"/.var/app/org.signal.Signal/config/Signal/ "$defaultuserhome"/.config/Signal/ +fi +if [ -d "$defaultuserhome/.var/app/im.riot.Riot/config/Element" ] +then + [ -d "$defaultuserhome/.config/Element" ] || rsync -av "$defaultuserhome"/.var/app/im.riot.Riot/config/Element/ "$defaultuserhome"/.config/Element/ +fi # hostname if hostname | grep -q "^${defaultuser}-"