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 "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;
|
||||||
|
@ -17,6 +17,7 @@ public:
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void tryLubuntu();
|
void tryLubuntu();
|
||||||
|
void installLubuntu();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::InstallerPrompt *ui;
|
Ui::InstallerPrompt *ui;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user