zathura issueshttps://git.pwmt.org/pwmt/zathura/-/issues2023-09-13T23:52:25+02:00https://git.pwmt.org/pwmt/zathura/-/issues/325GIO error for filenames with a colon2023-09-13T23:52:25+02:00David SchweinGIO error for filenames with a colonIt appears that zathura is unable to open filenames containing a colon. To replicate the problem, download a pdf file, check that zathura can open it, then rename it to a string containing ":", and check that zathura will not open the re...It appears that zathura is unable to open filenames containing a colon. To replicate the problem, download a pdf file, check that zathura can open it, then rename it to a string containing ":", and check that zathura will not open the renamed file.
At least one other pdf viewer (Evince) appears to have the same problem. The problem seems to come from the syntax for locations in the GIO tool, which uses a colon.https://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/323Navigating to any page from index mode jumps to the bottom of the last page2023-09-14T00:14:03+02:00Mikhail TimofeevNavigating to any page from index mode jumps to the bottom of the last pagein some pdf files, press tab, choose any page, press enter. Jumps to the bottom of the last page.
*Solved my problem but there's still a bug
I am on Artix linux with zathura version 0.5.1-1
The problem was in pdf backend. I believe it...in some pdf files, press tab, choose any page, press enter. Jumps to the bottom of the last page.
*Solved my problem but there's still a bug
I am on Artix linux with zathura version 0.5.1-1
The problem was in pdf backend. I believe it's a bug of zathura-pdf-mupdf backend, I installed poppler backend and problem was fixed.
Though there's no package for poppler backend in artix repositories, so I downloaded it from mirror here
https://archlinux.org/packages/community/x86_64/zathura-pdf-poppler/
and installed with
$ sudo pacman -U packagename.pkg.tar.zst
Also this was Desktop Environment independent. The bug was found in i3-gaps and I replicated it in xfce4
example pdf:
https://drive.google.com/file/d/1fBfGGC9CZrMwd1gwCiS1paYReqv_ZpVC/view?usp=drivesdkhttps://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/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/311Zathura - Table of content jumps one extra page2023-09-17T18:36:11+02:00Volodymyr ProkopyukZathura - Table of content jumps one extra pageHi,
I'd like to report a bug detailed below in Zathura v0.5.1 (pdf-mupdf v0.3.9) table of content (ToC).
Zathura always jumps one extra page when using the ToC screen showed on `Tab` or the ToC provided at the end of the attached docum...Hi,
I'd like to report a bug detailed below in Zathura v0.5.1 (pdf-mupdf v0.3.9) table of content (ToC).
Zathura always jumps one extra page when using the ToC screen showed on `Tab` or the ToC provided at the end of the attached document. E. g. if the ToC entry is on the page 5, when accessed from the `Tab` ToC or ToC at the end of the document, the page number 6 is displayed.
Both KDE Okular and Firefox PDF.js jump to the right page from both ToCs in the same document.
[Російські-народні-пісні-і-танці-ru01.pdf](/uploads/65fe7a38db62b9868333a63ad3aa1aa1/Російські-народні-пісні-і-танці-ru01.pdf)https://git.pwmt.org/pwmt/zathura/-/issues/309Zathura - Show the document metadata2022-11-08T11:43:06+01:00Volodymyr ProkopyukZathura - Show the document metadataHi,
I wanted to propose a feature request that shows document metadata detailed below.
Show document metadata in the status line or in a separate window.
It is very convenient being able to see the document metadata as in the screensh...Hi,
I wanted to propose a feature request that shows document metadata detailed below.
Show document metadata in the status line or in a separate window.
It is very convenient being able to see the document metadata as in the screenshot below
![image](/uploads/9c7b8f369c67457c276b4f967be896c5/image.png)
Thank you very much,
Vladhttps://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/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).https://git.pwmt.org/pwmt/zathura/-/issues/301System freeze (for a few seconds) when exiting with :q2023-04-02T20:51:04+02:00gi1242 gi1242System freeze (for a few seconds) when exiting with :qWhen viewing a file type `:q` to exit. My system (Plasma/Wayland) freezes for about 20 seconds before zathura exits.
Here's my system info:
```
Operating System: Arch Linux
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.96.0
Qt V...When viewing a file type `:q` to exit. My system (Plasma/Wayland) freezes for about 20 seconds before zathura exits.
Here's my system info:
```
Operating System: Arch Linux
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.15.60-1-lts (64-bit)
Graphics Platform: Wayland
Zathura 0.4.9-1, girara 0.3.7-1, gtk-3.24.34-1
```
Thanks in advance:https://git.pwmt.org/pwmt/zathura/-/issues/299Document scaled wrong when dragged from one display to the other (Plasma/Wayl...2022-08-20T19:45:12+02:00gi1242 gi1242Document scaled wrong when dragged from one display to the other (Plasma/Wayland)Hi All,
1. Run Zathura under Plasma/Wayland, which multiple displays with different scaling.
2. Say one display is scaled 100%, and the other is scaled 200%
3. Open a PDF file. Zoom a bit (so it's not "fit to width").
4. Drag the window...Hi All,
1. Run Zathura under Plasma/Wayland, which multiple displays with different scaling.
2. Say one display is scaled 100%, and the other is scaled 200%
3. Open a PDF file. Zoom a bit (so it's not "fit to width").
4. Drag the window from one display to the other.
The Zoom gets completely messed up.
Thanks in advance.
GIhttps://git.pwmt.org/pwmt/zathura/-/issues/296Uninstall zathura2022-08-20T13:57:25+02:00S M DUninstall zathuraIs there a clean procedure to have this uninstalled?Is there a clean procedure to have this uninstalled?https://git.pwmt.org/pwmt/zathura/-/issues/295Vimtex doesn't work with Zathura anymore. Zathura is not linked with libsynct...2022-08-20T13:57:59+02:00Aleksand SVimtex doesn't work with Zathura anymore. Zathura is not linked with libsynctex. Viewer cannot find Zathura window ID.I just installed neovim with VimTeX plug-in. I can't view a compiled document anymore. I get the error messages from VimTeX:
```
Zathura is not linked with libsynctex!
Viewer cannot find Zathura window ID!
```
I have xdotool installed.I just installed neovim with VimTeX plug-in. I can't view a compiled document anymore. I get the error messages from VimTeX:
```
Zathura is not linked with libsynctex!
Viewer cannot find Zathura window ID!
```
I have xdotool installed.https://git.pwmt.org/pwmt/zathura/-/issues/288synctex: Forward search very slow with many boxes2022-09-08T23:57:38+02:00Tim Ruffingsynctex: Forward search very slow with many boxesI have a file where forward search in a specific figure takes ~11 seconds, so much that forward search request will hit timeout and will start a new process:
```
> zathura main.pdf --synctex-forward 44:0:fig.tex -l debug
debug: ../zat...I have a file where forward search in a specific figure takes ~11 seconds, so much that forward search request will hit timeout and will start a new process:
```
> zathura main.pdf --synctex-forward 44:0:fig.tex -l debug
debug: ../zathura/dbus-interface.c:577: iterate_instances_call_synctex_view(): Found name: org.pwmt.zathura.PID-126716
debug: ../zathura/dbus-interface.c:505: call_synctex_view(): Filename from 'org.pwmt.zathura.PID-126716': [...]/main.pdf
error: Failed to run SynctexView on 'org.pwmt.zathura.PID-126716': Timeout was reached
debug: ../zathura/main.c:208: main(): No instance found. Starting new one.
```
This is when invoking forward search inside [cryptocode](https://ctan.org/pkg/cryptocode?lang=en) pseudocode, with a normal usage of cryptocode.
Interestingly, this gives me about 11000 lines of output:
```
synctex view -i 44:0:fig.tex -o main.pdf
```
whereas invocations in "normal" places in the document are just 27 lines.
So maybe the underlying problem is synctex outputs tons of boxes... Maybe I should report this to https://github.com/jlaurens/synctex/ (or cryptocode?).
But I also think that zathura should handle this more nicely, even if this means simply bailing out after too many boxes. I think it would be nice to jump to some document position first and only then try to draw the boxes.
Not sure if I want to share the sources but I'm sure I could a minimal test case, or I could run a profiler if this helps.https://git.pwmt.org/pwmt/zathura/-/issues/284Shows more useful error message if no plugins are installed2022-09-08T23:57:29+02:00John JuttyShows more useful error message if no plugins are installedIf no plugins are installed, zathura will show a message like:
```
$ ./zathura
error: could not open plugin directory: /usr/local/lib64/zathura
```
I propose to show a more useful error message, like:
```
$ ./zathura
error: plugin direc...If no plugins are installed, zathura will show a message like:
```
$ ./zathura
error: could not open plugin directory: /usr/local/lib64/zathura
```
I propose to show a more useful error message, like:
```
$ ./zathura
error: plugin directory not found: /usr/local/lib64/zathura
Did you forgot to install any plugin?
```https://git.pwmt.org/pwmt/zathura/-/issues/283Fedora Workstation 35: libmagic not found unless you symlink to it2022-05-02T15:35:15+02:00John JuttyFedora Workstation 35: libmagic not found unless you symlink to itOn Fedora Workstation 35, `sudo dnf install file-libs` will install libmagic, but `meson build` will not find it unless you run:
```
sudo ln -s /usr/lib64/libmagic.so.1 /usr/lib64/libmagic.so
```On Fedora Workstation 35, `sudo dnf install file-libs` will install libmagic, but `meson build` will not find it unless you run:
```
sudo ln -s /usr/lib64/libmagic.so.1 /usr/lib64/libmagic.so
```https://git.pwmt.org/pwmt/zathura/-/issues/281[Feautre] Persistent selection2023-09-18T08:34:01+02:00Ghost User[Feautre] Persistent selectionSelecting text is really useful when reading or taking notes, having to keep a hand on the mouse kinda defeats the purpose of using a document viewer that is primarily keyboard driven.
Would it be possible to make the selection persiste...Selecting text is really useful when reading or taking notes, having to keep a hand on the mouse kinda defeats the purpose of using a document viewer that is primarily keyboard driven.
Would it be possible to make the selection persistent? Perhaps making it disappear after scrolling or clicking.https://git.pwmt.org/pwmt/zathura/-/issues/269What happened to the web site?2022-05-08T16:53:17+02:00Norwid BehrndWhat happened to the web site?At present, it is impossible to reach the web site the English Wikipedia entry refers to
https://pwmt.org/projects/zathura/
This is the same observation with what could be the parental address
https://pwmt.org/
There are snapshots by...At present, it is impossible to reach the web site the English Wikipedia entry refers to
https://pwmt.org/projects/zathura/
This is the same observation with what could be the parental address
https://pwmt.org/
There are snapshots by archive.org ([example](https://web.archive.org/web/20220130111830/https://pwmt.org/projects/zathura/)) to access the documentation and previous releases (e.g., version 0.4.8 by 2021/07/14; [entry](https://web.archive.org/web/20211216181312/https://pwmt.org/projects/zathura/download/)). Package managers however may offer the current release 0.4.9 ([example Debian](https://tracker.debian.org/pkg/zathura)).https://git.pwmt.org/pwmt/zathura/-/issues/268Prevent flickering when reloading document2023-09-07T18:32:48+02:00Kevin KlementPrevent flickering when reloading document![zathura-flicker-withtext](/uploads/7c1b33ad598aedf72af464eaef021022/zathura-flicker-withtext.mp4)
The issue is illustrated in the attached video file. It shows the difference between `llpp` and `zathura` when a file is reloaded over a...![zathura-flicker-withtext](/uploads/7c1b33ad598aedf72af464eaef021022/zathura-flicker-withtext.mp4)
The issue is illustrated in the attached video file. It shows the difference between `llpp` and `zathura` when a file is reloaded over and over.
I like to use a live-updating PDF preview when I write. I do this with LaTeX and markdown files. I have my text editor set up to automatically save the file and process it with the appropriate tool to create a PDF. Zathura is nice because it reloads changes as soon as they happen. But unlike some other PDF viewers (llpp, barebones mupdf), Zathura flickers/flashes when it reloads, which is very distracting when you reload the same document over and over while you're writing.
You can see the difference between Zathura and llpp in the attached video.
Not sure how hard this would be to bring about, but since llpp has done it, hopefully you can consider doing so as well.
Full disclosure: I was one of the people who convinced the devs of llpp to make it work well in the first place. (see [this issue](https://github.com/moosotc/llpp/issues/12) on its GitHub). But I am thinking of switching to Zathura because I'd like something that runs natively on wayland.