Code: Select all
// For 64-bit OS check if user wants AHS repo
if (mx_version >= 19 && shell->getOut("uname -m", true) == "x86_64") {
if (QMessageBox::Yes
== QMessageBox::question(this, tr("Enabling AHS"), tr("Do you use AHS (Advanced Hardware Stack) repo?"))) {
shell->runAsRoot(R"(sed -i '/^\s*#*\s*deb.*ahs\s*/s/^#*\s*//' /etc/apt/sources.list.d/mx.list)", true);
}
}