summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'app/main.cpp')
-rw-r--r--app/main.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/app/main.cpp b/app/main.cpp
index 0b896b4..b3fd47a 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -14,10 +14,12 @@
#include "qcheapruler.hpp"
#include "file_operation.h"
+#include "AglShellGrpcClient.h"
+
int main(int argc, char *argv[])
{
- QString graphic_role = QString("tbtnavi");
- struct agl_shell_desktop *agl_shell_desktop = nullptr;
+ std::string our_name = "tbtnavi";
+ QString graphic_role = QString(our_name.c_str());
setenv("QT_QUICK_CONTROLS_STYLE", "AGL", 1);
@@ -28,6 +30,9 @@ int main(int argc, char *argv[])
QCoreApplication::setApplicationVersion("0.1.0");
app.setDesktopFileName(graphic_role);
+ GrpcClient *client = new GrpcClient();
+ client->SetAppOnOutput(our_name, "remoting-remote-1");
+
// Load qml
QQmlApplicationEngine engine;