auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to add a new pdf viewer?


From: Uwe Brauer
Subject: Re: how to add a new pdf viewer?
Date: Wed, 30 Aug 2023 11:12:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes:

>>> "TH" == Tassilo Horn <tsdh@gnu.org> writes:
>> Uwe Brauer <oub@mat.ucm.es> writes:
>> Hi Uwe,

>>> TeX-view-program-list is a variable defined in ‘tex.el’.
>>> 
>>> Its value is
>>> (("Evince44"
>>> ("TeX-evince-sync-view")
>>> "/usr/local/bin/evince"))


>> Well, kind of.  You have to figure out how that never evince version
>> serves the org.gnome.evince.Daemon service.  Right now, that seems to be
>> served by the old version.


Indeed 
locate org.gnome.evince.Daemon

Told me that there are two files


/snap/evince/1033/usr/share/dbus-1/services/org.gnome.evince.Daemon.service
/usr/share/dbus-1/services/org.gnome.evince.Daemon.service

They look as follows 

/usr/share

,----
| [D-BUS Service]
| Name=org.gnome.evince.Daemon
| Exec=/usr/lib/evince/evinced
| SystemdService=evince.service
`----



The one in snap 
,----
| [D-BUS Service]
| Name=org.gnome.evince.Daemon
| Exec=/snap/evince/current/usr/libexec/evinced
`----

So no SystemdServe line 



So I tried two things.

    1. I renamed the ubuntu one in /usr/share/dbus-1/services/
       to org.gnome.evince.Daemon.service-original and copied the one
       from snap to /usr/share/dbus-1/services/
       then I restarted emacs

    2. I just replaced the line 
       Exec=/usr/lib/evince/evinced
       by 
       Exec=/snap/evince/current/usr/libexec/evinced
       and restarted emacs


In both cases the new evince started but at the first page only.

Indeed when I switched back to the old 

org.gnome.evince.Daemon.service

File, and looked at 
TeX-view

Emacs used simply 
TeX-evince-sync-view

While when I changed the 
org.gnome.evince.Daemon.service

File emacs used the command 

evince -i 1 build/test-file.pdf


And I don't understand why it does this

I also realized that when I use evince by adding 

(TeX-command-list     ("evince-new" "/usr/local/bin/evince  %o" TeX-run-command 
t t)

Then I obtain.


Error registering document: 
GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process 
org.gnome.evince.Daemon exited with status 1
Fontconfig warning: "/etc/fonts/conf.avail/53-monospace-lcd-filter.conf", line 
10: Having multiple values in <test> isn't supported and may not work as 
expected

Any ideas?

Uwe Brauer


Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]