usbmsSplash.cpp: Remove macOS dotfiles

This commit is contained in:
Nicolas Mailloux 2023-06-19 08:36:30 -04:00
parent 2450930703
commit 7e4b3b5d02

View file

@ -217,6 +217,16 @@ void usbmsSplash::restartServices() {
} }
} }
} }
// Remove macOS dotfiles
{
QString prog("busybox-initrd");
QStringList args;
args << "find" << "/mnt/onboard/onboard" << "-type" << "f" << "-name" << "._*" << "-delete";
QProcess * proc = new QProcess();
proc->start(prog, args);
proc->waitForFinished();
proc->deleteLater();
}
// Re-generate local library on next launch // Re-generate local library on next launch
QFile::remove(global::localLibrary::databasePath); QFile::remove(global::localLibrary::databasePath);