From fb8ce443c9344174479d864465e85efb3c84fe1f Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sun, 25 Sep 2022 16:52:33 -0400 Subject: [PATCH] Add Fedora patches to change default desktop context menu configuration - Enable "Open Terminal" action - Enable "Lock" and "Logout" actions --- ...ce-5.25.90-enable-lock-logout-action.patch | 29 +++++++++++++++++++ ...-5.25.90-enable-open-terminal-action.patch | 28 ++++++++++++++++++ plasma-workspace.spec | 11 ++++++- 3 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 plasma-workspace-5.25.90-enable-lock-logout-action.patch create mode 100644 plasma-workspace-5.25.90-enable-open-terminal-action.patch diff --git a/plasma-workspace-5.25.90-enable-lock-logout-action.patch b/plasma-workspace-5.25.90-enable-lock-logout-action.patch new file mode 100644 index 0000000..86dc32c --- /dev/null +++ b/plasma-workspace-5.25.90-enable-lock-logout-action.patch @@ -0,0 +1,29 @@ +From 6f6a8771afdaa27208d3aea63525f62cafe787cf Mon Sep 17 00:00:00 2001 +From: Neal Gompa +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 + diff --git a/plasma-workspace-5.25.90-enable-open-terminal-action.patch b/plasma-workspace-5.25.90-enable-open-terminal-action.patch new file mode 100644 index 0000000..1c0fbb1 --- /dev/null +++ b/plasma-workspace-5.25.90-enable-open-terminal-action.patch @@ -0,0 +1,28 @@ +From 9788427b7f4f8802ccc2d4de7fad02b19488c2c8 Mon Sep 17 00:00:00 2001 +From: Neal Gompa +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 + diff --git a/plasma-workspace.spec b/plasma-workspace.spec index fef5548..3778421 100644 --- a/plasma-workspace.spec +++ b/plasma-workspace.spec @@ -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 - 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 - 5.25.90-1 - 5.25.90