all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: 'Brendan Tildesley <mail@brendan.scot>
To: 54434@debbugs.gnu.org
Cc: Maxime Devos <maximedevos@telenet.be>,
	Brendan Tildesley <mail@brendan.scot>
Subject: [bug#54434] [PATCH v2 7/7] gnu: xfce4-session: Load user panel plugins.
Date: Fri, 18 Mar 2022 18:38:44 +1100	[thread overview]
Message-ID: <20220318073844.14290-8-mail@brendan.scot> (raw)
In-Reply-To: <20220318073844.14290-1-mail@brendan.scot>

From: Brendan Tildesley <mail@brendan.scot>

 gnu/packages/xfce.scm (xfce4-session): [patches]: Add a patch to make
 use of X_XFCE4_LIB_DIRS and load user installed panel plugins. This is
 needed, because xfce is launched from /run/current-system/.... It will
 not otherwise load panel plugin .so's from the users home guix profile.

 gnu/packages/patches/xfce4-session-startxfce-load-user-plugins.patch:
 New file.
 gnu/local.mk: Reference patch file.
---
 gnu/local.mk                                  |  1 +
 ...-session-startxfce-load-user-plugins.patch | 20 +++++++++++++++++++
 gnu/packages/xfce.scm                         |  3 ++-
 3 files changed, 23 insertions(+), 1 deletion(-)
 create mode 100644 gnu/packages/patches/xfce4-session-startxfce-load-user-plugins.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 2911541275..4d968162ff 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1956,6 +1956,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/xf86-video-tga-remove-mibstore.patch	\
   %D%/packages/patches/xf86-video-voodoo-pcitag.patch		\
   %D%/packages/patches/xfce4-panel-plugins.patch		\
+  %D%/packages/patches/xfce4-session-startxfce-load-user-plugins.patch	\
   %D%/packages/patches/xfce4-settings-defaults.patch		\
   %D%/packages/patches/xgboost-use-system-dmlc-core.patch       \
   %D%/packages/patches/xmonad-dynamic-linking.patch		\
diff --git a/gnu/packages/patches/xfce4-session-startxfce-load-user-plugins.patch b/gnu/packages/patches/xfce4-session-startxfce-load-user-plugins.patch
new file mode 100644
index 0000000000..f6f1bbc9b1
--- /dev/null
+++ b/gnu/packages/patches/xfce4-session-startxfce-load-user-plugins.patch
@@ -0,0 +1,20 @@
+From a1c94934d211d69f9a2cdf03d64327bcd7cccb41 Mon Sep 17 00:00:00 2001
+From: Brendan Tildesley <mail@brendan.scot>
+Date: Thu, 17 Mar 2022 19:49:12 +1100
+Subject: [PATCH] startxfce4: load plugins from user profile
+
+---
+diff --git a/scripts/startxfce4.in b/scripts/startxfce4.in
+--- a/scripts/startxfce4.in
++++ b/scripts/startxfce4.in
+@@ -101,6 +101,8 @@ else
+   prog=/bin/sh
+ fi
+
++    export X_XFCE4_LIB_DIRS="${GUIX_PROFILE:-$HOME/.guix-profile}/lib/xfce4/${X_XFCE4_LIB_DIRS:+:}$X_XFCE4_LIB_DIRS"
++
+ if [ -f "$HOME/.xserverrc" ]; then
+   SERVERRC="$HOME/.xserverrc $SERVERRC"
+ elif [ -f /etc/X11/xinit/xserverrc ]; then
+
+
diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
index c36749c6a4..781046a968 100644
--- a/gnu/packages/xfce.scm
+++ b/gnu/packages/xfce.scm
@@ -658,7 +658,8 @@ (define-public xfce4-session
                     (("/sbin/shutdown -r now")  "restart")
                     (("/usr/sbin/pm-suspend")   "pm-suspend")
                     (("/usr/sbin/pm-hibernate") "pm-hibernate"))
-                  #t))))
+                  #t))
+              (patches (search-patches "xfce4-session-startxfce-load-user-plugins.patch"))))
     (build-system gnu-build-system)
     (arguments
      '(#:configure-flags
-- 
2.34.0





  parent reply	other threads:[~2022-03-18  7:40 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-17  8:03 [bug#54434] [PATCH 0/6] XFCE Updates Brendan Tildesley
2022-03-17  8:04 ` [bug#54434] [PATCH 1/6] gnu: xfce4-whiskermenu-plugin: Update to 2.6.2 'Brendan Tildesley
2022-03-17  8:04   ` [bug#54434] [PATCH 2/6] gnu: xfce4-screenshooter: Update to 1.9.10 'Brendan Tildesley
2022-03-17  8:04   ` [bug#54434] [PATCH 3/6] gnu: XFCE: Remove input labels 'Brendan Tildesley
2022-03-17 19:48     ` Maxime Devos
2022-03-18  5:37       ` Brendan Tildesley
2022-03-17  8:04   ` [bug#54434] [PATCH 4/6] gnu: mate-polkit-for-xfce: Unhide package 'Brendan Tildesley
2022-03-17 17:36     ` Maxime Devos
2022-03-18  5:10       ` Brendan Tildesley
2022-03-18  8:16         ` Maxime Devos
2022-03-17  8:04   ` [bug#54434] [PATCH 5/6] gnu: XFCE: Add notification support 'Brendan Tildesley
2022-03-17  8:04   ` [bug#54434] [PATCH 6/6] gnu: mate-polkit: Improve synopsis 'Brendan Tildesley
2022-03-18  7:38 ` [bug#54434] [PATCH v2 0/7] XFCE Updates 'Brendan Tildesley
2022-03-18  7:38   ` [bug#54434] [PATCH v2 1/7] gnu: xfce4-whiskermenu-plugin: Update to 2.6.2 'Brendan Tildesley
2022-03-18  7:38   ` [bug#54434] [PATCH v2 2/7] gnu: xfce4-screenshooter: Update to 1.9.10 'Brendan Tildesley
2022-03-18  7:38   ` [bug#54434] [PATCH v2 3/7] gnu: XFCE: Remove input labels 'Brendan Tildesley
2022-03-18  7:38   ` [bug#54434] [PATCH v2 4/7] gnu: mate-polkit-for-xfce: Unhide package 'Brendan Tildesley
2022-04-03 10:25     ` [bug#54434] [PATCH 0/6] XFCE Updates Ludovic Courtès
2022-04-04  1:13       ` Brendan Tildesley
2022-03-18  7:38   ` [bug#54434] [PATCH v2 5/7] gnu: XFCE: Add notification support 'Brendan Tildesley
2022-03-18  7:38   ` [bug#54434] [PATCH v2 6/7] gnu: mate-polkit: Improve synopsis 'Brendan Tildesley
2022-03-18  7:38   ` 'Brendan Tildesley [this message]
2022-04-03 10:33     ` [bug#54434] [PATCH 0/6] XFCE Updates Ludovic Courtès
2022-04-04  2:42       ` Brendan Tildesley
2022-04-04  2:56         ` Feng Shu
2022-04-04  3:53           ` Brendan Tildesley
2022-04-04  4:59             ` Feng Shu
2022-08-22  1:16             ` 宋文武 via Guix-patches via
2023-08-25  9:57       ` bug#54434: " 宋文武 via Guix-patches via
2022-10-09  6:30 ` [bug#54434] " Brendan Tildesley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220318073844.14290-8-mail@brendan.scot \
    --to=mail@brendan.scot \
    --cc=54434@debbugs.gnu.org \
    --cc=maximedevos@telenet.be \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.