Launch Calamares on Install Lubuntu button.
This commit is contained in:
parent
0699c1c86a
commit
bc84bc1df6
@ -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;
|
||||
|
@ -17,6 +17,7 @@ public:
|
||||
|
||||
public slots:
|
||||
void tryLubuntu();
|
||||
void installLubuntu();
|
||||
|
||||
private:
|
||||
Ui::InstallerPrompt *ui;
|
||||
|
Loading…
x
Reference in New Issue
Block a user