mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
kemu: look for modprobe in the root PATH
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
f98ce8831f
commit
51401039ae
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ KEmuMainWindow::KEmuMainWindow(QWidget *parent, Qt::WindowFlags flags)
|
|||
|
||||
QFileInfo kvmDev("/dev/kvm");
|
||||
if (!kvmDev.exists()) {
|
||||
const QString modprobeBin = KStandardDirs::findExe("modprobe");
|
||||
const QString modprobeBin = KStandardDirs::findRootExe("modprobe");
|
||||
if (!modprobeBin.isEmpty()) {
|
||||
QProcess modprobe(this);
|
||||
modprobe.start(modprobeBin, QStringList() << "-b" << "kvm");
|
||||
|
|
Loading…
Add table
Reference in a new issue