pwmt issueshttps://git.pwmt.org/groups/pwmt/-/issues2023-03-18T21:29:04+01:00https://git.pwmt.org/pwmt/zathura/-/issues/342Segfault whenever I open a pdf's index2023-03-18T21:29:04+01:00RijnderSegfault whenever I open a pdf's indexI get a segfault whenever I open a pdf's index (i.e. by hitting tab). I guess I could send you a pdf to reproduce, but it happens on all pdfs with indexes.
Happens on the most recent commit, and with both the mupdf and poppler backend. ...I get a segfault whenever I open a pdf's index (i.e. by hitting tab). I guess I could send you a pdf to reproduce, but it happens on all pdfs with indexes.
Happens on the most recent commit, and with both the mupdf and poppler backend. Am running Arch Linux.https://git.pwmt.org/pwmt/zathura/-/issues/343Clicking on Tab closes the document instead of going to index mode.2023-03-18T21:27:40+01:00abhai kandulnaClicking on Tab closes the document instead of going to index mode.I have installed zathura-pdf-mupdf as backend in artix linux. When clicking on Tab the document automatically closes instead of going to index mode. This issue also occurs in zathura-pdf-poppler backend.I have installed zathura-pdf-mupdf as backend in artix linux. When clicking on Tab the document automatically closes instead of going to index mode. This issue also occurs in zathura-pdf-poppler backend.https://git.pwmt.org/pwmt/zathura/-/issues/341error: cannot open document, "cannot create context"2023-03-15T06:53:28+01:00Dean Gaoerror: cannot open document, "cannot create context"Whenever I open a pdf document, it comes up with the following error:
```
cannot create context: incompatible header (1.20.0) and library (1.21.1) versions
error: could not open document
```
zathura version:
```
zathura 0.5.2
girara 0....Whenever I open a pdf document, it comes up with the following error:
```
cannot create context: incompatible header (1.20.0) and library (1.21.1) versions
error: could not open document
```
zathura version:
```
zathura 0.5.2
girara 0.3.9 (runtime: 0.3.9)
(plugin) pdf-mupdf (0.3.9) (/usr/local/Cellar/zathura/HEAD-81e541e/lib/zathura/libpdf-mupdf.dylib)
```https://git.pwmt.org/pwmt/zathura/-/issues/306Allow opening EPUB if only fonts are encrypted2023-03-09T01:18:52+01:00Vlad-Stefan HarbuzAllow opening EPUB if only fonts are encryptedOpening a certain EPUB [0] returns "error: EPUB is locked by DRM". I am not very familiar with DRM mechanisms, but on a super quick inspection, it appears that the fonts are encrypted but the text is accessible. In this scenario, zathura...Opening a certain EPUB [0] returns "error: EPUB is locked by DRM". I am not very familiar with DRM mechanisms, but on a super quick inspection, it appears that the fonts are encrypted but the text is accessible. In this scenario, zathura should be able to open the EPUB.
[0]: https://vladh.net/t/the-problems-of-philosophy.epubhttps://git.pwmt.org/pwmt/zathura/-/issues/26Add "text selection"2023-03-07T15:20:29+01:00Francesco AriisAdd "text selection"As now, to copy some text, you need to draw a rectangle with your mouse over the text.
I would prefer "normal" text selection, where by "normal" I mean the way it works in your browser: I especially miss the double-click-to-highlight-si...As now, to copy some text, you need to draw a rectangle with your mouse over the text.
I would prefer "normal" text selection, where by "normal" I mean the way it works in your browser: I especially miss the double-click-to-highlight-single-word feature.https://git.pwmt.org/pwmt/zathura/-/issues/337Anything in the index leads to the end page2023-03-05T18:46:28+01:00ATM Jahid HasanAnything in the index leads to the end pageAfter updating zathura to 0.5.2 (with muPDF backend 0.4.0), the links in the index stopped working properly. Everything now leads to the last page of the PDF. I downgraded zathura to 0.4.9 (with muPDF backend 0.3.9) to verify that it use...After updating zathura to 0.5.2 (with muPDF backend 0.4.0), the links in the index stopped working properly. Everything now leads to the last page of the PDF. I downgraded zathura to 0.4.9 (with muPDF backend 0.3.9) to verify that it used to work properly before. I tested everything with the PDF linked below.
[A sample pdf](https://www.pdfdrive.com/drawing-cartoons-comics-for-dummies-d10783856.html)https://git.pwmt.org/pwmt/zathura/-/issues/335Wrong jpeg library version in develop branch.2023-02-16T09:11:48+01:00Pengfei ShiWrong jpeg library version in develop branch.Version:
```
$ zathura --version
zathura 0.5.2
girara 0.3.7 (runtime: 0.3.9)
(plugin) pdf-mupdf (0.4.0) (/usr/lib/zathura/libpdf-mupdf.so)
```
I'm using ArchLinux and Zathura-develop. However, Zathura of develop branch requires libjpe...Version:
```
$ zathura --version
zathura 0.5.2
girara 0.3.7 (runtime: 0.3.9)
(plugin) pdf-mupdf (0.4.0) (/usr/lib/zathura/libpdf-mupdf.so)
```
I'm using ArchLinux and Zathura-develop. However, Zathura of develop branch requires libjpeg9 to render jpeg in PDF correctly. When I open a PDF file with zathura in terminal , all JPG pictures are rendered black and zathura says:
```
$ zathura -l debug file.pdf
debug: ../girara/template.c:311: base_changed(): Variable 'session' not set.
debug: ../zathura/plugin.c:279: register_plugin(): plugin: filetype mapping added: application/pdf
debug: ../zathura/plugin.c:279: register_plugin(): plugin: filetype mapping added: application/oxps
debug: ../zathura/plugin.c:279: register_plugin(): plugin: filetype mapping added: application/epub+zip
debug: ../zathura/plugin.c:279: register_plugin(): plugin: filetype mapping added: application/x-fictionbook+xml
debug: ../zathura/plugin.c:279: register_plugin(): plugin: filetype mapping added: application/xml
debug: ../zathura/plugin.c:173: load_plugin(): Successfully loaded plugin from '/usr/lib/zathura/libpdf-mupdf.so'.
debug: ../zathura/plugin.c:174: load_plugin(): plugin pdf-mupdf: version 0.4.0
debug: ../girara/config.c:373: girara_config_parse(): reading configuration file '/etc/xdg/zathurarc'
debug: ../girara/config.c:270: config_parse(): failed to open config file '/etc/xdg/zathurarc'
debug: ../girara/config.c:373: girara_config_parse(): reading configuration file '/etc/zathurarc'
debug: ../girara/config.c:270: config_parse(): failed to open config file '/etc/zathurarc'
debug: ../girara/config.c:373: girara_config_parse(): reading configuration file '/home/rqdmap/.config/zathura/zathurarc'
debug: ../zathura/zathura.c:447: zathura_init(): Sandbox deactivated.
debug: ../girara/session.c:935: girara_set_window_icon(): Loading window icon with name: org.pwmt.zathura
debug: ../zathura/zathura.c:374: init_database(): Using plain database backend.
debug: ../zathura/zathura.c:203: zathura_update_view_ppi(): monitor width: 673 mm, pixels: 2560, ppi: 96.62
debug: ../zathura/zathura.c:203: zathura_update_view_ppi(): monitor width: 673 mm, pixels: 2560, ppi: 96.62
debug: ../zathura/dbus-interface.c:105: bus_acquired(): Bus acquired at 'org.pwmt.zathura.PID-8086'.
debug: ../zathura/zathura.c:203: zathura_update_view_ppi(): monitor width: 673 mm, pixels: 2560, ppi: 96.62
debug: ../zathura/dbus-interface.c:132: name_acquired(): Acquired 'org.pwmt.zathura.PID-8086' on session bus.
debug: ../zathura/content-type.c:72: guess_type_magic(): magic detected filetype: application/pdf
debug: ../zathura/file-monitor.c:126: zathura_filemonitor_new(): using glib file monitor
debug: ../zathura/zathura.c:1177: document_open(): starting file monitor
debug: ../zathura/zathura.c:686: setup_renderer(): starting renderer with cache size 15
debug: ../zathura/zathura.c:203: zathura_update_view_ppi(): monitor width: 673 mm, pixels: 2560, ppi: 96.62
debug: ../zathura/render.c:923: render_all(): Queuing resize for page 0 to 574 x 766 (595.28 x 793.70).
debug: ../zathura/render.c:923: render_all(): Queuing resize for page 1 to 574 x 766 (595.28 x 793.70).
debug: ../zathura/render.c:923: render_all(): Queuing resize for page 2 to 574 x 766 (595.28 x 793.70).
debug: ../zathura/render.c:923: render_all(): Queuing resize for page 3 to 574 x 766 (595.28 x 793.70).
debug: ../zathura/render.c:923: render_all(): Queuing resize for page 4 to 574 x 766 (595.28 x 793.70).
debug: ../zathura/render.c:923: render_all(): Queuing resize for page 5 to 574 x 766 (595.28 x 793.70).
debug: ../zathura/render.c:923: render_all(): Queuing resize for page 6 to 574 x 766 (595.28 x 793.70).
debug: ../zathura/render.c:923: render_all(): Queuing resize for page 7 to 574 x 766 (595.28 x 793.70).
debug: ../zathura/render.c:923: render_all(): Queuing resize for page 8 to 574 x 766 (595.28 x 793.70).
debug: ../zathura/callbacks.c:235: cb_widget_screen_changed(): called
debug: ../zathura/zathura.c:1305: document_open(): Failed to load bookmarks.
debug: ../zathura/jumplist.c:160: zathura_jumplist_load(): No jumplist for this file in the database yet
debug: ../zathura/render.c:971: page_cache_is_cached(): Page 1 is a cache miss
debug: ../zathura/render.c:1070: zathura_renderer_page_cache_add(): Page 1 is cached at cache index 0
debug: ../zathura/render.c:971: page_cache_is_cached(): Page 2 is a cache miss
debug: ../zathura/render.c:1070: zathura_renderer_page_cache_add(): Page 2 is cached at cache index 1
debug: ../zathura/render.c:971: page_cache_is_cached(): Page 3 is a cache miss
debug: ../zathura/render.c:1070: zathura_renderer_page_cache_add(): Page 3 is cached at cache index 2
debug: ../zathura/render.c:896: render_job(): Rendering page 3 ...
debug: ../zathura/render.c:896: render_job(): Rendering page 2 ...
debug: ../zathura/render.c:519: emit_completed_signal(): Emitting signal for page 3
debug: ../zathura/render.c:896: render_job(): Rendering page 1 ...
debug: ../zathura/render.c:519: emit_completed_signal(): Emitting signal for page 2
error: jpeg error: Wrong JPEG library version: library is 80, caller expects 90
warning: read error; treating as end of file
warning: padding truncated image
error: jpeg error: Wrong JPEG library version: library is 80, caller expects 90
warning: read error; treating as end of file
warning: padding truncated image
debug: ../zathura/render.c:519: emit_completed_signal(): Emitting signal for page 1
```
The [latest libjpeg package in archlinux](https://archlinux.org/packages/extra/x86_64/libjpeg-turbo/) is libjpeg8, so I uninstalled libjpeg8 and installed libjpeg9 manually. But somehow zathura needs exactly "libjpeg.so.8" to launch:
```
$ zathura
zathura: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory
```
So I linked libjpeg.so.8 to libjpeg.so.9 manually. But zathura throwed error again:
```
$ zathura
zathura: /usr/lib/libjpeg.so.8: version `LIBJPEG_8.0' not found (required by /usr/lib/libgdk_pixbuf-2.0.so.0)
zathura: /usr/lib/libjpeg.so.8: version `LIBJPEG_8.0' not found (required by /usr/lib/libtiff.so.6)
```
Now I have no ideas how to fix it.https://git.pwmt.org/pwmt/zathura/-/issues/116Weird spacing on variable width/length pages2023-01-25T12:55:39+01:00JulieWeird spacing on variable width/length pagesPlease see the screenshot comparing chromium's default pdf viewer with Zathura. How to get rid of the gaps ? I tried both best fit commands `a` and `s`
![zathura](/uploads/1d2303c5dec80669b6d6484094bda91a/zathura.png)
See also: https:/...Please see the screenshot comparing chromium's default pdf viewer with Zathura. How to get rid of the gaps ? I tried both best fit commands `a` and `s`
![zathura](/uploads/1d2303c5dec80669b6d6484094bda91a/zathura.png)
See also: https://unix.stackexchange.com/questions/468875/zathuras-best-fit-command-a-for-documents-with-varying-page-sizehttps://git.pwmt.org/pwmt/zathura/-/issues/324strict sandbox mode blocks required syscalls2023-01-20T10:23:12+01:00Lambda Calculusstrict sandbox mode blocks required syscallsStrict sandbox mode disallows the syscalls `gettimeofday` and `clock_gettime`, which seem to be necessary during startup (doing `:set sandbox strict` after starting works fine), at least on my end. This also causes the AUR package `zathu...Strict sandbox mode disallows the syscalls `gettimeofday` and `clock_gettime`, which seem to be necessary during startup (doing `:set sandbox strict` after starting works fine), at least on my end. This also causes the AUR package `zathura-git` to fail installation as `ninja test` fails at the sandbox unit test.
Here is the relevant `ninja test` log bit:
```
$ ninja test
[0/1] Running all tests.
1/6 validate-desktop OK 0.02s
2/6 utils OK 0.02s
3/6 document OK 0.03s
4/6 types OK 0.02s
5/6 sandbox FAIL 0.21s exit status 1
>>> MALLOC_PERTURB_=176 /home/lambda/src/repos/zathura/build/tests/test_sandbox
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀ ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stdout:
Running suite(s): Sandbox
0%: Checks: 1, Failures: 0, Errors: 1
../tests/test_sandbox.c:11:E:basic:test_create:0: (after this point) Received signal 31 (Bad system call)
[...]
```
And relevant `strace` logs (obtained by using `set sandbox strict` in `zathurarc`. the second one was obtained after unblocking the first syscall):
```
$ strace ./zathura -c .
[...]
seccomp(SECCOMP_SET_MODE_FILTER, 0, 0x55b1a37840f0) = 0
futex(0x7f16b014b0b8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f16b014b0b8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f16b014b0b8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
gettimeofday(0x7ffc57ab2020, NULL) = 96
+++ killed by SIGSYS +++
fish: Job 1, 'strace ./zathura -c .' terminated by signal SIGSYS (Bad system call)
```
```
$ strace ./zathura -c .
[...]
futex(0x7f71259b30b8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x55588d69f340, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f71256f9ba0, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x7f71256f9ba0, FUTEX_WAKE_PRIVATE, 1) = 0
clock_gettime(CLOCK_MONOTONIC, 0x7ffe498ba660) = 228
+++ killed by SIGSYS +++
fish: Job 1, 'strace ./zathura -c .' terminated by signal SIGSYS (Bad system call)
```
I'll submit a pull request allowing the two syscalls shortly.https://git.pwmt.org/pwmt/zathura/-/issues/22Map Umlauts öäü2023-01-15T16:10:44+01:00Benedikt BartscherMap Umlauts öäüIs it possible to map Umlauts (äöü)?Is it possible to map Umlauts (äöü)?https://git.pwmt.org/pwmt/girara/-/issues/9Support for non-english keyboards2023-01-15T16:05:30+01:00Pavel StepanovSupport for non-english keyboardsI've been using Zathura for quite a long time now. Lack of support of Russian, in my case, is a little bit disappointing. It is said in zathura issue #693 that girara "fails to handle non-ascii keys". I tried using Emacs for viewing pdfs...I've been using Zathura for quite a long time now. Lack of support of Russian, in my case, is a little bit disappointing. It is said in zathura issue #693 that girara "fails to handle non-ascii keys". I tried using Emacs for viewing pdfs but zathura is what I'm now used to.
So I added Russian symbols to callbacks.c where numpad keys are mapped to numbers row keys (line 42 and further):
```
switch (*keyval) {
...
case GDK_KEY_KP_9:
*keyval = GDK_KEY_9;
break;
case GDK_KEY_Cyrillic_shorti:
*keyval = GDK_KEY_q;
break;
case GDK_KEY_Cyrillic_SHORTI:
*keyval = GDK_KEY_Q;
break;
...
}
```
It actually seems to work just like in Vim, where the letters work fine, but some punctuation marks have to be used based on active keyboard layout. I think this can also work with umlauts and other symbols not present on english keyboards. Would love to see something like this implemented.https://git.pwmt.org/pwmt/zathura/-/issues/327IRC for discussions and questions2023-01-13T22:47:49+01:00Abu AlqayyimIRC for discussions and questionsI have many questions regarding the codebase; I'm trying to understand the Zathura codebase as I want to add some features to it, though some parts of the code I need help understanding.
Is there an IRC or a live chat where Zathura contr...I have many questions regarding the codebase; I'm trying to understand the Zathura codebase as I want to add some features to it, though some parts of the code I need help understanding.
Is there an IRC or a live chat where Zathura contributors may chat and provide help regarding the codebase?https://git.pwmt.org/pwmt/zathura/-/issues/326zathura ... can't find plugin?2023-01-05T22:16:20+01:00ArchieLinuxzathura ... can't find plugin?Greetings! This is likely a simple issue but I can't seem to figure it out. Perhaps someone here can shed some light?
Context: On my Arch/EndeavourOS/i3 setup, I'm trying to run `zathura` for previewing pdf files within `nnn` (as a plug...Greetings! This is likely a simple issue but I can't seem to figure it out. Perhaps someone here can shed some light?
Context: On my Arch/EndeavourOS/i3 setup, I'm trying to run `zathura` for previewing pdf files within `nnn` (as a plugin related to `preview-tabbed`)
After confirming all dependencies have been installed, I do get a `zathura` preview window that opens next to my `nnn` window (from which I called it while a pdf file is highlighted). But it's empty - except for a header that says "**org.pwmt.zathura"** and a footer than says "**[No name]**"
So finally I try to run to run `zathura` directly from my bash CLI with a pdf file as the argument and this what follows are the errors I get in response:
```
error: Found no plugins. Please install at least one plugin.
error: Could not determine file type.
```
I've looked through the man `zathura` and man `zathurarc` (which I don't have yet, so perhaps that's the problem?) and don't see an obvious problem to be addressed. What plugins do I need to install (perhaps within `usr/lib/zathura` directory - which is currently empty)?
I thought `zathura` WAS the plugin (for `preview-tabbed` within `nnn`).
Any tips to resolve this would be welcomed!https://git.pwmt.org/pwmt/zathura/-/issues/322Highlight color bad contrast2022-12-22T21:17:39+01:00François BechetHighlight color bad contrastI can't get a great combination of colors for the highlighted elements during a document search, the contrast between the foreground text color and the background highlight color is always too bad.
`highlight-fg` and highlight-transparen...I can't get a great combination of colors for the highlighted elements during a document search, the contrast between the foreground text color and the background highlight color is always too bad.
`highlight-fg` and highlight-transparency don't go well together, I think that there should at least be an option to disable the `highlight-fg`, so only an `highlight-color` is applied like the in the Firefox PDF viewer.
The other alternative would be to disable the transparency and allow highlighted elements colors to look like in Linux man pages, but I guess there are obviously technical implications that make this impossible.https://git.pwmt.org/pwmt/zathura/-/issues/315Non-latin keys use2022-12-11T12:55:23+01:00Ghost UserNon-latin keys useHello. I'm from Ukraine, so I use both Ukrainian and English keyboard layouts, but every time I'm using Ukrainian I need to constantly switch to English, when I'm in zathura, so I can use zathura's keybindings. I've tried remap keys in c...Hello. I'm from Ukraine, so I use both Ukrainian and English keyboard layouts, but every time I'm using Ukrainian I need to constantly switch to English, when I'm in zathura, so I can use zathura's keybindings. I've tried remap keys in config and zathura's menu, but that didn't worked out. Is there any fix?https://git.pwmt.org/pwmt/zathura/-/issues/135request for properly rendering individual pages to avoid gabs between pages.2022-12-03T15:17:45+01:00bryamrequest for properly rendering individual pages to avoid gabs between pages.Hello, here is a request for a change or to add a new feature, this is for a problem of knowledge for many people.
zathura has a design problem where the application renders pages based on the size of the largest page in the document, f...Hello, here is a request for a change or to add a new feature, this is for a problem of knowledge for many people.
zathura has a design problem where the application renders pages based on the size of the largest page in the document, for example if the document has a 1000 x 850 page and other smaller pages the smaller ones will render with a large empty space to fix the size difference, this is a big problem when you are reading documents containing different size pages, such as pdf, comic or manual with different size images, there will be a big empty space between the pages, this is not it's just annoying, it ruins the document rendering, for example in a normal situation if you are reading a pdf manual and there is an electrical diagram that is separated into several parts and the other parts are smaller in height than others this would not be a big problem because As it is a PDF it is normally designed to be displayed continuously and the size difference would not matter as it would be displayed as a continuous big page while you are scrolling in it, in zathura this is different, a large space will appear between each page which would ruin the proper view of the document.
This can fixed by correctly rendering the individual pages based on size, like Chrome, evince, Okular, etc, when rendering a pdf. There is not need for this to be a default option, this can be optional and therefore can be set as shortcuts or with :set in the zathurarc configuration file, for example with [show-individual-page-size], [original-size-view] or [adjust-original-pagesize] so that the default is {false} and a user can set this to {true} to correctly render the original size pages so that they can avoid the huge gaps between pages and read the document correctlyhttps://git.pwmt.org/pwmt/zathura/-/issues/313Add support for documents with unequal page sizes2022-12-03T15:15:49+01:00Vlad-Stefan HarbuzAdd support for documents with unequal page sizesWhen viewing documents with pages of differing sizes, zathura uses the largest page size as the size for all pages. In the case of e.g. papers from JSTOR (and other kinds of documents), the first page is much larger. This means that zath...When viewing documents with pages of differing sizes, zathura uses the largest page size as the size for all pages. In the case of e.g. papers from JSTOR (and other kinds of documents), the first page is much larger. This means that zathura adds massive padding around most pages, jumping to a page jumps into its surrounding whitespace, and the reading experience is in general very janky.
Here is a PDF affected by this problem: https://vladh.net/t/tok.pdf
This issue makes zathura quite unusable for me, since I'm experiencing this issue with quite a few documents, and it makes reading very unpleasant. Would this be a difficult thing to fix? I am happy to contribute if given some pointers as to the relevant code etc.https://git.pwmt.org/pwmt/zathura/-/issues/248Large blank spaces between sheets in d Toggle dual page view2022-12-03T15:15:22+01:00hikiLarge blank spaces between sheets in d Toggle dual page viewI have a dual monitor system, Manjaro Linux KDE. (uname -a : Linux 4.19.207-1-MANJARO 1 SMP Wed Sep 22 12:34:06 UTC 2021 x86_64 GNU/Linux
) zathura v0.4.8-1. Here is an example screenshot of the entire desktop. **Okular** is open on the...I have a dual monitor system, Manjaro Linux KDE. (uname -a : Linux 4.19.207-1-MANJARO 1 SMP Wed Sep 22 12:34:06 UTC 2021 x86_64 GNU/Linux
) zathura v0.4.8-1. Here is an example screenshot of the entire desktop. **Okular** is open on the left, on the right with the same file open **zathura**. For some unknown reason, there is a huge gap between the two pages (in d Toggle dual page view), and the larger the magnification, the larger the gap.
Left - okular, Right - ZATHURA:
![Screenshot_20211004_190555](/uploads/5a78fed10c1b4074ffcdc3c10ec17b5d/Screenshot_20211004_190555.png)
Only ZATHURA at fullscreen in toggled to **dual page view**:
![Screenshot_20211003_181852](/uploads/be42d9db37a28f3b5af8b4297e0451e7/Screenshot_20211003_181852.png)
Added one another netbook with Manjaro Linux for the test.
In the document, sheets are attached in both portrait and landscape orientations, width of empty spaces is doubled.
![Screenshot_20211008_203150](/uploads/6b991a40e0654a20969df15b803f3b7e/Screenshot_20211008_203150.png)https://git.pwmt.org/pwmt/zathura-pdf-poppler/-/issues/3Zathura-pdf-mupdf does not run media file links (error: Could not determine f...2022-11-23T22:54:18+01:00Akhil BhartiyaZathura-pdf-mupdf does not run media file links (error: Could not determine file type)It has been a great experience to use Zathura as a document viewer. Zathura-pdf-mupdf works great, and I think it is even better than Zathura's poppler plugin (in terms of speed and its recolor and recolor-keephue). Zathura-pdf-poppler h...It has been a great experience to use Zathura as a document viewer. Zathura-pdf-mupdf works great, and I think it is even better than Zathura's poppler plugin (in terms of speed and its recolor and recolor-keephue). Zathura-pdf-poppler has only one superior point, and that is its ability to open file links:
I use latex-beamer for making presentations. It is well known that it is a nightmare to include videos in a pdf file using latex. A way around the problem is to use links to media flies
\href{run:path/to/file}{Text to be displayed}
\movie[]{}{file_to_run}
If I click on the generated link, then the file will open in a media player.
This expected behavior will happen in any pdf viewer, and also if I use Zathura-pdf-poppler but in the case of mupdf it will open another Zathura shell, and the following error will be produced:
<error: Could not determine file type>
I love Zathura with mupdf, but just for presentation, I have to use the poppler plugin.
Please have a look into this issue.
P.S. I reported it here as so was guided on the GitLab page of the mupdf plugin.https://git.pwmt.org/pwmt/zathura/-/issues/305Option to automatically run 'exec' on opening a file2022-11-16T17:28:51+01:00MaxOption to automatically run 'exec' on opening a fileUse-case: I have a database of PDF documents, and mostly I open them via database-related commands, using Zathura as the viewer. This allows me to save the last-opened timestamp for each document. Occasionally, however, I open documents ...Use-case: I have a database of PDF documents, and mostly I open them via database-related commands, using Zathura as the viewer. This allows me to save the last-opened timestamp for each document. Occasionally, however, I open documents from CLI or file manager, and in this case the fact of opening a document is not recorded in the database. If Zathura allowed running a specified command automatically when opening a file (expanding `$FILE` as usual), that could solve the problem. (Of course, I can map a key to such a command, but then I need to remember to use that key each time I open a doc; it would be nice to automate the process).