#include "misc.h"
#include "logger.h"
-#include "launchpad.h"
-#include "app-bundle.h"
#include "progress-bar.h"
#include "rmi/common.h"
#include "file-footer.h"
{
INFO(SINK, "Launching SD card password popup.");
try {
- AppBundle bundle;
- bundle.add("viewtype", "SD_CARD_PASSWORD");
-
- Launchpad launchpad(::tzplatform_getuid(TZ_SYS_DEFAULT_USER));
- launchpad.launch("org.tizen.ode", bundle);
+ 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");
} catch (runtime::Exception &e) {
ERROR(SINK, "Failed to launch SD card password popup: " + std::string(e.what()));
}
externalCallback);
systemDBus.subscribeSignal("",
- "/Org/Tizen/System/Pass/Core",
- "org.tizen.system.pass.core",
+ "/Org/Tizen/System/DeviceD/Core",
+ "org.tizen.system.deviced.core",
"BootingDone",
bootCompletionCallback);
}