pwmt issueshttps://git.pwmt.org/groups/pwmt/-/issues2023-09-21T06:01:36+02:00https://git.pwmt.org/pwmt/zathura/-/issues/373[Question] How to go to a page without focusing windows?2023-09-21T06:01:36+02:00Rodrigo Morales[Question] How to go to a page without focusing windows?I'm currently using the following command, which I can run in a terminal, to make a Zathura instance visit a specific page of the current document.
The `10` in the last argument represents 0-indexed page number (i.e. page no. 11)
```
$...I'm currently using the following command, which I can run in a terminal, to make a Zathura instance visit a specific page of the current document.
The `10` in the last argument represents 0-indexed page number (i.e. page no. 11)
```
$ dbus-send --type="method_call" --dest=org.pwmt.zathura.PID-25400 /org/pwmt/zathura org.pwmt.zathura.GotoPage uint32:10
```
After I execute this command, Zathura becomes the active window in my windows manager. I don't want this to happen.
I'm wondering if this has to do with my windows manager or Zathura. I don't see anything relevant in `page_set` in `zathura.c` [(link to file)](https://git.pwmt.org/pwmt/zathura/blob/9ab68dd1ee3640e56e4e4575112fcae44f8e40ca/zathura/zathura.c#L1632-1658), so everything seems to indicate that it might be my windows manager. Could anyone confirm this and provide some refernces?https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/37Error during compilation: too many arguments to function ‘fz_search_stext_page’2023-09-11T22:50:47+02:00Rodrigo MoralesError during compilation: too many arguments to function ‘fz_search_stext_page’I'm using Ubuntu 22.04. I've downloaded the repository. I've installed dependencies and now I'm trying to build the project. I'm getting an error when trying to compile the project.
<a id="org8ad430c"></a>
# Compilation error
```sh
$ ...I'm using Ubuntu 22.04. I've downloaded the repository. I've installed dependencies and now I'm trying to build the project. I'm getting an error when trying to compile the project.
<a id="org8ad430c"></a>
# Compilation error
```sh
$ meson build
```
```
The Meson build system
Version: 0.61.2
Source dir: /home/rdrg/e/zathura-pdf-mupdf
Build dir: /home/rdrg/e/zathura-pdf-mupdf/build
Build type: native build
Project name: zathura-pdf-mupdf
Project version: 0.4.0
C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C linker for the host machine: cc ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency zathura found: YES 0.5.2
Run-time dependency girara-gtk3 found: YES 0.4.0
Run-time dependency glib-2.0 found: YES 2.72.4
Run-time dependency cairo found: YES 1.16.0
Run-time dependency mupdf found: YES 1.19.0
Library mupdf-third found: YES
Run-time dependency libjpeg found: YES 2.1.2
Library jbig2dec found: YES
Run-time dependency libopenjp2 found: YES 2.4.0
Run-time dependency gumbo found: YES 0.10.1
Run-time dependency tesseract found: YES 4.1.1
Run-time dependency lept found: YES 1.82.0
Run-time dependency mujs found: YES 1.1.3
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Werror=vla: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Build targets in project: 1
Found ninja-1.10.1 at /usr/bin/ninja
```
```sh
$ ninja
```
```
[1/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o
FAILED: libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o
cc -Ilibpdf-mupdf.so.p -I. -I.. -I/usr/local/include -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/openjpeg-2.4 -I/usr/include/leptonica -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c11 -g -fPIC -pthread -DVERSION_MAJOR=0 -DVERSION_MINOR=4 -DVERSION_REV=0 -D_DEFAULT_SOURCE -Werror=implicit-function-declaration -Werror=vla -fvisibility=hidden -MD -MQ libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o -MF libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o.d -o libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o -c ../zathura-pdf-mupdf/search.c
../zathura-pdf-mupdf/search.c: In function ‘pdf_page_search_text’:
../zathura-pdf-mupdf/search.c:44:19: warning: passing argument 5 of ‘fz_search_stext_page’ makes integer from pointer without a cast [-Wint-conversion]
44 | text, NULL, hit_bbox, N_SEARCH_RESULTS);
| ^~~~~~~~
| |
| fz_quad *
In file included from /usr/include/mupdf/fitz.h:70,
from ../zathura-pdf-mupdf/plugin.h:10,
from ../zathura-pdf-mupdf/search.c:7:
/usr/include/mupdf/fitz/structured-text.h:247:104: note: expected ‘int’ but argument is of type ‘fz_quad *’
247 | int fz_search_stext_page(fz_context *ctx, fz_stext_page *text, const char *needle, fz_quad *quads, int max_quads);
| ~~~~^~~~~~~~~
../zathura-pdf-mupdf/search.c:43:21: error: too many arguments to function ‘fz_search_stext_page’
43 | int num_results = fz_search_stext_page(mupdf_page->ctx, mupdf_page->text,
| ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/mupdf/fitz.h:70,
from ../zathura-pdf-mupdf/plugin.h:10,
from ../zathura-pdf-mupdf/search.c:7:
/usr/include/mupdf/fitz/structured-text.h:247:5: note: declared here
247 | int fz_search_stext_page(fz_context *ctx, fz_stext_page *text, const char *needle, fz_quad *quads, int max_quads);
| ^~~~~~~~~~~~~~~~~~~~
[2/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_links.c.o
[3/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_page.c.o
[4/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_index.c.o
[5/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_render.c.o
[6/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_image.c.o
[7/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_plugin.c.o
[8/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_utils.c.o
[9/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_select.c.o
[10/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_document.c.o
ninja: build stopped: subcommand failed.
```
```sh
$ echo $?
```
1
<a id="orgf835158"></a>
# System information
## Operating system
```sh
$ lsb_release -a
```
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
## mupdf's version
This error seem to be related with `mupdf`. Here's the version of `mupdf` that I've installed.
```sh
$ apt-cache show libmupdf-dev
```
Package: libmupdf-dev
Architecture: amd64
Version: 1.19.0+ds1-2
Priority: optional
Section: universe/libdevel
Source: mupdf
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Kan-Ru Chen (陳侃如) <koster@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 49716
Filename: pool/universe/m/mupdf/libmupdf-dev_1.19.0+ds1-2_amd64.deb
Size: 26856550
MD5sum: 0d89147fa9ceac9547c938ea3b92b61f
SHA1: e02ca34146117dd5805fad8fb3a2f954b5eb3def
SHA256: 61709be1933917c2d59b84e9aed0f936e1c88252ffbe55d362e020856c49c2a8
SHA512: ae60665fa71035d5a8f6a29c05e7f712757dad715c4256335a8c02a826f087d06976e5666540dfa9665282558dc9e7810149e7f09a7aa0167a18fcafe68cb728
Homepage: http://mupdf.com/
Description-en: development files for the MuPDF viewer
MuPDF is a lightweight PDF viewer and toolkit written in portable C.
It also reads XPS, OpenXPS and ePub documents.
.
This package contains the static library and headers.
Description-md5: 1971a9536574a0bc27560d5c80c49a3f
```sh
$ apt-cache showpkg libmupdf-dev
```
Package: libmupdf-dev
Versions:
1.19.0+ds1-2 (/var/lib/apt/lists/pe.archive.ubuntu.com_ubuntu_dists_jammy_universe_binary-amd64_Packages) (/var/lib/dpkg/status)
Description Language:
File: /var/lib/apt/lists/pe.archive.ubuntu.com_ubuntu_dists_jammy_universe_binary-amd64_Packages
MD5: 1971a9536574a0bc27560d5c80c49a3f
Description Language: en
File: /var/lib/apt/lists/pe.archive.ubuntu.com_ubuntu_dists_jammy_universe_i18n_Translation-en
MD5: 1971a9536574a0bc27560d5c80c49a3f
Reverse Depends:
Dependencies:
1.19.0+ds1-2 -
Provides:
1.19.0+ds1-2 -
Reverse Provides:https://git.pwmt.org/pwmt/zathura/-/issues/369Thumbnailing in Zathura2023-08-21T02:57:19+02:00vik rajThumbnailing in ZathuraIt seems that the thumbnails for pdf's inside the file manager is provded by the pdf reader, but I have not seen this feature with zathura. Is there any way to show PDF thumbnails inside the file manager (I am using nemo) using zathura?It seems that the thumbnails for pdf's inside the file manager is provded by the pdf reader, but I have not seen this feature with zathura. Is there any way to show PDF thumbnails inside the file manager (I am using nemo) using zathura?https://git.pwmt.org/pwmt/zathura/-/issues/367links open in firefox despite default browser is chromium2024-01-22T12:49:57+01:00ask lowlinks open in firefox despite default browser is chromium```
$[~]$ xdg-settings get default-web-browser
chromium.desktop
```
Despite the above defaults, zathura still opens links in the firefox that I've already had installed for other reasons. How to open links in the default browser ?```
$[~]$ xdg-settings get default-web-browser
chromium.desktop
```
Despite the above defaults, zathura still opens links in the firefox that I've already had installed for other reasons. How to open links in the default browser ?https://git.pwmt.org/pwmt/zathura/-/issues/366[Feature Request/issue] flag to avoid writing a history entry (would reduce S...2023-08-01T20:27:29+02:00Andreas Wachtel[Feature Request/issue] flag to avoid writing a history entry (would reduce SSD writes)Dear developers.
I am a linux user and I love using zathura and vim.
I write because I want to request a new flag for starting zathura, it could look like
`zathura -noHistoryEntry document.pdf`
The reason I propose this flag is the foll...Dear developers.
I am a linux user and I love using zathura and vim.
I write because I want to request a new flag for starting zathura, it could look like
`zathura -noHistoryEntry document.pdf`
The reason I propose this flag is the following.
I use latex and zathura as a live preview engine.
Every time I do a live preview a temporary .pdf file is generated and viewed with zathura.
This temporary pdf-file, however, will not be available after a reboot. (I clean my temp-files).
I have discovered, that i have approximately 8000 history entries in `/home/user/.local/share/zathura/history`.
Therefore, I read the man-files and I have found a way to completely switch off history (by including the line
`set database null` into `~/.config/zathura/zathurarc`.
However, I would love to keep record of files that I permanently have.
Additionally,with `set database null` a CRITICAL error is produced every time I use a bookmark in a pdf.
The flag I ask for, would save many SSD writes (for me and many users that use latex-live-previews) and allow to keep my history clean only containing files that permanently exist on my computer.
Thank you for reading and taking the time to consider this proposal.
Andreas Wachtelhttps://git.pwmt.org/pwmt/zathura/-/issues/365[Feature Request] Sending a USR2 signal would cause :source2023-12-08T18:42:52+01:00Nima Askarian[Feature Request] Sending a USR2 signal would cause :sourceSending a USR2 or USR1 signal to zathura (`pkill -USR2 zathura`/`pkill -USR1 zathura`) would cause program to do `:source` command. I use pywal for color generation, and I open a lot of pdfs at a same time. It would be nice if I didn't n...Sending a USR2 or USR1 signal to zathura (`pkill -USR2 zathura`/`pkill -USR1 zathura`) would cause program to do `:source` command. I use pywal for color generation, and I open a lot of pdfs at a same time. It would be nice if I didn't need to hit my `:source` keymap every time, but instead send a USR2/USR1 signal inside my bash script.https://git.pwmt.org/pwmt/zathura/-/issues/362[SOLVED] suspend and wake closes zathura2023-07-28T01:57:52+02:00ask low[SOLVED] suspend and wake closes zathuraSuspending and waking up the system closes all zathura instances.
system: `archlinux`
kernel: `zen-6.4.3`
wm: `i3` & `sway`
drivers: `nvidia-dkms`
How to diagnose this situation ?
**SOLUTION:** disable strict sandboxing from c...Suspending and waking up the system closes all zathura instances.
system: `archlinux`
kernel: `zen-6.4.3`
wm: `i3` & `sway`
drivers: `nvidia-dkms`
How to diagnose this situation ?
**SOLUTION:** disable strict sandboxing from config.https://git.pwmt.org/pwmt/zathura/-/issues/359Remove Title Bar in Arch Linux2023-07-06T14:52:43+02:00Benjamin Brast-McKieRemove Title Bar in Arch LinuxI always loved how Zathura shows up without a title bar, however, due to an update, I now can't seem to get rid of it. I know this has been a feature request for Mac users, but could not find much information for linux users. I searched ...I always loved how Zathura shows up without a title bar, however, due to an update, I now can't seem to get rid of it. I know this has been a feature request for Mac users, but could not find much information for linux users. I searched through the man pages and website looking for clues to how I could remove it. Is this an option currently? If so, I'd love to know how to do it.
Thanks for an amazing piece of software. I use it everyday.https://git.pwmt.org/pwmt/zathura/-/issues/358how to navigate through chapters2023-07-06T16:51:35+02:00ask lowhow to navigate through chaptershow to navigate through chapters ? I've tried all the keyboard shortcuts. None worked.how to navigate through chapters ? I've tried all the keyboard shortcuts. None worked.https://git.pwmt.org/pwmt/zathura/-/issues/355[FR] Expose index of the current document through dbus_interface.c2023-12-08T18:42:53+01:00Rodrigo Morales[FR] Expose index of the current document through dbus_interface.cExpose table of contents through dbus
By calling the functions defined in [dbus-interface.c](https://git.pwmt.org/pwmt/zathura/-/blob/develop/zathura/dbus-interface.c), I have been able to write Elisp functions (please see below) in ord...Expose table of contents through dbus
By calling the functions defined in [dbus-interface.c](https://git.pwmt.org/pwmt/zathura/-/blob/develop/zathura/dbus-interface.c), I have been able to write Elisp functions (please see below) in order to be able to reuse Zathura instances when opening Org Mode links of the form `[[file:<<filename>>#<<page number>>` (i.e. the same Zathura instance will be used if it is already opening the desired document.)
```elisp
(defun my/dbus-zathura-use-instance-or-open-new (file link)
"Launch zathura to open FILE or Reuse a running instance.
LINK is provided by Org Mode when this function has been
specified in `org-file-apps'. This function is intended to be
used in `org-file-apps' and shouldn't be called on its own."
(let* ((process-alist (proced-process-attributes))
(pids (mapcar 'car (proced-filter process-alist '((comm . "zathura")))))
(pid
(catch 'found
(cl-loop for pid in pids
when (equal
(dbus-get-property
:session
(concat "org.pwmt.zathura.PID-" (number-to-string pid))
"/org/pwmt/zathura"
"org.pwmt.zathura"
"filename")
file)
do (throw 'found pid))))
(page-number
(or
(progn
;; FIXME: According to the docstring of org-file-apps, we
;; can access capture groups using (match-string n
;; link). However, when I tried it, the capture groups
;; didn't have the entire content. For this reason, I'm
;; running string-match with the same regex that I used
;; in org-file-apps, but (match-string n link) should
;; work as specified in the Org Mode documentation.
(string-match "\\.\\(pdf\\|djvu\\)::\\([0-9]+\\)\\'" link)
(match-string 2 link))
"1")))
(if pid
;; Jump to that page in the existing instance
(dbus-call-method
:session
(concat "org.pwmt.zathura.PID-" (number-to-string pid))
"/org/pwmt/zathura"
"org.pwmt.zathura"
"GotoPage"
(1- (string-to-number page-number)))
;; Open a new instance
(make-process
:name "zathura"
:buffer nil
:command `("zathura" "--page" ,page-number ,file)))))
```
```elisp
(setq org-file-apps
'((auto-mode . emacs)
(directory . emacs)
("\\.png\\'" . "mpv %s")
("\\.\\(pdf\\|djvu\\)" . my/dbus-zathura-use-instance-or-open-new)
("\\.\\(pdf\\|djvu\\)::\\([0-9]+\\)\\'" . my/dbus-zathura-use-instance-or-open-new)))
```
Now, I would like to create a function for Emacs which prompts for an item in the table of contents of the document and jumps to that specific page. Currently, [dbus-interface.c](https://git.pwmt.org/pwmt/zathura/-/blob/develop/zathura/dbus-interface.c) expose the page number and the filename and it provides an interface for jumping to an specific page (interface which I used in my Elisp function shown above). However, the table of contents from the current document is not exposed. Therefore, I propose that the index of the document is exposed in some way.
This feature will not only benefit Emacs users but also users of any completion framework (e.g. rofi, dmenu, fzf, vim, etc), since such specialized completion frameworks have more features available (e.g. regex search, movement with operators, fuzzy finding) which, I believe, might require significant effort to incorporate in the zathura index viewer.https://git.pwmt.org/pwmt/zathura/-/issues/352Can't run piped shell commads into `:exec`2023-05-17T11:11:38+02:00archie eichraCan't run piped shell commads into `:exec`I am trying to use exec command but when I use pip in the command it don't work. Is this a bug or should I escape `|` character or something like that?I am trying to use exec command but when I use pip in the command it don't work. Is this a bug or should I escape `|` character or something like that?https://git.pwmt.org/pwmt/zathura-cb/-/issues/7Right-to-left page flow2023-04-28T18:06:06+02:00a bRight-to-left page flowCertain comics (manga, etc.) are better-suited to be read with a right-to-left flow, so it would be nice to able to toggle this in the config or runtime.
An illustration:
![image](/uploads/394b58339368e7b218f0d834ad6d0c95/image.png)Certain comics (manga, etc.) are better-suited to be read with a right-to-left flow, so it would be nice to able to toggle this in the config or runtime.
An illustration:
![image](/uploads/394b58339368e7b218f0d834ad6d0c95/image.png)https://git.pwmt.org/pwmt/zathura/-/issues/349All bookmark jumps to last page2023-09-14T00:14:12+02:00user202729All bookmark jumps to last pageConsider this file: [f.pdf](/uploads/fbc4b69f9b467d6aa84b5126a6916bc2/f.pdf)
It has 2 book marks, which zathura correctly displays as on page 1 and 2 respectively.
However, if I press `tab` and select either of those, I jump to page 3/...Consider this file: [f.pdf](/uploads/fbc4b69f9b467d6aa84b5126a6916bc2/f.pdf)
It has 2 book marks, which zathura correctly displays as on page 1 and 2 respectively.
However, if I press `tab` and select either of those, I jump to page 3/3 regardless.
I'm using the mupdf back end.https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/36build failed in master branch "too many arguments to function ‘fz_search_stex...2023-04-21T12:32:13+02:00Thai Nguyenbuild failed in master branch "too many arguments to function ‘fz_search_stext_page’ 43 | int num_results = fz_search_stext_page"`❯ ninja
[5/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o
FAILED: libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o
cc -Ilibpdf-mupdf.so.p -I. -I.. -I/usr/local/include -I/usr/include/json-glib-1.0 -I/usr/include/gtk...`❯ ninja
[5/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o
FAILED: libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o
cc -Ilibpdf-mupdf.so.p -I. -I.. -I/usr/local/include -I/usr/include/json-glib-1.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/openjpeg-2.4 -I/usr/include/leptonica -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c11 -g -fPIC -pthread -DVERSION_MAJOR=0 -DVERSION_MINOR=4 -DVERSION_REV=0 -D_DEFAULT_SOURCE -Werror=implicit-function-declaration -Werror=vla -fvisibility=hidden -MD -MQ libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o -MF libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o.d -o libpdf-mupdf.so.p/zathura-pdf-mupdf_search.c.o -c ../zathura-pdf-mupdf/search.c
../zathura-pdf-mupdf/search.c: In function ‘pdf_page_search_text’:
../zathura-pdf-mupdf/search.c:44:19: warning: passing argument 5 of ‘fz_search_stext_page’ makes integer from pointer without a cast [-Wint-conversion]
44 | text, NULL, hit_bbox, N_SEARCH_RESULTS);
| ^~~~~~~~
| |
| fz_quad *
In file included from /usr/include/mupdf/fitz.h:70,
from ../zathura-pdf-mupdf/plugin.h:10,
from ../zathura-pdf-mupdf/search.c:7:
/usr/include/mupdf/fitz/structured-text.h:247:104: note: expected ‘int’ but argument is of type ‘fz_quad *’
247 | int fz_search_stext_page(fz_context *ctx, fz_stext_page *text, const char *needle, fz_quad *quads, int max_quads);
| ~~~~^~~~~~~~~
../zathura-pdf-mupdf/search.c:43:21: error: too many arguments to function ‘fz_search_stext_page’
43 | int num_results = fz_search_stext_page(mupdf_page->ctx, mupdf_page->text,
| ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/mupdf/fitz.h:70,
from ../zathura-pdf-mupdf/plugin.h:10,
from ../zathura-pdf-mupdf/search.c:7:
/usr/include/mupdf/fitz/structured-text.h:247:5: note: declared here
247 | int fz_search_stext_page(fz_context *ctx, fz_stext_page *text, const char *needle, fz_quad *quads, int max_quads);
| ^~~~~~~~~~~~~~~~~~~~
[10/11] Compiling C object libpdf-mupdf.so.p/zathura-pdf-mupdf_image.c.o
ninja: build stopped: subcommand failed.
`https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues/35mupdf not found2023-04-06T17:31:11+02:00Jaap Goldhoornmupdf not foundI have mupdf 1.22 compiled and installed from source. Note that this does not install an executable called `mupdf`. Only `mupdf-gl` and `mupdf-x11`.
When I run `meson build` in the zathura-pdf-mupdf directory I get the result below.
``...I have mupdf 1.22 compiled and installed from source. Note that this does not install an executable called `mupdf`. Only `mupdf-gl` and `mupdf-x11`.
When I run `meson build` in the zathura-pdf-mupdf directory I get the result below.
```
The Meson build system
Version: 0.61.2
Source dir: /home/japie/git/zathura-pdf-mupdf
Build dir: /home/japie/git/zathura-pdf-mupdf/build
Build type: native build
Project name: zathura-pdf-mupdf
Project version: 0.4.0
C compiler for the host machine: cc (gcc 11.3.0 "cc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0")
C linker for the host machine: cc ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Run-time dependency zathura found: YES 0.5.2
Run-time dependency girara-gtk3 found: YES 0.3.7
Run-time dependency glib-2.0 found: YES 2.72.4
Run-time dependency cairo found: YES 1.16.0
Found CMake: /home/japie/.local/bin/cmake (3.26.1)
Run-time dependency mupdf found: NO (tried pkgconfig and cmake)
Library mupdf-third found: YES
Library mupdf found: YES
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Werror=vla: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Build targets in project: 1
Found ninja-1.10.1 at /usr/bin/ninja
Generating targets: 0%| | Writing build.ninja: 0%| |
```
My first guess was that it has to do with the `mupdf-gl` and `mupdf-x11`names, so I tried to symlink each one to mupdf individually, but the error remains.https://git.pwmt.org/pwmt/zathura/-/issues/347Text selection is wrong after rotation2023-09-13T23:01:26+02:00LuXuText selection is wrong after rotation![Screencast_20230405_232227](/uploads/9955a31a3688445d3e100712acd16f60/Screencast_20230405_232227.mp4)
Apart from the selection's wrong reaction to mouse dragging (probably just forgot to transform the coordinates), there are also issu...![Screencast_20230405_232227](/uploads/9955a31a3688445d3e100712acd16f60/Screencast_20230405_232227.mp4)
Apart from the selection's wrong reaction to mouse dragging (probably just forgot to transform the coordinates), there are also issues of highlights not cleared properly sometimes.
Pinging @rahulaggarwal965, who added this text selection feature.https://git.pwmt.org/pwmt/zathura/-/issues/346Option to use the old (rectangle) text selection2023-09-18T08:34:01+02:00gi1242 gi1242Option to use the old (rectangle) text selectionAny chance you can add an option to use the old (rectangle) based text selection? It's very useful when you give a presentation with images / formulae. The text selection doesn't always select what you highlighed. The rectangle does (it ...Any chance you can add an option to use the old (rectangle) based text selection? It's very useful when you give a presentation with images / formulae. The text selection doesn't always select what you highlighed. The rectangle does (it copies the wrong text, but that doesn't matter when you're giving a presentation).
Thanks,https://git.pwmt.org/pwmt/zathura/-/issues/345Cannot open zathura properly, window raised but not actived2023-09-13T23:48:28+02:00Omelet LinCannot open zathura properly, window raised but not activedI'm using KDE plasma with Linux X11.
This problem happens only in some terminal emulator, such as wezterm and kitty.
When I execute `zathura some.pdf` in wezterm in my shell,
the window opens normally but it appears under the wezterm w...I'm using KDE plasma with Linux X11.
This problem happens only in some terminal emulator, such as wezterm and kitty.
When I execute `zathura some.pdf` in wezterm in my shell,
the window opens normally but it appears under the wezterm window and didn't focus on it.
It is raised (like `xdotool windowraise`) but not focused (like `xdotool windowactive`).
When using konsole, alacritty, gnome-terminal, it focuses on the pdf viewer normally.
If lauching from rofi or krunner, it focuses on it normally too.
It seems that neither kitty nor wezterm use gui frameworks like GTK so it might be the point?
reference:
https://github.com/wez/wezterm/issues/3324
EDIT:
current zathura version:
```
zathura 0.5.2
girara 0.3.9 (runtime: 0.4.0)
(plugin) pdf-mupdf (0.4.0) (/usr/lib/zathura/libpdf-mupdf.so)
```
The problem will still happen without the plugin.https://git.pwmt.org/pwmt/zathura/-/issues/344Segmentation Fault when accessing the Table of Contents/Bookmarks2023-03-22T16:40:57+01:00kam shSegmentation Fault when accessing the Table of Contents/BookmarksWhen I press TAB I am expecting to see the Table of Contents, but what happens is that the program crashes and prints `Segmentation fault`. This started happening after I updated my system recently using `pacman -Syyu`.
[backtrace](http...When I press TAB I am expecting to see the Table of Contents, but what happens is that the program crashes and prints `Segmentation fault`. This started happening after I updated my system recently using `pacman -Syyu`.
[backtrace](https://pastebin.com/bgN9yQmJ)
I got the backtrace using [this method](https://wiki.ubuntu.com/Backtrace). If there is anything else I should do please tell me.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.