tjmarkham / win10widgets

Widgets for Windows 10 http://win10widgets.com
169 stars 46 forks source link

Weather App not working when user's home directory includes a space #76

Open datalas2 opened 7 years ago

datalas2 commented 7 years ago

my "home" directory is in the format of "Firstname Lastname" and this seems to prevent the weather app (and I suspect the spotify one too) from working, the error messages in the log indicate "RegExp matching error" which I tracked down to the location identification not working, however earlier in the log is an entry saying "WriteKeyValue Illegal path: C:\Users\Firstname" (no mention of lastname) so I suspect that this is what's leading to the regex error

memece3 commented 7 years ago

Anyone have a fix for this yet? It was working perfectly so I doubt its a problem with the name. Something changed with the weather service I suspect.

datalas2 commented 7 years ago

To be fair, I've never had it working ...

I tried some code I found (on a thread showing the weather app saying connection failed retry blah blah blah) and edited the means of getting hold of the location and checked the returned values etc. From what I could tell everything there seemed to be working, but it was unable to write it's discovery back to the disk and hence wasn't picking up where I lived etc..

bkuhl commented 7 years ago

I'm thinking there's a file that probably just needs quotes around the path. Upon initial glance I can't find where this is being written, but maybe one of you already stumbled on it.