GNU bug report logs - #57981
13.1.1; Evince synctex: env variables not inherited

Previous Next

Package: auctex;

Reported by: Fabian Thomas <fabian <at> fabianthomas.de>

Date: Wed, 21 Sep 2022 15:18:01 UTC

Severity: normal

Found in version 13.1.1

Done: Tassilo Horn <tsdh <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tassilo Horn <tsdh <at> gnu.org>
To: Fabian Thomas <fabian <at> fabianthomas.de>
Cc: 57981 <at> debbugs.gnu.org
Subject: bug#57981: 13.1.1; Evince synctex: env variables not inherited
Date: Fri, 23 Sep 2022 12:51:28 +0200
Fabian Thomas via bug-auctex via Bug reporting list for AUCTeX <bug-auctex <at> gnu.org> writes:

Hi Fabian,

> When using TeX-view to open the current configured pdf with synctex
> forward search, the evince pdf viewer does not inherit or load
> environment variables from e.g., ~/.zshenv.
>
> Other viewers like zathura or okular work perfectly fine.
>
> I suspect, that this is some issue about how evince is started via
> dbus for synctex support.

Most probably, yes.  Viewers started via start-process inherit the
environment of emacs which will have sourced your .zshenv if ZSH is your
default shell and you've started emacs from the command line.  I guess
when starting Evince via dbus it'll only have the environment of your DE
(gnome-session started via GDM or such) which is probably very basic.

I cannot see how AUCTeX could do anything about that.  I think you
somehow need to start a zsh which then launches dbus.  Or maybe the
shell command "dbus-update-activation-environment --all" (maybe with
--systemd) can help?  At least its docs suggest so.

But how is the missing environment a problem?  Which environment
variables does Evince need?

Bye,
Tassilo




This bug report was last modified 2 years and 235 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.