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