From unknown Tue Jun 17 01:47:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#57981: 13.1.1; Evince synctex: env variables not inherited Resent-From: Fabian Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Wed, 21 Sep 2022 15:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57981 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 57981@debbugs.gnu.org X-Debbugs-Original-To: bug-auctex@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166377342318566 (code B ref -1); Wed, 21 Sep 2022 15:18:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Sep 2022 15:17:03 +0000 Received: from localhost ([127.0.0.1]:35022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ob1TC-0004pK-4e for submit@debbugs.gnu.org; Wed, 21 Sep 2022 11:17:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:44234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oawQw-0007lL-KF for submit@debbugs.gnu.org; Wed, 21 Sep 2022 05:54:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oawQw-0006kO-EZ for bug-auctex@gnu.org; Wed, 21 Sep 2022 05:54:22 -0400 Received: from fabianthomas.de ([116.203.192.215]:38178 helo=mail.fabianthomas.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oawQu-0004q4-1i for bug-auctex@gnu.org; Wed, 21 Sep 2022 05:54:22 -0400 Received: from localhost (p200300C5C7181C002Efda1ffFebBa8e6.dip0.t-ipconnect.de [IPv6:2003:c5:c718:1c00:2efd:a1ff:febb:a8e6]) by mail.fabianthomas.de (Postfix) with ESMTPSA id 024355F4AC for ; Wed, 21 Sep 2022 11:54:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fabianthomas.de; s=mail; t=1663754056; bh=T73Qs/GN7jf1/lGcQwe9CZbwlEmOjaiaK3V0iSWJZcQ=; h=From:To:Subject:Date:From; b=pRJmAmc+f27lffb/50J6zT2Xls1tNGdnceYpOCbdfwqBWgBM3FNo6SfD2XWXt987e GRoibN7/P5rhvQeWSQpBE0IhbzKX/R/NQcQCENwLHrVXOUjnibECusznQS3sW2MQij q5rGyO+Y5ciYL/CLUl9h7pdcd9ot5yH7Dj+dntlgfi7C4Wv0wKPLHGmlqSjfR16Bsk Mt2s61AOXxyuWY3tLJ4AW4WxGrL7p8dRX0upA+nPu3YR/9QLffdCJA3gfaYIrXfKf1 RDUsjEtDqDLTsuXDZFSpTswnMJJTzDzLymfKKmz0Nm0a4/glyuVzkZ89c39OeUJceR 0eTK0f1isIs7A== User-agent: mu4e 1.8.9; emacs 28.1 From: Fabian Thomas Date: Wed, 21 Sep 2022 11:42:46 +0200 Message-ID: <87o7v93veg.fsf@fabianthomas.de> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=116.203.192.215; envelope-from=fabian@fabianthomas.de; helo=mail.fabianthomas.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Mailman-Approved-At: Wed, 21 Sep 2022 11:17:00 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) 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. When I do cat /proc/`pidof okular`/environ, I get the full environment with variables from my ~/.zshenv, but when I do cat /proc/`pidof evince`/environ I get a plain version with no custom variables. When I start evince from command line everything works fine. I suspect, that this is some issue about how evince is started via dbus for synctex support. Here is the output of cat /proc/`pidof evince`/environ when started from emacs: SHELL=/bin/zshDBUS_STARTER_ADDRESS=unix:path=/run/user/1000/bus,guid=bfDISPLAY=:0XDG_RUNTIME_DIR=/run/user/1000LC_MONETARY=de_DE.UTF-8LC_NUMERIC=de_DE.UTF-8PATH=/usr/local/bin:/usr/binMAIL=/var/spool/mail/fabianSYSTEMD_EXEC_PID=2137DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus,guid=bfXAUTHORITY=/home/fabian/.XauthorityUSER=fabianDBUS_STARTER_BUS_TYPE=sessionMANAGERPID=2051LANG=en_US.UTF-8LC_COLLATE=CHOME=/home/fabianLOGNAME=fabian I use the following elisp code to set the viewer to evince (doom emacs): (after! tex (setq TeX-view-program-selection '((output-pdf "Evince") (output-pdf "Zathura") (output-pdf "Okular") (output-html "xdg-open")))) Emacs : GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6) of 2022-04-28 Package: 13.1.1 current state: ============== (setq AUCTeX-date "2022-02-22" window-system 'x LaTeX-version "2e" TeX-style-path '("~/.emacs.d/auctex" "/home/fabian/.emacs.d/.local/straight/build-28.1/auctex/style" "/home/fabian/.emacs.d/.local/cache/auctex/.auctex-auto" "/home/fabian/.emacs.d/.local/cache/auctex/.auctex-style" ".auctex-auto" ".auctex-style") TeX-auto-save t TeX-parse-self t TeX-master t TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %`%(extraopts) %S%(PDFout)%(mode)%' %(output-dir) %t" TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX") ("LaTeX" "%`%l%(mode)%' %T" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX") ("Makeinfo" "makeinfo %(extraopts) %(o-dir) %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo %(extraopts) %(o-dir) --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "amstex %(PDFout) %`%(extraopts) %S%(mode)%' %(output-dir) %t" TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX") ("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion") ("BibTeX" "bibtex %(O?aux)" TeX-run-BibTeX nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode context-mode) :help "Run BibTeX") ("Biber" "biber %(output-dir) %s" TeX-run-Biber nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run Biber") ("Texindex" "texindex %s.??" TeX-run-command nil (texinfo-mode) :help "Run Texindex") ("Texi2dvi" "%(PDF)texi2dvi %t" TeX-run-command nil (texinfo-mode) :help "Run Texi2dvi or Texi2pdf") ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file") ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command) ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Generate PostScript file") ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Convert DVI file to PostScript") ("Dvipdfmx" "dvipdfmx -o %(O?pdf) %d" TeX-run-dvipdfmx nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Convert DVI file to PDF with dvipdfmx") ("Ps2pdf" "ps2pdf %f %(O?pdf)" TeX-run-ps2pdf nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Convert PostScript file to PDF") ("Glossaries" "makeglossaries %(d-dir) %s" TeX-run-command nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run makeglossaries to create glossary file") ("Index" "makeindex %(O?idx)" TeX-run-index nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run makeindex to create index file") ("upMendex" "upmendex %(O?idx)" TeX-run-index t (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run upmendex to create index file") ("Xindy" "texindy %s" TeX-run-command nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run xindy to create index file") ("Check" "chktex -v6 -H %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness") ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for common mistakes") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document") ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files") ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files") ("Other" "" TeX-run-command t t :help "Run an arbitrary command")) ) From unknown Tue Jun 17 01:47:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#57981: 13.1.1; Evince synctex: env variables not inherited Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Fri, 23 Sep 2022 11:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57981 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Fabian Thomas Cc: 57981@debbugs.gnu.org X-Debbugs-Original-Cc: bug-auctex@gnu.org, 57981@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1663931320579 (code B ref -1); Fri, 23 Sep 2022 11:09:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Sep 2022 11:08:40 +0000 Received: from localhost ([127.0.0.1]:39556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obgXs-000097-3i for submit@debbugs.gnu.org; Fri, 23 Sep 2022 07:08:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:49250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obgXq-000090-VN for submit@debbugs.gnu.org; Fri, 23 Sep 2022 07:08:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56006) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obgXo-0007Co-1x for bug-auctex@gnu.org; Fri, 23 Sep 2022 07:08:34 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59508) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obgXm-0001gu-TV; Fri, 23 Sep 2022 07:08:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=/y7n3Z4RLaQj5cTt6rE3vqnyYErAwpXnqBtUaP04+jc=; b=jK0WuknnHliGIs Ail73UdQe/r4Vj9URa1a77y8Dua7KEkRZxxSwZMnjhbOKpsSSWt6icCrhR4oAP18S4LELPj+XbAD/ bS+BaLVRKuHpUbUDBJiNtr7fc7Ai1d115Er8fIKiixkHEkd05okz/yvuReXNgd0bBXt1IAYlqBnnO iBzW0aF4axtlgirbOC7G/KFeraixO7PRNi9JZVwuowQOH9AQ22grMbn2l6nMQ+qxst3PMdBH1uCcd 95flb5ll1mIAuPhPwDtszW2AKTQ6gZmar6O1IPqWJJzKDUnrustMYWWUBSNIgbdrKx8WNIs82MgXq p5CoM4acbYzXriVT4EBA==; Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:54207) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obgXh-0003Lf-B1; Fri, 23 Sep 2022 07:08:30 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id 142B527C0054; Fri, 23 Sep 2022 07:08:23 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 23 Sep 2022 07:08:23 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeefiedgfeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvvefuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe dujedtheduvdelffejkeetgedvheelhedvueefhfeukeekkeehvdfggeegffevgfenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnod hmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedv leekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 23 Sep 2022 07:08:22 -0400 (EDT) References: <87o7v93veg.fsf@fabianthomas.de> User-agent: mu4e 1.9.0; emacs 29.0.50 From: Tassilo Horn Date: Fri, 23 Sep 2022 12:51:28 +0200 In-reply-to: <87o7v93veg.fsf@fabianthomas.de> Message-ID: <874jwyqrff.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Fabian Thomas via bug-auctex via Bug reporting list for AUCTeX 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 From unknown Tue Jun 17 01:47:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#57981: 13.1.1; Evince synctex: env variables not inherited Resent-From: Fabian Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Fri, 23 Sep 2022 11:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57981 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Tassilo Horn Cc: 57981@debbugs.gnu.org X-Debbugs-Original-Cc: bug-auctex@gnu.org, 57981@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166393339112301 (code B ref -1); Fri, 23 Sep 2022 11:44:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Sep 2022 11:43:11 +0000 Received: from localhost ([127.0.0.1]:39596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obh5L-0003CL-5U for submit@debbugs.gnu.org; Fri, 23 Sep 2022 07:43:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:41220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obh5J-0003CE-Uv for submit@debbugs.gnu.org; Fri, 23 Sep 2022 07:43:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obh5E-0003Dc-MM for bug-auctex@gnu.org; Fri, 23 Sep 2022 07:43:08 -0400 Received: from fabianthomas.de ([116.203.192.215]:38696 helo=mail.fabianthomas.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obh5B-0002fm-2o; Fri, 23 Sep 2022 07:43:02 -0400 Received: from localhost (p200300c5c7181c002eFdA1FfFEBBa8e6.dip0.t-ipconnect.de [IPv6:2003:c5:c718:1c00:2efd:a1ff:febb:a8e6]) by mail.fabianthomas.de (Postfix) with ESMTPSA id 823A05F555; Fri, 23 Sep 2022 13:42:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fabianthomas.de; s=mail; t=1663933375; bh=TEVoauRz2Is6mnpsY349kqF9JaCtXYOORFh6AL1c/PI=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=pF8kvllNvFDMWJjtKzUd5SAw6B7Bt2y0ykBKpwrEcNDX+8n7/2dvd3Cf4jAT984La 52WsFiDK3GPlo9km9ozecTmOLCD0J75srkrDz7O7+3T0tEKpfbXCpPJpVBO+J39M8/ v7pCvVvb57dLeqRrjQ2eKBh233Pg2ytKwmaU/ckyzDjvMciTwCkPIZKoxaNXoF+opD DsjTwf8OZFfJMyP813ScZpupsVyTrMZaLf7LBdHyHLSrAa1/yMmIsLNeOs1erPUprx KFT2gSGwRJ/7vGOXjvMAv1JaVwkkz7fXF4/cxtnh+J7moiPv+oeGxbhnW6OL0XSyBu rcBpJd/QkJGiQ== References: <87o7v93veg.fsf@fabianthomas.de> <874jwyqrff.fsf@gnu.org> User-agent: mu4e 1.8.9; emacs 28.1 From: Fabian Thomas Date: Fri, 23 Sep 2022 13:38:40 +0200 In-reply-to: <874jwyqrff.fsf@gnu.org> Message-ID: <87h70y1flt.fsf@fabianthomas.de> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=116.203.192.215; envelope-from=fabian@fabianthomas.de; helo=mail.fabianthomas.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hi Tassilo, > 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. That is exactly what I needed. Thank you. > But how is the missing environment a problem? Which environment > variables does Evince need? I have a linkhandler script for all http/https links in ~/.local/bin and therefore I need PATH to be set correctly to trigger this linkhandler instead of opening some random browser. Thank you very much, Fabian From unknown Tue Jun 17 01:47:40 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Fabian Thomas Subject: bug#57981: closed (Re: bug#57981: 13.1.1; Evince synctex: env variables not inherited) Message-ID: References: <87zgempeev.fsf@gnu.org> <87o7v93veg.fsf@fabianthomas.de> X-Gnu-PR-Message: they-closed 57981 X-Gnu-PR-Package: auctex Reply-To: 57981@debbugs.gnu.org Date: Mon, 26 Sep 2022 11:25:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1664191502-8223-1" This is a multi-part message in MIME format... ------------=_1664191502-8223-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #57981: 13.1.1; Evince synctex: env variables not inherited which was filed against the auctex package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 57981@debbugs.gnu.org. --=20 57981: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D57981 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1664191502-8223-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 57981-done) by debbugs.gnu.org; 26 Sep 2022 11:24:04 +0000 Received: from localhost ([127.0.0.1]:49468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocmDU-00027P-CC for submit@debbugs.gnu.org; Mon, 26 Sep 2022 07:24:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocmDR-00026q-I9 for 57981-done@debbugs.gnu.org; Mon, 26 Sep 2022 07:24:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocmDL-0000nP-Oq; Mon, 26 Sep 2022 07:23:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=tChVJzxyTd59EzrUZMmJtt9ructlvfUh2J6t1whXGBQ=; b=WIcnDVItG6+fGZ CU8C8SY4vc/luTQmCTWt8s0sBqAoD+iF8mC0OC6l2jwMgMg2OC2QQ3MqLaT7FM2oTrIZZEyKHnQEM xEcDROCVUNO2FLZTDgrSB+gl8J2V7+WDhe8xhABlqTSPYI4xuLcKGDFaD7lgCAyz7FE82VTE8cbfw XHyWxxuglj8i3BXSAAnYHTb2JRGklBS4uLuOIcvEeRNg62N+HvERz4qNbAaLxYj/lEOHQqwIoIKD6 ISiHkjTQunsBgJhyRaXxlz9nLkqNG1VN1Tbe/8cLVCwXclRD4RXyslf/rZ1j5CJgQoW4DVMoOgCK8 5vN+GXZmangLfrFtlT5g==; Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:40693) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ocmDL-0000jI-GK; Mon, 26 Sep 2022 07:23:55 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 01C1827C0054; Mon, 26 Sep 2022 07:23:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 26 Sep 2022 07:23:55 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeegvddggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvvefuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe dujedtheduvdelffejkeetgedvheelhedvueefhfeukeekkeehvdfggeegffevgfenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnod hmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedv leekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 26 Sep 2022 07:23:53 -0400 (EDT) References: <87o7v93veg.fsf@fabianthomas.de> <874jwyqrff.fsf@gnu.org> <87h70y1flt.fsf@fabianthomas.de> User-agent: mu4e 1.9.0; emacs 29.0.50 From: Tassilo Horn To: Fabian Thomas Subject: Re: bug#57981: 13.1.1; Evince synctex: env variables not inherited Date: Mon, 26 Sep 2022 13:23:05 +0200 In-reply-to: <87h70y1flt.fsf@fabianthomas.de> Message-ID: <87zgempeev.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57981-done Cc: 57981-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Fabian Thomas via bug-auctex via Bug reporting list for AUCTeX writes: Hi Fabian, >> 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. > > That is exactly what I needed. Thank you. Great, I'm closing the issue then. Bye, Tassilo ------------=_1664191502-8223-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Sep 2022 15:17:03 +0000 Received: from localhost ([127.0.0.1]:35022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ob1TC-0004pK-4e for submit@debbugs.gnu.org; Wed, 21 Sep 2022 11:17:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:44234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oawQw-0007lL-KF for submit@debbugs.gnu.org; Wed, 21 Sep 2022 05:54:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oawQw-0006kO-EZ for bug-auctex@gnu.org; Wed, 21 Sep 2022 05:54:22 -0400 Received: from fabianthomas.de ([116.203.192.215]:38178 helo=mail.fabianthomas.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oawQu-0004q4-1i for bug-auctex@gnu.org; Wed, 21 Sep 2022 05:54:22 -0400 Received: from localhost (p200300C5C7181C002Efda1ffFebBa8e6.dip0.t-ipconnect.de [IPv6:2003:c5:c718:1c00:2efd:a1ff:febb:a8e6]) by mail.fabianthomas.de (Postfix) with ESMTPSA id 024355F4AC for ; Wed, 21 Sep 2022 11:54:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fabianthomas.de; s=mail; t=1663754056; bh=T73Qs/GN7jf1/lGcQwe9CZbwlEmOjaiaK3V0iSWJZcQ=; h=From:To:Subject:Date:From; b=pRJmAmc+f27lffb/50J6zT2Xls1tNGdnceYpOCbdfwqBWgBM3FNo6SfD2XWXt987e GRoibN7/P5rhvQeWSQpBE0IhbzKX/R/NQcQCENwLHrVXOUjnibECusznQS3sW2MQij q5rGyO+Y5ciYL/CLUl9h7pdcd9ot5yH7Dj+dntlgfi7C4Wv0wKPLHGmlqSjfR16Bsk Mt2s61AOXxyuWY3tLJ4AW4WxGrL7p8dRX0upA+nPu3YR/9QLffdCJA3gfaYIrXfKf1 RDUsjEtDqDLTsuXDZFSpTswnMJJTzDzLymfKKmz0Nm0a4/glyuVzkZ89c39OeUJceR 0eTK0f1isIs7A== User-agent: mu4e 1.8.9; emacs 28.1 From: Fabian Thomas To: bug-auctex@gnu.org Subject: 13.1.1; Evince synctex: env variables not inherited Date: Wed, 21 Sep 2022 11:42:46 +0200 Message-ID: <87o7v93veg.fsf@fabianthomas.de> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=116.203.192.215; envelope-from=fabian@fabianthomas.de; helo=mail.fabianthomas.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 21 Sep 2022 11:17:00 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) 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. When I do cat /proc/`pidof okular`/environ, I get the full environment with variables from my ~/.zshenv, but when I do cat /proc/`pidof evince`/environ I get a plain version with no custom variables. When I start evince from command line everything works fine. I suspect, that this is some issue about how evince is started via dbus for synctex support. Here is the output of cat /proc/`pidof evince`/environ when started from emacs: SHELL=/bin/zshDBUS_STARTER_ADDRESS=unix:path=/run/user/1000/bus,guid=bfDISPLAY=:0XDG_RUNTIME_DIR=/run/user/1000LC_MONETARY=de_DE.UTF-8LC_NUMERIC=de_DE.UTF-8PATH=/usr/local/bin:/usr/binMAIL=/var/spool/mail/fabianSYSTEMD_EXEC_PID=2137DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus,guid=bfXAUTHORITY=/home/fabian/.XauthorityUSER=fabianDBUS_STARTER_BUS_TYPE=sessionMANAGERPID=2051LANG=en_US.UTF-8LC_COLLATE=CHOME=/home/fabianLOGNAME=fabian I use the following elisp code to set the viewer to evince (doom emacs): (after! tex (setq TeX-view-program-selection '((output-pdf "Evince") (output-pdf "Zathura") (output-pdf "Okular") (output-html "xdg-open")))) Emacs : GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6) of 2022-04-28 Package: 13.1.1 current state: ============== (setq AUCTeX-date "2022-02-22" window-system 'x LaTeX-version "2e" TeX-style-path '("~/.emacs.d/auctex" "/home/fabian/.emacs.d/.local/straight/build-28.1/auctex/style" "/home/fabian/.emacs.d/.local/cache/auctex/.auctex-auto" "/home/fabian/.emacs.d/.local/cache/auctex/.auctex-style" ".auctex-auto" ".auctex-style") TeX-auto-save t TeX-parse-self t TeX-master t TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %`%(extraopts) %S%(PDFout)%(mode)%' %(output-dir) %t" TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX") ("LaTeX" "%`%l%(mode)%' %T" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX") ("Makeinfo" "makeinfo %(extraopts) %(o-dir) %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo %(extraopts) %(o-dir) --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "amstex %(PDFout) %`%(extraopts) %S%(mode)%' %(output-dir) %t" TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX") ("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion") ("BibTeX" "bibtex %(O?aux)" TeX-run-BibTeX nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode context-mode) :help "Run BibTeX") ("Biber" "biber %(output-dir) %s" TeX-run-Biber nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run Biber") ("Texindex" "texindex %s.??" TeX-run-command nil (texinfo-mode) :help "Run Texindex") ("Texi2dvi" "%(PDF)texi2dvi %t" TeX-run-command nil (texinfo-mode) :help "Run Texi2dvi or Texi2pdf") ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file") ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command) ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Generate PostScript file") ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Convert DVI file to PostScript") ("Dvipdfmx" "dvipdfmx -o %(O?pdf) %d" TeX-run-dvipdfmx nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Convert DVI file to PDF with dvipdfmx") ("Ps2pdf" "ps2pdf %f %(O?pdf)" TeX-run-ps2pdf nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Convert PostScript file to PDF") ("Glossaries" "makeglossaries %(d-dir) %s" TeX-run-command nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run makeglossaries to create glossary file") ("Index" "makeindex %(O?idx)" TeX-run-index nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run makeindex to create index file") ("upMendex" "upmendex %(O?idx)" TeX-run-index t (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run upmendex to create index file") ("Xindy" "texindy %s" TeX-run-command nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run xindy to create index file") ("Check" "chktex -v6 -H %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness") ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for common mistakes") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document") ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files") ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files") ("Other" "" TeX-run-command t t :help "Run an arbitrary command")) ) ------------=_1664191502-8223-1--