dde-dock/0001-Revert-fix.patch

38 lines
1.6 KiB
Diff
Raw Permalink Normal View History

From 9c4267f33adec589b2c72a87656c96f03046cbe1 Mon Sep 17 00:00:00 2001
From: Super User <root@localhost.localdomain>
Date: Sun, 28 Apr 2024 16:02:16 +0800
Subject: [PATCH 1/1] =?UTF-8?q?Revert=20"fix:=20=E4=BF=AE=E5=A4=8D?=
=?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=A0=8F=E7=94=B5=E6=BA=90=E6=8F=92=E4=BB=B6?=
=?UTF-8?q?=E5=8F=B3=E9=94=AE=E9=94=81=E5=AE=9A=E6=8F=90=E7=A4=BA=E9=94=81?=
=?UTF-8?q?=E5=B1=8F=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98"?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This reverts commit 277cb0def0242e7e6099c5b24d032fec3ccba69a.
---
plugins/shutdown/shutdownplugin.cpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/plugins/shutdown/shutdownplugin.cpp b/plugins/shutdown/shutdownplugin.cpp
index ef15f4ce..e5cdcf31 100644
--- a/plugins/shutdown/shutdownplugin.cpp
+++ b/plugins/shutdown/shutdownplugin.cpp
@@ -304,7 +304,12 @@ void ShutdownPlugin::invokedMenuItem(const QString &itemKey, const QString &menu
#endif
} else {
- QProcess::execute("bash -c \"originmap=$(setxkbmap -query | grep option | awk -F ' ' '{print $2}');/usr/bin/setxkbmap -option grab:break_actions&&/usr/bin/xdotool key XF86Ungrab&&dbus-send --print-reply --dest=com.deepin.dde.lockFront /com/deepin/dde/lockFront com.deepin.dde.lockFront.Show&&setxkbmap -option $originmap\"");
+ DDBusSender()
+ .service("com.deepin.dde.lockFront")
+ .interface("com.deepin.dde.lockFront")
+ .path("/com/deepin/dde/lockFront")
+ .method(QString("Show"))
+ .call();
}
} else
DDBusSender()
--
2.43.0