If mounting partition after FAT32 format fails, check if race
occurs in which the Linux distribution was faster in auto-mounting
the partition then we were in manually mounting it.
- Enclose SSID within brackets, to allow SSIDs with spaces
- Call 'setupcon' to have keyboard layout change applied
Setting wifi country code on Ubuntu still broken
The FAT partition /dev node is supposed to be already available
after running partprobe, but since there is a user report that
is not always the case, double check and delay if necessary.
Closes#237
In order to be consistent with other services moving to raspberrypi.com,
send telemetry there instead of raspberrypi.org.
Note that the raspberrypi.org endpoint will continue to work
indefinitely in order to support existing clients.
Offer to prefill the wifi password of the system running
Imager, like we do on Windows.
Ask user first if that is desired, as it does cause OS X to
generate a prompt asking for admin password.
We could cover the backtic case by using nowdoc instead of
heredoc, but then there may still be problems with double quotes.
Put the PBKDF2 hash instead of plaintext password in
wpa_supplicant.conf to solve such problems.
Closes#206
Had wrongfully assumed CFStringRef's were reference counted
objects that needed to be CFRelease()'d when we no longer
needed them.
However according to the CFArrayGetValueAtIndex() API docs
( https://developer.apple.com/documentation/corefoundation/1388767-cfarraygetvalueatindex?language=objc )
it follows "get rule" for memory ownership, meaning it is not
ours to release.
Only prefLangs returned by CFLocaleCopyPreferredLanguages()
need to be CFRelease()'d as that does follow "create rule"
Ref #202 (Crash on Mac OS Big Sur)
Qt by default consults AppleLanguages property.
Use a CFLocaleCopyPreferredLanguages() construct instead.
Only look at most preferred language, ignore others.
Ref #160