From 8aad9cf7f553f0cd9e64f01057d49a922f666f0a Mon Sep 17 00:00:00 2001 From: Nadim Kobeissi Date: Sun, 27 Aug 2023 11:44:01 +0200 Subject: [PATCH] plasma-desktop: remove Discover from default panel This commit removes shortcuts to KDE Discover from the default menus of the default Plasma Desktop installation in NixOS. Right now, in for example the official NixOS 23.05 Plasma Desktop ISO (as well as other installation vectors), a broken KDE Discover link is included in the default toolbar and other places, leading to a worse user experience, since NixOS intentionally does not ship the Plasma Desktop with KDE Discover. Confirmed working through building an ISO. --- pkgs/desktops/plasma-5/plasma-desktop/default.nix | 1 + .../plasma-desktop/no-discover-shortcut.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 pkgs/desktops/plasma-5/plasma-desktop/no-discover-shortcut.patch diff --git a/pkgs/desktops/plasma-5/plasma-desktop/default.nix b/pkgs/desktops/plasma-5/plasma-desktop/default.nix index 28dfa434f7b0..aaf1519ceaeb 100644 --- a/pkgs/desktops/plasma-5/plasma-desktop/default.nix +++ b/pkgs/desktops/plasma-5/plasma-desktop/default.nix @@ -127,6 +127,7 @@ mkDerivation { ./hwclock-path.patch ./tzdir.patch ./kcm-access.patch + ./no-discover-shortcut.patch ]; CXXFLAGS = [ diff --git a/pkgs/desktops/plasma-5/plasma-desktop/no-discover-shortcut.patch b/pkgs/desktops/plasma-5/plasma-desktop/no-discover-shortcut.patch new file mode 100644 index 000000000000..f186671c9cc5 --- /dev/null +++ b/pkgs/desktops/plasma-5/plasma-desktop/no-discover-shortcut.patch @@ -0,0 +1,13 @@ +diff --git a/applets/taskmanager/package/contents/config/main.xml b/applets/taskmanager/package/contents/config/main.xml +index 6bb27695d..25e621810 100644 +--- a/applets/taskmanager/package/contents/config/main.xml ++++ b/applets/taskmanager/package/contents/config/main.xml +@@ -85,7 +85,7 @@ + + + +- applications:systemsettings.desktop,applications:org.kde.discover.desktop,preferred://filemanager,preferred://browser ++ applications:systemsettings.desktop,preferred://filemanager,preferred://browser + + +