Commit graph

21 commits

Author SHA1 Message Date
Tom Dewey
aeb4ceb73f imagewriter: Resolve TOCTOU in getFilteredOSList 2023-11-14 09:53:35 +00:00
Tom Dewey
fc2b67a20c imagewriter: Delete NetworkReplys later. 2023-11-14 09:53:35 +00:00
Tom Dewey
673b3c7a33 qml: move OS list fetch to backend
- Simple implementation of OS list fetching in backend
- Replace frontend OS list fetching by calls to backend
- OS list updates are brought in asynchronously, avoiding excessive UI
  blockage.
- "Erase" and "Custom" OS list options are always present, even in a
  no-internet scenario

Based-On: cillian64/rpi-imager/oslist_backend
2023-11-14 09:53:35 +00:00
Tom Dewey tom.dewey@raspberrypi.com
ecf992cb62 Rework OS Customization
In the new flow, it doesn't make sense to _not_ save the OS
customization parameters, so remove the ComboBox.

Additionally, our data model was failing to notify the UI of changes to
the saved settings state. Due to time constraints, I'm not able to
resolve the binding in the 'correct' manner, but I can introduce a
makeshift status signalling mechanism to prevent UI inconsistency.
2023-10-17 15:28:04 +01:00
Floris Bos
e8931b7b8f Local .xz files: parse uncompressed size for better progress reports 2023-09-25 21:13:22 +02:00
Floris Bos
ce549cadb2 Misc advanced options improvements 2023-09-23 19:45:17 +02:00
Floris Bos
6eb358ed75 WIP: Tabbed options interface 2023-09-22 23:51:36 +02:00
Floris Bos
e490ec1c4d Windows: fix depreceation warnings
- winsock2.h should be included before windows.h
- QProcess::execute('name') -> QProcess::execute('name', args);
2023-05-22 10:46:07 +02:00
Floris Bos
6dc2f3e58e Refactor WLAN PSK retrieval code
- Reduce platform specific code in ImageWriter class,
  and move that to seperate classes.
- Use API calls to get current SSID on Windows and Linux instead
  of launching command line utilities.
2023-03-10 18:37:22 +01:00
Floris Bos
d972d5b87b Windows WLAN PSK retrieval: unescape XML
Assuming unescaping standard XML entities is sufficient.
(Skipping numerical unicode XML entities for now, as
there is not a proper standardized way to
represent non-ascii characters in a PSK anyway)

Ref #541
2023-01-25 14:37:24 +01:00
Floris Bos
05f1c4dbb5 Add integration tests
Tests if repository json files conform to the json schema.
If all resources (images/icons/website URLs) they mention actually
exists.

And can also test writing images and the FAT modification code.
2022-11-19 23:49:43 +01:00
Floris Bos
ebc6edc0c3 Advanced settings: use current username instead of Pi as default
Instead of using 'pi' as default, try to get the username of
the current user from the OS.

May not always work. (e.g. some Windows users may not have
setup a username themselves, but may be using a default user
created by the PC vendor).

Closes #497
2022-11-15 01:10:46 +01:00
Floris Bos
9c95398210 Ensure buffering is used when writing uncompressed images
Just feed them through the libarchive workflow as well.
Prevents issues on Windows/osx when writing uncompressed images
that come from the Internet.

Ref #473
2022-08-18 15:37:37 +02:00
Floris Bos
ef4abc661f Linux distros that use NetworkManager: prefill WLAN PSK
Only supported when NetworkManager is used on the Linux distro
as wpa_supplicant itself does not support reading PSKs through
DBus, only setting them.

Closes #457
2022-07-31 13:24:52 +02:00
Floris Bos
b1606dd1fb Linux: remove leftovers of OpenSSL dependency
OpenSSL was replaced by GnuTLS for SHA256 calculation in
cb415a6a02
Remove left-over header includes and adjust dependencies in README
2022-07-31 13:14:51 +02:00
Pavel Shliak
4f8980d48e
Allow selection of files without extension
I have automatically generated images that do not match *.* as filename contains no dots. I have to rename them every time :(
2022-07-02 16:48:30 +03:00
Floris Bos
cb415a6a02 Linux: allow using GnuTLS instead of OpenSSL for computing SHA256 hashes
Prevents issues with often changing OpenSSL ABI.

Ref #429
2022-06-14 16:13:55 +02:00
maxnet
d2a92383b6
Merge pull request #362 from lnussel/qml
Add compile time options for telemetry and updates
2022-03-24 17:49:16 +01:00
Floris Bos
c4cfcd0604 Embedded: fix font support for eastern countries 2022-02-21 17:47:06 +01:00
Ludwig Nussel
5d971375f6 Add compile time options for telemetry and updates 2022-02-14 16:03:02 +01:00
Floris Bos
033ff07abf Move source files to /src 2022-02-14 10:07:15 +01:00
Renamed from imagewriter.cpp (Browse further)