Skip to content

Commit

Permalink
Fix IFS
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbruno committed Nov 9, 2024
1 parent 75c8d8b commit 99a087b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/bin/startkde-biglinux
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ if [ ! -e "$HOME/.kdebiglinux/ksmserver_changed" ]; then
kwriteconfig6 --file ~/.config/ksmserverrc --group 'General' --key 'loginMode' 'emptySession'
fi

OIFS=IFS
OIFS=$IFS
IFS=$'\n'
# Automatic rename wallpaper if needed
for i in $(grep -o '/usr/share/wallpapers/.*.avif' ~/.config/plasma-org.kde.plasma.desktop-appletsrc); do
if [[ -e "${i/.avif/.heic}" ]]; then
sed -i "s|$i|${i/.avif/.heic}|" ~/.config/plasma-org.kde.plasma.desktop-appletsrc
fi
done
IFS=OIFS
IFS=$OIFS


nowlogin="$(cat "$HOME/.kdebiglinux/lastused")"
Expand Down

0 comments on commit 99a087b

Please sign in to comment.