Commit graph

667 commits

Author SHA1 Message Date
Floris Bos
86cf72bec2 Mac: add errno.h
Ref #221
2021-05-07 13:09:22 +02:00
Floris Bos
62e9969afb Basic CLI support
Closes #221
2021-05-06 16:49:17 +02:00
Floris Bos
258f9d77aa Fix window position restore.
Ref #220
2021-05-04 22:53:12 +02:00
Floris Bos
e2296deb1a Mac OS X: advanced options. offer to prefill system wifi PSK
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.
2021-05-04 22:51:08 +02:00
Floris Bos
b57da413a6 Fix handling of wifi password with special characters
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
2021-04-11 14:09:28 +02:00
Floris Bos
0c6a9359fd Avoid using QString::back() for compatibility with older Linux distros
Old Qt versions lack QString::back()
Closes #200
2021-04-05 18:26:28 +02:00
Floris Bos
1aaf22d7ab Mac: fix double free
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)
2021-04-05 16:32:46 +02:00
bovirus
2b88c30c5f
Update Italian language 2021-04-01 18:04:59 +02:00
Floris Bos
a82fe15d54 Change version to 1.6.1 2021-03-27 11:10:26 +01:00
Floris Bos
c67cd9bb19 Color password field red if user enabled SSH but forget password
Ref #188
2021-03-27 11:04:13 +01:00
Floris Bos
91cb44d46e MacOSX: use other method to detect preferred language
Qt by default consults AppleLanguages property.
Use a CFLocaleCopyPreferredLanguages() construct instead.
Only look at most preferred language, ignore others.

Ref #160
2021-03-26 16:30:52 +01:00
Floris Bos
1b7d3fafc0 qml: fix subdialog box width calculation 2021-03-26 15:55:54 +01:00
Floris Bos
c8409d7419 Linux: delay extracting .zip after mount on sandboxed systems 2021-03-26 15:54:52 +01:00
Floris Bos
f682c3a7dd Image customization: search all mountpoints for config.txt
Search all mountpoints associated with the target drive for
FAT partition that has config.txt

Ref: #171
2021-03-22 13:21:56 +01:00
Floris Bos
2bbb8bfba7 Windows: improve file system mounting for customization
- Check if config.txt exists on drive letter before proceeding to
  write changes. Wait up to 3 seconds if not.
- Force drive letter assignment for portable SSDs and other devices
  that pretend to be a fixed drive. (Windows only auto-assigns
  drive letters for removable media).

Ref #171
2021-03-21 16:25:32 +01:00
maxnet
c6129a1ad2
Merge pull request #170 from jose1711/sk_translat
Update Slovak translation
2021-03-21 13:29:55 +01:00
maxnet
cf6712ce35
Merge pull request #169 from RPiOS/qml
update Chinese translation
2021-03-21 13:29:44 +01:00
maxnet
43a7411f92
Merge pull request #168 from AaronDewes/qml
Update German translations
2021-03-21 13:29:18 +01:00
maxnet
fd9f8ecf95
Merge pull request #165 from bovirus/patch-3
Update Italian language
2021-03-21 13:29:11 +01:00
Jose Riha
9b0bb077f4 Update Slovak translation 2021-03-19 15:51:38 +01:00
柚木鉉
1eeb84a44b update Chinese Translate 2021-03-18 19:57:01 +08:00
Aaron Dewes
5ab6150405 Update German translations 2021-03-18 11:08:35 +01:00
bovirus
611de2a8d9
Update Italian language
@maxnet 

Please check and merge. Thanks.
2021-03-18 10:38:14 +01:00
maxnet
3a6e7c73db
Merge pull request #163 from raspberrypi/update-telemetry-documentation
Remove download count retention period from README
2021-03-12 14:02:11 +01:00
Paul Mucur
ca5180429e
Remove download count retention period from README
In order to view the impact of changes such as OS releases over a longer
period of time, we have removed the automatic expiry of the anonymous
download counts from the rpi-imager stats service.

For reference, the download counts contain only the following data:

    > ZREVRANGE image:2021-03-12 0 1 WITHSCORES
    1) Raspberry Pi OS (32-bit)
    2) 1234
    3) Raspberry Pi OS Lite (32-bit)
    4) 567

Update the README section about telemetry in order to reflect the
change.
2021-03-12 11:35:35 +00:00
Floris Bos
832be86e79 Linux embedded: quit (reboot) when finished 2021-03-06 11:40:46 +01:00
Floris Bos
2d87a2275f Revert "Linux: disable high dpi scaling on incorrect EDID"
This reverts commit 37cc9e8736.
2021-03-06 11:39:58 +01:00
Floris Bos
906ceabaec Linux only: allow NVMe destination drives
ON LINUX PLATFORM ONLY

Allow NVMe destination drives as long as they are not mounted
except under /media

This does increase the risk of someone accidently selecting an
internal NVMe drive that is not mounted under the current OS
(Linux) but do is being used by the other operating system
(e.g. Windows) on dual boot systems.
But is deemed to be an acceptable risk.

