Use proper service for external password UI
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 7 Jun 2019 14:58:26 +0000 (16:58 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 2 Aug 2019 11:42:37 +0000 (13:42 +0200)
Change-Id: I95c0d24041130df973e0817744c2ff4893bd006c

server/external-encryption.cpp

index d2f129a..a58dd23 100644 (file)
@@ -49,13 +49,12 @@ void spawnUI()
        INFO(SINK, "Launching SD card password popup.");
        try {
                dbus::Connection &systemDBus = dbus::Connection::getSystem();
-               std::string unit("ode-password@external.service");
 
                systemDBus.methodcall("org.freedesktop.systemd1",
                                                                "/org/freedesktop/systemd1",
                                                                "org.freedesktop.systemd1.Manager",
                                                                "StartUnit",
-                                                               -1, "", "(ss)", unit.c_str(), "replace");
+                                                               -1, "", "(ss)", "ode-external-lock.service", "replace");
        } catch (runtime::Exception &e) {
                ERROR(SINK, "Failed to launch SD card password popup: " + std::string(e.what()));
        }