Linux embedded: misc improvements

- Allow static build
- Use .svg icons
- Linux Embedded lacks normal "open file dialog". So simply scan
  files in root folder of USB stick and return list.
- Change QProcess::execute(command) calls to
  QProcess::execute(command, args) calls to silence Qt 5.15.0
  depreciation warning.
This commit is contained in:
Floris Bos 2020-06-01 17:45:41 +02:00
parent f3bc47a309
commit 123542a66b
26 changed files with 216 additions and 39 deletions

View file

@ -48,7 +48,8 @@ namespace Drivelist
std::vector<DeviceDescriptor> deviceList;
QProcess p;
p.start("lsblk --bytes --json --paths --output-all");
QStringList args = { "--bytes", "--json", "--paths", "--output-all" };
p.start("lsblk", args);
p.waitForFinished(2000);
QByteArray output = p.readAll();