mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
usbmsSplash.cpp
: Remove macOS dotfiles
This commit is contained in:
parent
2450930703
commit
7e4b3b5d02
1 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue