[Pkg-xfce-devel] Bug#791378: Bug#791378: conflicts with /etc/X11/Xsession.d/90gpg-agent and unsets GPG_AGENT_INFO
NIIBE Yutaka
gniibe at fsij.org
Wed Jul 8 05:04:19 UTC 2015
Hello,
I had same issue.
On Sat, 04 Jul 2015 21:19:11 +0200 Yves-Alexis Perez <corsac at debian.org> wrote:
> Well, this variable is not set by default, and the code explicitly
> checks for TRUE so you seem to had it set to TRUE somewhere.
> >
> > So, xfce4-session is clearly stomping on the toes of
> > /etc/X11/Xsession.d/90gpg-agent. Without reading its source code, but just
> > looking at strings, I hypothesize it's running gpg-agent, expecting some
> > output that it no longer produces, and then clobbering the already correctly
> > set GPG_AGENT_INFO.
>
> Well, if you read the code [1], xfce4-session only does that if:
>
> - /startup/gpg-agent/enabled is set to TRUE
> - gpg-agent binary is found
> - GPG_AGENT_INFO is set
> - the pid extracted from GPG_AGENT_INFO exists
The line:
https://sources.debian.net/src/xfce4-session/4.12.1-3/xfce4-session/xfsm-startup.c/#L225
if (xfconf_channel_get_bool (channel, "/startup/gpg-agent/enabled", TRUE))
It means that it checks the Boolean variable and defaults to TRUE
(when no definition).
https://sources.debian.net/src/xfconf/4.12.0-2/xfconf/xfconf-channel.c/#L973
/**
* xfconf_channel_get_bool:
* @channel: An #XfconfChannel.
* @property: A property name.
* @default_value: A fallback value.
*
* Retrieves the boolean value associated with @property on @channel.
*
* Returns: The boolean value, or, if @property is not in @channel,
* @default_value is returned.
**/
--
More information about the Pkg-xfce-devel
mailing list