xfce-polkit: don't run on lxde

This commit is contained in:
oreo639 2025-04-12 19:06:06 -07:00 committed by oreo639
parent 31c98fc034
commit 8738c56ceb
2 changed files with 45 additions and 2 deletions

View File

@ -0,0 +1,43 @@
From 4f9f6b66a3f5fcef49563efe4b04de050fa86e33 Mon Sep 17 00:00:00 2001
From: paledega <38860643+paledega@users.noreply.github.com>
Date: Sun, 11 Oct 2020 11:33:48 +0000
Subject: [PATCH] Fix conflict with lxpolkit on lxde
---
xfce-polkit.desktop.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/xfce-polkit.desktop.in b/xfce-polkit.desktop.in
index dd9f09c..2121740 100644
--- a/xfce-polkit.desktop.in
+++ b/xfce-polkit.desktop.in
@@ -5,3 +5,4 @@ Comment=Policykit Authentication Agent
Exec=@xfce_polkit_libexecdir@/xfce-polkit
Icon=gtk-dialog-authentication
NotShowIn=GNOME;KDE;
+OnlyShowIn=XFCE;
From d1f3976caa11cbbb3c1cd601a34755a4ed87be41 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 13 Apr 2025 12:47:55 -0700
Subject: [PATCH] Don't use both NotShowIn and OnlyShowIn
According to the XDG Autostart specification, the desktop file may have either
NotShowIn or OnlyShowIn but not both. It also doesn't really make much sense
to have both.
https://specifications.freedesktop.org/autostart-spec/0.5/
---
xfce-polkit.desktop.in | 1 -
1 file changed, 1 deletion(-)
diff --git a/xfce-polkit.desktop.in b/xfce-polkit.desktop.in
index 2121740..6fa0245 100644
--- a/xfce-polkit.desktop.in
+++ b/xfce-polkit.desktop.in
@@ -4,5 +4,4 @@ Name=XFCE PolKit
Comment=Policykit Authentication Agent
Exec=@xfce_polkit_libexecdir@/xfce-polkit
Icon=gtk-dialog-authentication
-NotShowIn=GNOME;KDE;
OnlyShowIn=XFCE;

View File

@ -1,7 +1,7 @@
# Template file for 'xfce-polkit' # Template file for 'xfce-polkit'
pkgname=xfce-polkit pkgname=xfce-polkit
version=0.3 version=0.3
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
makedepends="libxfce4ui-devel polkit-devel" makedepends="libxfce4ui-devel polkit-devel"
@ -9,5 +9,5 @@ short_desc="Simple PolicyKit authentication agent for XFCE"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later" license="GPL-2.0-or-later"
homepage="https://github.com/ncopa/xfce-polkit" homepage="https://github.com/ncopa/xfce-polkit"
distfiles="https://github.com/ncopa/xfce-polkit/releases/download/v${version}/${pkgname}-${version}.tar.gz" distfiles="https://github.com/ncopa/xfce-polkit/releases/download/v${version}/xfce-polkit-${version}.tar.gz"
checksum=564e566a83c2dd5fc2199481deb56842797fefbe985d4e55219bacbeb573f23a checksum=564e566a83c2dd5fc2199481deb56842797fefbe985d4e55219bacbeb573f23a