all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Mark H Weaver <mhw@netris.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 1/2] gnu: xfce4-panel: Support panel plugins from other packages
Date: Sun, 14 Dec 2014 17:46:15 +0100	[thread overview]
Message-ID: <87d27mw560.fsf@gnu.org> (raw)
In-Reply-To: <877fxu3crr.fsf@netris.org> (Mark H. Weaver's message of "Sun, 14 Dec 2014 02:34:48 -0500")

Mark H Weaver <mhw@netris.org> skribis:

> In the past, xfce4-panel had a way to configure paths for per-user
> plugin directories, but later this was changed to use only compile-time
> constant paths, for reasons described here:
>
>   https://bugzilla.xfce.org/show_bug.cgi?id=5455
>
> Nix's current solution is simply to change the compile-time constant
> paths to /run/current-system/sw/..., which I found unsatisfying.

Agreed.  Users should be able to choose which plug-ins they wanna use.

> The following patch modifies xfce4-panel to search for panel plugins in
> directories specified by the XDG_DATA_DIRS and X_XFCE4_LIB_DIRS
> environment variables.  That latter name is my own invention, and I've
> waffled a bit on what to call it and how much of the pathname prefixes
> it should contain.

That sounds like the right approach to me.  I’d have called it just
‘XFCE4_LIB_DIRS’, but I guess you already discarded that for a good
reason, so that’s fine.  :-)

> From ffc34f08feb9175c140e7ee7d9dcfef07b0cb751 Mon Sep 17 00:00:00 2001
> From: Mark H Weaver <mhw@netris.org>
> Date: Sat, 13 Dec 2014 20:50:00 -0500
> Subject: [PATCH 1/2] gnu: xfce4-panel: Support panel plugins from other
>  packages.
>
> * gnu/packages/patches/xfce4-panel-plugins.patch: New file.
> * gnu-system.am (dist_patch_DATA): Add it.
> * gnu/packages/xfce.scm (xfce4-panel): Add the patch, and a
>   native search path specification for X_XFCE4_LIB_DIRS.

[...]

> +    ;; XXX This probably belongs somewhere else.
> +    (native-search-paths
> +     (list (search-path-specification
> +            (variable "X_XFCE4_LIB_DIRS")
> +            (directories '("lib/xfce4")))))

It those plug-ins are dlopened by xfce-panel, then this is the right
place, no?

LGTM!

Thank you,
Ludo’.

      reply	other threads:[~2014-12-14 16:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-14  7:34 [PATCH 1/2] gnu: xfce4-panel: Support panel plugins from other packages Mark H Weaver
2014-12-14 16:46 ` Ludovic Courtès [this message]

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=87d27mw560.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=mhw@netris.org \
    /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.