From ef20e6422cea8089a4ecf2e7b0293c27bc71a56b Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Mon, 19 Apr 2021 16:37:55 +1000 Subject: [PATCH 1/2] gnu: polkit-mate: Enable autostarting in XFCE. * gnu/packages/mate.scm (polkit-mate): Add XFCE to the OnlyShowIn field of the autostart .desktop file so it will be started by XFCE too. This is for the same of making polkit-mate the de facto agent for XFCE in Guix, since XFCE does not have it's own official one. One downside of this is that since all these .desktop files end up in /run/current-system/profile/etc/, if a user for some reasons wants to have MATE installed, plus an XFCE that doesn't include mate-polkit, this cause XFCE to start it anyway. Not sure if that is a big deal. --- gnu/packages/mate.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/packages/mate.scm b/gnu/packages/mate.scm index 44420147a3..1a8a268cc9 100644 --- a/gnu/packages/mate.scm +++ b/gnu/packages/mate.scm @@ -7,6 +7,7 @@ ;;; Copyright © 2019 Guy Fleury Iteriteka ;;; Copyright © 2020 Jonathan Brielmaier ;;; Copyright © 2020 Mathieu Othacehe +;;; Copyright © 2021 Brendan Tildesley ;;; ;;; This file is part of GNU Guix. ;;; @@ -1511,6 +1512,14 @@ MATE Desktop to monitor your system resources and usage.") ("gtk+" ,gtk+) ("gdk-pixbuf" ,gdk-pixbuf) ("polkit" ,polkit))) + ;; This will allow mate-polkit to be used with XFCE too. + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-desktop-for-xfce + (lambda _ + (substitute* "src/polkit-mate-authentication-agent-1.desktop.in.in" + (("MATE;") "MATE;XFCE;"))))))) (home-page "https://mate-desktop.org/") (synopsis "DBus specific service for MATE") (description -- 2.31.1