kwin/data/kwin_translate_confrequest_rule.sh
Thomas Lübking 93ef0226ba add configRequest rule update
REVIEW: 111193
2013-08-05 20:43:27 +02:00

14 lines
No EOL
460 B
Bash
Executable file

#!/bin/sh
COUNT=`kreadconfig --file kwinrulesrc --group General --key count`
if [ -z "$COUNT" ]; then
exit 0 # nothing to do for us
fi
# can you imaging how *much* faster sed is?
# it's however less reliable (installation, ini config, etc.)
for i in `seq 1 $COUNT`; do
if [ "`kreadconfig --file kwinrulesrc --group $i --key ignoregeometryrule`" = "2" ]; then
kwriteconfig --file kwinrulesrc --group $i --key ignoregeometryrule "3"
fi
done