Add Fedora patches to change default desktop context menu configuration

- Enable "Open Terminal" action
- Enable "Lock" and "Logout" actions
epel9
Neal Gompa 2 years ago
parent a47c35fd23
commit fb8ce443c9

@ -0,0 +1,29 @@
From 6f6a8771afdaa27208d3aea63525f62cafe787cf Mon Sep 17 00:00:00 2001
From: Neal Gompa <ngompa@fedoraproject.org>
Date: Sun, 25 Sep 2022 16:46:47 -0400
Subject: [PATCH] containmentactions/contextmenu: Enable lock/logout
actions by default
Fedora users expect these items to exist in the desktop context menu
by default unless they've been manually disabled or removed via the
Kiosk mode.
---
containmentactions/contextmenu/menu.cpp | 2 --
1 file changed, 2 deletions(-)
diff --git a/containmentactions/contextmenu/menu.cpp b/containmentactions/contextmenu/menu.cpp
index 4392d50f5..80769e615 100644
--- a/containmentactions/contextmenu/menu.cpp
+++ b/containmentactions/contextmenu/menu.cpp
@@ -78,8 +78,6 @@ void ContextMenu::restore(const KConfigGroup &config)
disabled.insert(QStringLiteral("configure shortcuts"));
disabled.insert(QStringLiteral("_run_command"));
disabled.insert(QStringLiteral("run associated application"));
- disabled.insert(QStringLiteral("_lock_screen"));
- disabled.insert(QStringLiteral("_logout"));
}
// clang-format on
--
2.36.1

@ -0,0 +1,28 @@
From 9788427b7f4f8802ccc2d4de7fad02b19488c2c8 Mon Sep 17 00:00:00 2001
From: Neal Gompa <ngompa@fedoraproject.org>
Date: Sun, 25 Sep 2022 16:45:07 -0400
Subject: [PATCH] containmentactions/contextmenu: Enable "Open Terminal" by
default
Fedora users expect this item to exist in the desktop context menu
by default unless it has been manually disabled or removed via the
Kiosk mode.
---
containmentactions/contextmenu/menu.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/containmentactions/contextmenu/menu.cpp b/containmentactions/contextmenu/menu.cpp
index 6bad29751..4392d50f5 100644
--- a/containmentactions/contextmenu/menu.cpp
+++ b/containmentactions/contextmenu/menu.cpp
@@ -76,7 +76,6 @@ void ContextMenu::restore(const KConfigGroup &config)
<< QStringLiteral("_sep3")
<< QStringLiteral("_wallpaper");
disabled.insert(QStringLiteral("configure shortcuts"));
- disabled.insert(QStringLiteral("_open_terminal"));
disabled.insert(QStringLiteral("_run_command"));
disabled.insert(QStringLiteral("run associated application"));
disabled.insert(QStringLiteral("_lock_screen"));
--
2.36.1

@ -28,7 +28,7 @@
Name: plasma-workspace
Summary: Plasma workspace, applications and applets
Version: 5.25.90
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2+
URL: https://invent.kde.org/plasma/%{name}
@ -72,6 +72,10 @@ Source41: spice-vdagent.conf
# and example,
# https://github.com/notmart/artwork-lnf-netrunner-core/blob/master/usr/share/plasma/look-and-feel/org.kde.netrunner-core.desktop/contents/defaults
Patch105: plasma-workspace-5.21.90-folderview_layout.patch
# default to enable open terminal action
Patch106: plasma-workspace-5.25.90-enable-open-terminal-action.patch
# default to enable the lock/logout actions
Patch107: plasma-workspace-5.25.90-enable-lock-logout-action.patch
# udev
BuildRequires: zlib-devel
@ -774,6 +778,11 @@ fi
%changelog
* Sun Sep 25 2022 Neal Gompa <ngompa@fedoraproject.org> - 5.25.90-2
- Add Fedora patches to change default desktop context menu configuration
+ Enable "Open Terminal" action
+ Enable "Lock" and "Logout" actions
* Sat Sep 17 2022 Marc Deop <marcdeop@fedoraproject.org> - 5.25.90-1
- 5.25.90

Loading…
Cancel
Save