From 3ca55ad794b9fd28fde5c751e5cccd2877fc13f8 Mon Sep 17 00:00:00 2001 From: Himanshu Rajput Date: Fri, 24 Jul 2020 11:55:18 +0000 Subject: [PATCH] Update plugins/runcommand/runcommand_config.cpp --- plugins/runcommand/runcommand_config.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/runcommand/runcommand_config.cpp b/plugins/runcommand/runcommand_config.cpp index d2be6f96a..05d4ff0fb 100644 --- a/plugins/runcommand/runcommand_config.cpp +++ b/plugins/runcommand/runcommand_config.cpp @@ -49,6 +49,8 @@ RunCommandConfig::RunCommandConfig(QWidget* parent, const QVariantList& args) } QMenu* defaultMenu = new QMenu(this); + addSuggestedCommand(defaultMenu, i18n("Shutdown"), QStringLiteral("systemctl poweroff")); + addSuggestedCommand(defaultMenu, i18n("Reboot"), QStringLiteral("systemctl reboot")); addSuggestedCommand(defaultMenu, i18n("Suspend"), QStringLiteral("systemctl suspend")); addSuggestedCommand(defaultMenu, i18n("Maximum Brightness"), QStringLiteral("%0 org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness `%0 org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightnessMax`").arg(qdbusExe)); addSuggestedCommand(defaultMenu, i18n("Lock Screen"), QStringLiteral("loginctl lock-session"));