Commit graph

19 commits

Author SHA1 Message Date
Tom Dewey
9264c19f76 linux: Appimage packaging
Move some files around, so that AppImages can be packaged inside a .deb for convenience.
2024-09-11 17:12:48 +01:00
Tom Dewey
baae3c7641 linux drivelist: Trim lsblk output
Rather than using all possible output from lsblk -
which in testing produces ~45k of output on
Raspberry Pi 5 running Bookworm, instead constrain
to just the fields we actually use - just over 8k on the same system.
2024-09-11 17:12:48 +01:00
Tom Dewey
d9082f8abd AcceleratedCryptographicHash: Use platform capabilities
Introduce a CNG version for Windows, a CommonCrypto
version for macOS and a GnuTLS version for Linux, as
we're using gnutls _anyway_.
2024-09-11 17:12:48 +01:00
ykla
78b7f7418e Add Simplified Chinese translations to the desktop files 2024-06-13 11:44:47 +01:00
Dave Jones
b00815058f Fix timeout on systems with large numbers of loops
On systems with a very large number of snap packages installed, there
are a considerable number of loop devices. In this case, the `lsblk`
command in linuxdrivelist fills the stdout pipe, blocks, and the
rpi-imager process assumes it has timed out [1].

This is a trivial work-around that simply excludes loop devices
(major=7) from the `lsblk` output. Given subsequent code excludes
everything starting with `/dev/loop` anyway, there should be no change
in user experience with this exclusion.

[1]: https://github.com/waveform80/imager-snap/issues/6
2024-05-23 10:25:59 +01:00
Joey Riches
ab3b56af12 appstream metainfo: Fix appstream-builder generation
launchable desktop-id type was no longer matching after 06abbadbb5
causing appstream-builder to fail to generate appdata for this package.
2024-01-31 13:40:30 +00:00
Floris Bos
5700ebec08 Linux: pretend UAS drives are always removable
Ref #795
2024-01-29 22:31:09 +01:00
Floris Bos
06abbadbb5 Linux: rename .desktop file to match DBus name
Fixes #785
2024-01-20 16:39:13 +01:00
Floris Bos
8c9de2d78c Embedded: fix network detection 2024-01-15 00:16:43 +01:00
Floris Bos
6f6a90adbb Fix BSD wifi support
Closes #773
2024-01-06 15:27:14 +01:00
David Turner
249e910c06 Enable file associations on linux
Add " %F" to the Exec parameter in the rpi-imager.desktop file so that
Linux desktop environments know that rpi-imager can be used to open
files.  After this change, Imager appears within the list of "Open With"
applications in GNOME, and you can set it so double-clicking image files
always opens rpi-imager.
2023-10-04 14:58:10 +01:00
Eddy-Wallace
52af71cff9
Hotfix for Issue #610
Possible hotfix for newer version of lsblk on Arch based distributions.
2023-08-11 11:53:23 +02:00
Floris Bos
23b0bf6b32 Linux udisks2: force kernel to rescan MBR before ejection
Otherwise it may still be doing it during ejection, resulting
in read IO errors in dmesg, which are harmless by themselves
but may confuse users.

Also tell udisks2 not to analyze disk by setting 'HintAuto'
property on BlockDevice object to 'false'
2023-03-30 16:26:26 +02:00
Floris Bos
dc6ef75333 udisks2: add support for 'safely removing storage'
mountutils lacks implemention of ejecting storage on Linux.
Add that to our own code (not to mountutils as it is hard to
do DBus calls from there).
2023-03-24 15:33:54 +01: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
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
152831e72f Fix clazy-range-loop-detachs and other clazy complaints 2022-07-26 23:20:14 +02:00
Marcel Petrick
829c200fd1 code-quality: fixed all range-loop warnings which were reported from clazy.
See: `rpi-imager/src/downloadthread.cpp:1015:14: warning: Missing reference in range-for with non trivial type (QByteArray) [clazy-range-loop]`
2022-06-08 17:54:06 +02:00
Floris Bos
033ff07abf Move source files to /src 2022-02-14 10:07:15 +01:00