Created a scaffold for Linux installation
This commit is contained in:
parent
a71ca29b2f
commit
efdd47a63d
4 changed files with 16 additions and 5 deletions
|
|
@ -34,5 +34,6 @@ class IpcInterface
|
|||
SLOT( bool updateResolvers(const QString& ifname, const QList<QHostAddress>& resolvers) );
|
||||
|
||||
SLOT( int mountDmg(const QString &path, bool mount) );
|
||||
SLOT (int installApp(const QString &path));
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -377,3 +377,11 @@ int IpcServer::mountDmg(const QString &path, bool mount)
|
|||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
int IpcServer::installApp(const QString &path)
|
||||
{
|
||||
#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)
|
||||
return QProcess::execute(QString("sudo dpkg -i %1").arg(path));
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ public:
|
|||
virtual bool disableKillSwitch() override;
|
||||
virtual bool updateResolvers(const QString& ifname, const QList<QHostAddress>& resolvers) override;
|
||||
virtual int mountDmg(const QString &path, bool mount) override;
|
||||
virtual int installApp(const QString &path) override;
|
||||
|
||||
private:
|
||||
int m_localpid = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue