1
0
Files
kdeconnect-kde/0001-Use-qdbus-qt5.patch
Luca Beltrame e3d7de8080 Accepting request 818407 from home:Vogtinator:branches:KDE:Applications
RFC. I'm not sure whether this is the right approach, as this is saved in the config, which would no longer work once we fully migrated to Qt6.
If you agree, I'd send a patch upstream to autodetect qdbus-qt5.

- Add patch to fix suggested commands in the runcommand config:
  * 0001-Use-qdbus-qt5.patch

OBS-URL: https://build.opensuse.org/request/show/818407
OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kdeconnect-kde?expand=0&rev=9
2020-07-09 05:13:20 +00:00

32 lines
2.5 KiB
Diff

From 92a7982a202f9c374a84ee3218a4ba5657b294d4 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Thu, 2 Jul 2020 22:26:10 +0200
Subject: [PATCH] Use qdbus-qt5
---
plugins/runcommand/runcommand_config.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/plugins/runcommand/runcommand_config.cpp b/plugins/runcommand/runcommand_config.cpp
index 7a7ed772..c375a832 100644
--- a/plugins/runcommand/runcommand_config.cpp
+++ b/plugins/runcommand/runcommand_config.cpp
@@ -43,11 +43,11 @@ RunCommandConfig::RunCommandConfig(QWidget* parent, const QVariantList& args)
{
QMenu* defaultMenu = new QMenu(this);
addSuggestedCommand(defaultMenu, i18n("Suspend"), QStringLiteral("systemctl suspend"));
- addSuggestedCommand(defaultMenu, i18n("Maximum Brightness"), QStringLiteral("qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness `qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightnessMax`"));
+ addSuggestedCommand(defaultMenu, i18n("Maximum Brightness"), QStringLiteral("qdbus-qt5 org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness `qdbus-qt5 org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightnessMax`"));
addSuggestedCommand(defaultMenu, i18n("Lock Screen"), QStringLiteral("loginctl lock-session"));
addSuggestedCommand(defaultMenu, i18n("Unlock Screen"), QStringLiteral("loginctl unlock-session"));
- addSuggestedCommand(defaultMenu, i18n("Close All Vaults"), QStringLiteral("qdbus org.kde.kded5 /modules/plasmavault closeAllVaults"));
- addSuggestedCommand(defaultMenu, i18n("Forcefully Close All Vaults"), QStringLiteral("qdbus org.kde.kded5 /modules/plasmavault forceCloseAllVaults"));
+ addSuggestedCommand(defaultMenu, i18n("Close All Vaults"), QStringLiteral("qdbus-qt5 org.kde.kded5 /modules/plasmavault closeAllVaults"));
+ addSuggestedCommand(defaultMenu, i18n("Forcefully Close All Vaults"), QStringLiteral("qdbus-qt5 org.kde.kded5 /modules/plasmavault forceCloseAllVaults"));
QTableView* table = new QTableView(this);
table->horizontalHeader()->setStretchLastSection(true);
--
2.25.1