heyjuvi/avizo

Ubuntu: Converting , to .

kragebein opened this issue · 2 comments

You should add this to lightctl and volume ctl under 'progress':

volumectl
progress=$(echo "$volume" | awk '{ printf "%.2f", ($1 > 100 ? 1 : $1 / 100) }' | sed 's/,/./g')

lightctl:
progress=$(echo "$light" | awk '{ printf "%.2f", $1 / 100 }' | sed 's/,/./g')

On ubuntu, the return is a comma seperated float. 0,30, however the avizo-client requires a punctuation instead. 0.30 This would fix that issue.

I couldnt open a pr.

No, it does not under Ubuntu in general. It behaves differently on your system probably due to a different locale (other than en_US and similar). The correct fix is to set LANG=C in the script.

Okay, i agree. That seems to be way easier than my approach.