|
|
|
@ -24,6 +24,7 @@
|
|
|
|
#include <QFile>
|
|
|
|
#include <QFile>
|
|
|
|
#include <QLocale>
|
|
|
|
#include <QLocale>
|
|
|
|
#include <QTranslator>
|
|
|
|
#include <QTranslator>
|
|
|
|
|
|
|
|
#include <QDBusConnection>
|
|
|
|
|
|
|
|
|
|
|
|
#include "actions.h"
|
|
|
|
#include "actions.h"
|
|
|
|
|
|
|
|
|
|
|
|
@ -33,6 +34,14 @@ int main(int argc, char *argv[])
|
|
|
|
|
|
|
|
|
|
|
|
QGuiApplication app(argc, argv);
|
|
|
|
QGuiApplication app(argc, argv);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!QDBusConnection::sessionBus().registerService("org.cutefish.ShutdownUI")) {
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!QDBusConnection::sessionBus().registerObject("/ShutdownUI", &app)) {
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Translations
|
|
|
|
// Translations
|
|
|
|
QLocale locale;
|
|
|
|
QLocale locale;
|
|
|
|
QString qmFilePath = QString("%1/%2.qm").arg("/usr/share/cutefish-shutdown/translations/").arg(locale.name());
|
|
|
|
QString qmFilePath = QString("%1/%2.qm").arg("/usr/share/cutefish-shutdown/translations/").arg(locale.name());
|
|
|
|
|