|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
#include <QProcess>
|
|
|
|
|
#include "installerprompt.h"
|
|
|
|
|
#include "./ui_installerprompt.h"
|
|
|
|
|
|
|
|
|
@ -23,6 +24,7 @@ InstallerPrompt::InstallerPrompt(QWidget *parent)
|
|
|
|
|
|
|
|
|
|
// Slots and signals
|
|
|
|
|
connect(ui->tryLubuntu, &QAbstractButton::clicked, this, &InstallerPrompt::tryLubuntu);
|
|
|
|
|
connect(ui->installLubuntu, &QAbstractButton::clicked, this, &InstallerPrompt::installLubuntu);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void InstallerPrompt::tryLubuntu()
|
|
|
|
@ -30,6 +32,12 @@ void InstallerPrompt::tryLubuntu()
|
|
|
|
|
QApplication::quit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void InstallerPrompt::installLubuntu()
|
|
|
|
|
{
|
|
|
|
|
QProcess *calamares = new QProcess(this);
|
|
|
|
|
calamares->start("/usr/bin/pkexec /usr/bin/calamares");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
InstallerPrompt::~InstallerPrompt()
|
|
|
|
|
{
|
|
|
|
|
delete ui;
|
|
|
|
|