summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-08-15 20:38:42 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2021-08-15 20:56:39 +0200
commit30d6ef4fc1cd0fbb61f4cea6f7be0424956a0dad (patch)
tree13bba04e9b7e54c1618abdf03ff8ae655c743f39 /kde-frameworks
parentkde-frameworks/kio: KDirOperator: exp. to url only in detail treeview (diff)
downloadgentoo-30d6ef4fc1cd0fbb61f4cea6f7be0424956a0dad.tar.gz
gentoo-30d6ef4fc1cd0fbb61f4cea6f7be0424956a0dad.tar.bz2
gentoo-30d6ef4fc1cd0fbb61f4cea6f7be0424956a0dad.zip
kde-frameworks/kio: Allow editing icons for root-owned desktop files
Upstream commit 2187b62588b060bc27143dd326b5171aec930454 KDE-bug: https://bugs.kde.org/show_bug.cgi?id=429613 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-frameworks')
-rw-r--r--kde-frameworks/kio/files/kio-5.85.0-allow-edit-icons-for-root-owned-desktop-files.patch32
-rw-r--r--kde-frameworks/kio/kio-5.85.0-r1.ebuild1
2 files changed, 33 insertions, 0 deletions
diff --git a/kde-frameworks/kio/files/kio-5.85.0-allow-edit-icons-for-root-owned-desktop-files.patch b/kde-frameworks/kio/files/kio-5.85.0-allow-edit-icons-for-root-owned-desktop-files.patch
new file mode 100644
index 000000000000..34a70a827e03
--- /dev/null
+++ b/kde-frameworks/kio/files/kio-5.85.0-allow-edit-icons-for-root-owned-desktop-files.patch
@@ -0,0 +1,32 @@
+From 2187b62588b060bc27143dd326b5171aec930454 Mon Sep 17 00:00:00 2001
+From: Nicolas Fella <nicolas.fella@gmx.de>
+Date: Sat, 7 Aug 2021 19:38:43 +0000
+Subject: [PATCH] [kpropertiesdialog] Allow editing icons for root-owned
+ desktop files
+
+---
+ src/widgets/kpropertiesdialog.cpp | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/src/widgets/kpropertiesdialog.cpp b/src/widgets/kpropertiesdialog.cpp
+index 76155338e..2288ccc08 100644
+--- a/src/widgets/kpropertiesdialog.cpp
++++ b/src/widgets/kpropertiesdialog.cpp
+@@ -1206,6 +1206,14 @@ KFilePropsPlugin::KFilePropsPlugin(KPropertiesDialog *_props)
+ bool KFilePropsPlugin::enableIconButton() const
+ {
+ const KFileItem item = properties->item();
++
++ // desktop files are special, files in /usr/share/applications can be
++ // edited by overlaying them in .local/share/applications
++ // https://bugs.kde.org/show_bug.cgi?id=429613
++ if (item.isDesktopFile()) {
++ return true;
++ }
++
+ // If the current item is a directory, check if it's writable,
+ // so we can create/update a .directory
+ // Current item is a file, same thing: check if it is writable
+--
+GitLab
+
diff --git a/kde-frameworks/kio/kio-5.85.0-r1.ebuild b/kde-frameworks/kio/kio-5.85.0-r1.ebuild
index 9522606997f7..ed1bd212da34 100644
--- a/kde-frameworks/kio/kio-5.85.0-r1.ebuild
+++ b/kde-frameworks/kio/kio-5.85.0-r1.ebuild
@@ -73,6 +73,7 @@ PDEPEND=">=kde-frameworks/kded-${PVCUT}:5"
PATCHES=(
"${FILESDIR}"/${P}-KDirOperator-exp-to-url-only-in-detail-treeview.patch # KDE-bug 440475
+ "${FILESDIR}"/${P}-allow-edit-icons-for-root-owned-desktop-files.patch # KDE-bug 429613
)
src_configure() {