unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#52393: pdf links not clickable when zathura is launched via xdg-open
@ 2021-12-09 17:58 bdju via Bug reports for GNU Guix
  2021-12-09 18:12 ` bdju via Bug reports for GNU Guix
  0 siblings, 1 reply; 3+ messages in thread
From: bdju via Bug reports for GNU Guix @ 2021-12-09 17:58 UTC (permalink / raw)
  To: 52393

guix (GNU Guix) f199427c1b6dd8e3428e25d4e15f604b3c90a3b7
Guix System

works: zathura file.pdf
doesn't work: xdg-open file.pdf

Both launch zathura since it's my default reader. In the xdg-open case,
clicking a link in a pdf seems to not do anything. If I launched with
zathura explicitly, it opens the link in my existing instance of
qutebrowser as I would expect.
No errors related to clicking the link seem to show up in a terminal.
When launched either way I do get a lot of errors saying
```
error: plugin: filetype already registered: application/pdf
```
and then similar ones for oxps, epub+zip, xml, etc. as well as a message
that libdjvu.so cannot be registered as a plugin. These seem like
non-fatal errors and are probably unrelated, but I thought I would
mention them anyway.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#52393: pdf links not clickable when zathura is launched via xdg-open
  2021-12-09 17:58 bug#52393: pdf links not clickable when zathura is launched via xdg-open bdju via Bug reports for GNU Guix
@ 2021-12-09 18:12 ` bdju via Bug reports for GNU Guix
  2021-12-09 18:25   ` bdju via Bug reports for GNU Guix
  0 siblings, 1 reply; 3+ messages in thread
From: bdju via Bug reports for GNU Guix @ 2021-12-09 18:12 UTC (permalink / raw)
  To: bdju, 52393


[-- Attachment #1.1: Type: text/plain, Size: 1352 bytes --]

in my mimeapps.list file I have zathura set like this:
application/pdf=org.pwmt.zathura.desktop
application/octet-stream=org.pwmt.zathura.desktop;
application/pdf=org.pwmt.zathura-pdf-mupdf.desktop;

I noticed there are two other zathura.desktop files on my system.
~/.guix-profile/share/applications/org.pwmt.zathura.desktop
~/.guix-profile/share/applications/org.pwmt.zathura-djvu.desktop
~/.guix-profile/share/applications/org.pwmt.zathura-pdf-mupdf.desktop

Perhaps I'm using the wrong one here. I also noticed I have two
application/pdf lines, but the first one is from the Default
Applications section and the second is from Added Associations.

Deleting the first line then makes xdg-open use a browser to open the
pdf, so I don't think that's the right way to go.

I tried also copying the later application/pdf line and replacing the
first one in the file with it, so this way it's still in the file in
both sections. With this, the file opens in zathura again, but clicking
links still does nothing. I'm not sure of the significance of the
semicolon at the end. Some of my lines have it, and some don't.

I'll attach my mimeapps.list file in case it's helpful to look over in
its entirety. (file has been reverted to the state it was at the start
of troubleshooting since none of the changes so far fixed the issue)

[-- Attachment #2: mimeapps.list.txt --]
[-- Type: text/plain, Size: 2071 bytes --]

[Default Applications]
x-scheme-handler/http=org.qutebrowser.qutebrowser.desktop
x-scheme-handler/https=org.qutebrowser.qutebrowser.desktop
x-scheme-handler/ftp=filezilla.desktop
x-scheme-handler/chrome=org.qutebrowser.qutebrowser.desktop
text/html=org.qutebrowser.qutebrowser.desktop
application/x-extension-htm=org.qutebrowser.qutebrowser.desktop
application/x-extension-html=org.qutebrowser.qutebrowser.desktop
application/x-extension-shtml=org.qutebrowser.qutebrowser.desktop
application/xhtml+xml=org.qutebrowser.qutebrowser.desktop
application/x-extension-xhtml=org.qutebrowser.qutebrowser.desktop
application/x-extension-xht=org.qutebrowser.qutebrowser.desktop
image/png=sxiv-usercreated-0.desktop;sxiv.desktop;
image/jpg=sxiv.desktop
image/gif=mpv.desktop
image/jpeg=sxiv.desktop
image/webp=sxiv.desktop
video/webm=mpv.desktop
application/pdf=org.pwmt.zathura.desktop
x-scheme-handler/magnet=userapp-transmission-gtk-W27CS0.desktop
inode/directory=ranger.desktop

[Added Associations]
x-scheme-handler/http=org.qutebrowser.qutebrowser.desktop
x-scheme-handler/https=org.qutebrowser.qutebrowser.desktop
x-scheme-handler/ftp=filezilla.desktop
x-scheme-handler/chrome=org.qutebrowser.qutebrowser.desktop
text/html=org.qutebrowser.qutebrowser.desktop
application/x-extension-htm=org.qutebrowser.qutebrowser.desktop
application/x-extension-html=org.qutebrowser.qutebrowser.desktop
application/x-extension-shtml=org.qutebrowser.qutebrowser.desktop
application/xhtml+xml=org.qutebrowser.qutebrowser.desktop
application/x-extension-xhtml=org.qutebrowser.qutebrowser.desktop
application/x-extension-xht=org.qutebrowser.qutebrowser.desktop
application/octet-stream=org.pwmt.zathura.desktop;
application/pdf=org.pwmt.zathura-pdf-mupdf.desktop;
x-scheme-handler/magnet=userapp-transmission-gtk-W27CS0.desktop;
text/plain=org.xfce.mousepad.desktop;mousepad.desktop;nvim.desktop;
application/json=mousepad.desktop;
text/x-csrc=mousepad.desktop;
image/png=sxiv-usercreated-0.desktop;
text/markdown=org.xfce.mousepad.desktop;
application/x-shellscript=org.xfce.mousepad.desktop;

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#52393: pdf links not clickable when zathura is launched via xdg-open
  2021-12-09 18:12 ` bdju via Bug reports for GNU Guix
@ 2021-12-09 18:25   ` bdju via Bug reports for GNU Guix
  0 siblings, 0 replies; 3+ messages in thread
From: bdju via Bug reports for GNU Guix @ 2021-12-09 18:25 UTC (permalink / raw)
  To: bdju, 52393-done

Okay, disregard. It seems a double-click is required rather than a
single click, and it takes about 5 seconds for anything to happen. I was
possibly clicking a different number of times between tests. Maybe I was
more desperate when I launched with zathura explicitly. It seems to work
the same both ways now.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-09 18:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-09 17:58 bug#52393: pdf links not clickable when zathura is launched via xdg-open bdju via Bug reports for GNU Guix
2021-12-09 18:12 ` bdju via Bug reports for GNU Guix
2021-12-09 18:25   ` bdju via Bug reports for GNU Guix

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).