From fbb8a582edec8c8bdd4e8801f063e81f36344527 Mon Sep 17 00:00:00 2001
From: Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de>
Date: Tue, 21 Jul 2020 16:56:09 +0200
Subject: [PATCH] Port namespace to Arctica Project

---
 API.rst        | 2 +-
 service.py     | 6 +++---
 test_client.py | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/API.rst b/API.rst
index d9b2698..770027a 100644
--- a/API.rst
+++ b/API.rst
@@ -4,7 +4,7 @@ API documentation for Session Service
 General information
 -------------------
 
-Bus name: ``de.rwa.rwa``
+Bus name: ``org.ArcticaProject.RWA``
 
 Object name: ``/RWA``
 
diff --git a/service.py b/service.py
index 6125a75..da6a8ca 100644
--- a/service.py
+++ b/service.py
@@ -11,13 +11,13 @@ from session import Session
 class RWAService(dbus.service.Object):
     def __init__(self):
         self.bus = dbus.SessionBus()
-        name = dbus.service.BusName("de.rwa.rwa", bus=self.bus)
+        name = dbus.service.BusName("org.ArcticaProject.RWA", bus=self.bus)
 
         self.update_service_running = False
         self.sessions = {}
         super().__init__(name, "/RWA")
 
-    @dbus.service.method("de.rwa.rwa", out_signature="s")
+    @dbus.service.method("org.ArcticaProject.RWA", out_signature="s")
     def start(self):
         """Start a new remote session."""
         # Start session
@@ -31,7 +31,7 @@ class RWAService(dbus.service.Object):
 
         return json.dumps(session.client_meta)
 
-    @dbus.service.method("de.rwa.rwa", in_signature="i")
+    @dbus.service.method("org.ArcticaProject.RWA", in_signature="i")
     def stop(self, pid: int):
         """Stop a remote session."""
         session = self.sessions[pid]
diff --git a/test_client.py b/test_client.py
index cd7d338..927dfd3 100644
--- a/test_client.py
+++ b/test_client.py
@@ -3,7 +3,7 @@ import dbus
 bus = dbus.SessionBus()
 
 
-time = bus.get_object("de.rwa.rwa", "/RWA")
+time = bus.get_object("org.ArcticaProject.RWA", "/RWA")
 
 
 curr = time.start()
-- 
GitLab