From 9fdb9a6670315b4e2c6e47b6beb83ddfd8af6ba0 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 31 Aug 2025 14:10:12 +0300 Subject: [PATCH] Fix desktop file and install it into autostart directory --- pkg.info | 1 + source-files/polkit-gnome-authentication-agent-1.desktop | 1 + source.sh | 5 ++++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg.info b/pkg.info index 3f75684..807ad56 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,7 @@ name: polkit-gnome description: Polkit authentication agent for GNOME version: 0.105 +revision: 2 url: https://gitlab.gnome.org/Archive/policykit-gnome license: LGPL architecture: any diff --git a/source-files/polkit-gnome-authentication-agent-1.desktop b/source-files/polkit-gnome-authentication-agent-1.desktop index b0c56bf..d546d00 100644 --- a/source-files/polkit-gnome-authentication-agent-1.desktop +++ b/source-files/polkit-gnome-authentication-agent-1.desktop @@ -1,3 +1,4 @@ +[Desktop Entry] Name=PolicyKit Authentication Agent Comment=PolicyKit Authentication Agent Exec=/usr/libexec/polkit-gnome-authentication-agent-1 diff --git a/source.sh b/source.sh index f2366c3..fe4cd42 100644 --- a/source.sh +++ b/source.sh @@ -23,7 +23,10 @@ build() { # This function is used to move the compiled files into the output directory package() { make DESTDIR="$BPM_OUTPUT" install - install -Dm644 "$BPM_WORKDIR"/polkit-gnome-authentication-agent-1.desktop -t "$BPM_OUTPUT"/usr/share/applications/ + # Install autostart desktop file + install -Dm644 "$BPM_WORKDIR"/polkit-gnome-authentication-agent-1.desktop "$BPM_OUTPUT"/etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop + + # Install package license install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/polkit-gnome/COPYING }