Ref #158
2021-02-26 14:54:25 +01:00
Floris Bos
2700f61eb9 Filter out root mount even if not filtering out system drives
Ref #158
2021-02-26 14:53:12 +01:00
Floris Bos
8a54544808 SD card -> storage
- Change a few more SD card -> storage references
- Regen .ts files
2021-02-26 14:51:09 +01:00
maxnet
88c6afba33
Merge pull request #154 from kosssi/qml
Change SD Card description
2021-02-26 14:31:30 +01:00
maxnet
7e047b87c9
Update rpi-imager_nl.ts
Fix Dutch translation
2021-02-26 14:30:58 +01:00
maxnet
8ec71669c7
Merge pull request #135 from emanueleg/qml
Update Italian translation
2021-02-26 14:25:17 +01:00
maxnet
caa6b2bb4f
Merge pull request #139 from Zaryob/patch-1
Updated translations of Turkish Language.
2021-02-26 14:24:53 +01:00
Floris Bos
37cc9e8736 Linux: disable high dpi scaling on incorrect EDID
If the screen dimensions that are reported by EDID are
unrealistically low disable high dpi scaling.

For this purposes we consider the EDID incorrect if screen is
reported as smaller than 10 cm in width.

Closes #153
2021-02-16 15:42:39 +01:00
Simon C
c5ff74dece feat: Update French language 2021-02-08 22:11:41 +01:00
Simon C
a1a4c432df feat: Update SD Card description to Storage 2021-02-08 22:10:44 +01:00
Floris Bos
2261faabc5 Fix Windows progress on images >2GB
Closes #133
2021-01-30 23:18:26 +01:00
Floris Bos
ab29b218af Fix handling of .iso files
Do not let libarchive treat iso as archive that needs to be
extracted.
2021-01-26 22:17:56 +01:00
Floris Bos
abbed47f97 Shift+Ctrl+X option screen: allow persisting settings 2021-01-20 13:04:18 +01:00
Floris Bos
a6150f7bc5 Linux drivelist: filter out zram devices
Fedora uses zram for swap. Swap devices do not make good
destionation drives.
2021-01-20 13:00:51 +01:00
Floris Bos
28b6d19bd6 README: add build instructions for rpm based distros
To prevent people trying to use 3rd-party container packages
that do not actually work on those distributions.
2021-01-20 12:59:06 +01:00
Floris Bos
86f893388c Shift+Ctrl+X for advanced users that likes to customize the image
- Adds "hidden" shift+ctrl+X shortcut for eXpert image customization
  options.

Allows one to set certain options on RPI OS images, namely:

* disable overscan
* set hostname
* enable ssh and
  - set Pi user password if using password authentication
  OR
  - set authorized_keys
    (if running Imager on Linux/Mac this will
     have contents of ~/.ssh/id_rsa.pub prefilled)
* configure wifi settings
  (if computer running Imager is connected by wifi it will
  prefill wifi SSID and if on Windows also PSK).
* set time zone and keyboard layout

  Related to feature requests/issues:
  Ref #127
  Ref #86
  Ref #102
  Ref #73
  Ref #68
  Ref #25
  Ref #12

- Option Window also allows setting a couple other general settings:

* Adds option for audible notification (beep) when imaging completes.
  Closes #46

* Adds option not to eject media when done.
  Closes #144

- No longer suspends a number of Windows services during Imaging
  (We want Windows to detect the drive and mount it, or we may
   not be able to alter files on FAT partition).
2021-01-17 17:43:17 +01:00
Floris Bos
2844b5bd1a Do not activate embedded mode for wayland
Embedded (fullscreen) mode was activated automatically if QPA
platform type is eglfs, wayland or linuxfb.
However although setting window size to -1 does result in fullscreen
on eglfs, on wayland it results in
"Client tried to set invalid geometry"

Do not activate embedded mode for wayland.

Closes #143
2021-01-11 18:43:41 +01:00
Floris Bos
7c1c111699 drivelist: let GetEnumeratorName() return std::string instead of char *
Returning a pointer to a character array on the stack that is
no longer reserved after the function returns can lead to
undefined behavior.
2021-01-11 18:37:39 +01:00
Floris Bos
8e87933320 drivelist: fix handling zero length wstrings
Ref #142
2021-01-06 12:18:09 +01:00
Suleyman Poyraz
be453d5d79
Updated translations of Turkish Language. 2020-12-25 14:18:36 +03:00
Emanuele Goldoni
b77432f3db Update Italian translation 2020-12-21 11:52:47 +01:00
Floris Bos
d129d12b00 Add new PNG icons 2020-12-09 14:54:54 +01:00
Floris Bos
1d0087929c Windows: show progress in taskbar
Windows: show progress in taskbar
Closes #132

Implemented in ImageWriter class instead of qml for practical
reasons. GUI stuff does not really belong there, but there is no
easy way to have platform specific stuff in qml, lacking #ifdef
2020-12-09 14:23:40 +01:00