Confirm reboot action with the user
Otherwise the system just immediately reboots with no confirmation as it typically does in other cases, which can be a little scary.
parent
3d873f60
-
Developer
Please use the calls in libkworkspace.
Or port to: org.kde.LogoutPrompt /LogoutPrompt org.kde.LogoutPrompt.promptReboot
-
Author Developer
Sure, I can port to one of those. Probably the other DBus call since Discover doesn't depend on workspace.
-
Author Developer
What arg do I feed
interface.asyncCall()
then? I have this:QDBusInterface interface(QStringLiteral("org.kde.LogoutPrompt"), QStringLiteral("/LogoutPrompt"), QStringLiteral("org.kde.LogoutPrompt.promptReboot"), QDBusConnection::sessionBus()); interface.asyncCall(QStringLiteral("????????????"));
-
Developer
While you're at it please port it to use a generated interface class instead of QDBusInterface. Kai will be very thankful.
-
Developer
QDBusInterface interface(QStringLiteral("org.kde.LogoutPrompt"), //service QStringLiteral("/LogoutPrompt"), //path QStringLiteral("org.kde.LogoutPrompt"), //interface name QDBusConnection::sessionBus()); interface.asyncCall(QStringLiteral("promptReboot")); //method name
in qdbus calls we write interfaceName.methodName to confuse things
-
Author Developer
Thanks David!
-
Author Developer
Please register or sign in to comment