try fix internal install error
All checks were successful
buildbot/DocsGenerator Build finished.
buildbot/AndroidBuilder_v8Qt6 Build finished.
buildbot/LinuxCMakeBuilderQt6 Build finished.
buildbot/WindowsCMakeBuilder Build finished.
buildbot/IOSCMakeBuilder Build finished.

This commit is contained in:
Andrei Yankovich 2023-10-01 22:23:51 +02:00
parent ebd73e802b
commit a8678a578e
5 changed files with 14 additions and 1 deletions

View File

@ -99,6 +99,7 @@ public:
_argc = argc;
_argv = argv;
}
~Service() override {

View File

@ -17,6 +17,7 @@
#include "serviceprivate.h"
#include <chrono>
#include <thread>
#include "patronum.h"
namespace Patronum {
@ -24,6 +25,8 @@ ServiceBase::ServiceBase(int argc, char *argv[]) {
QuasarAppUtils::Params::parseParams(argc, argv);
d_ptr = new ServicePrivate(this);
init();
}
ServiceBase::~ServiceBase() {

View File

@ -36,7 +36,7 @@ bool InstallerSystemD::install(const QString &executable, const QString& user) {
QFile templ(":/systemd/SystemD/service.service");
QString name = PCommon::instance()->getServiceName();
if (!templ.open(QIODevice::ReadOnly)) {
QuasarAppUtils::Params::log(QString{"Cannot install %0. System error.\n"}.
QuasarAppUtils::Params::log(QString{"Cannot install %0. The service template not available.\n"}.
arg(name),
QuasarAppUtils::Error);

View File

@ -13,5 +13,10 @@ namespace Patronum {
QString patronumLibVersion() {
return PATRONUM_VERSION;
}
void init() {
initPatronumResources();
}
}

View File

@ -12,6 +12,8 @@
#include "PFeature.h"
#include "PService.h"
inline void initPatronumResources() { Q_INIT_RESOURCE(templates); }
/**
* @brief The Patronum namespace - It is main name space of Patronum Library.
* The Patronum library support the two work mode
@ -54,5 +56,7 @@ namespace Patronum {
* @return current version of library
*/
QString patronumLibVersion();
void init() ;
}
#endif // PATRONUM_H