Bug#679386: Re: Dirty Workaround

2012-10-20 Thread Vladimir K
Remove "&> /dev/null" in script condition, and it should work (for some reason "if" condition allways triggered as true when parsed by Xsession if redirect is present) If accountsservice is not installed, this workaround works best with lightdm 1.4.0-1 from experimental. Version 1.2.2-3 always

Bug#679386: Re: Dirty Workaround

2012-10-20 Thread Vladimir K
Tested accountsservice and here is a workaround for it also: - #!/bin/bash # use .dmrc or accountsservice data (if accounts-daemon is running) if pidof accounts-daemon &> /dev/null then TEMPLANG=$(cat "/var/lib/AccountsService/users/$USER" | grep ^Language= | cut -d '=' -f 2