Moved ~/.winapps to ~/.config (backwards compatible)

This commit is contained in:
Fmstrat
2020-11-08 09:56:04 -05:00
parent 7b4891cc8b
commit f86d774fa1
2 changed files with 9 additions and 5 deletions

View File

@@ -36,12 +36,16 @@ if [ -z "$(which xfreerdp)" ]; then
exit
fi
if [ ! -f "${HOME}/.winapps" ]; then
echo "You need to create a ~/.winapps configuration. Exiting..."
if [ ! -f "${HOME}/.config/winapps/winapps.conf" ] && [ ! -f "${HOME}/.winapps" ]; then
echo "You need to create a ~/.config/winapps/winapps.conf configuration. Exiting..."
exit
fi
. "${HOME}/.winapps"
if [ -f "${HOME}/.config/winapps/winapps.conf" ]; then
. "${HOME}/.config/winapps/winapps.conf"
else
. "${HOME}/.winapps"
fi
if [ -z "${RDP_IP}" ]; then
if [ -z "$(groups |grep libvirt)" ]; then