You are not logged in.

#1 2021-02-10 11:29:11

ttoirrah
Member
Registered: 2015-01-29
Posts: 52

Zathura's Print dialog in Openbox

I've been using Zathura in Openbox for some time. My default printer, an HP, was set in CUPS with

lpoptions -d ENVY_5532

Also in HP Device Manager with hp-toolbox > Printer Control > Default Printer.

Recently Zathura's Print dialog opens defaulting to Print to LPR instead of ENVY_5532. Following a solution in Solved: Default printer is LPR, I can make Print to LPR dissappear completely with

~/.config/gtk-3.0/settings.ini
------------------------------
[Settings]
gtk-print-backends=file,cups,pdf

and then Zathura's Print dialog opens defaulting to ENVY_5532.
However, Page Setup > Paper size defaults to US Letter and not to A4 as defined in CUPS and in hp-printsettings.

So my questions are for Zathura's Print dialog are:

  1. Why does GTK3's settings file influence it?

  2. How can I have Paper size always default to A4?

Offline

#2 2021-02-10 13:06:13

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Zathura's Print dialog in Openbox

$ pactree --sync --depth 2 zathura
zathura
├─girara provides girara>=0.2.7
│ ├─gtk3
│ ├─glib2
│ ├─json-c
│ └─pango
├─sqlite
│ ├─readline
│ └─zlib
├─desktop-file-utils
│ ├─glib2
│ └─glib2 provides libglib-2.0.so=0-64
├─file
│ ├─glibc
│ ├─zlib
│ ├─xz
│ ├─bzip2
│ ├─libseccomp
│ └─libseccomp provides libseccomp.so=2-64
└─libsynctex
  ├─glibc
  └─zlib
$ 

Looks like zathura has an indirect depedency on gtk 3 , also several of the zathura-* pacakges also have indirect dependencies on gtk3 .

https://man.archlinux.org/listing/community/zathura/ may be helpful .


2. Is libpaper installed and /etc/papersize configured ?
https://man.archlinux.org/man/papersize.5


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2021-05-13 07:17:07

ttoirrah
Member
Registered: 2015-01-29
Posts: 52

Re: Zathura's Print dialog in Openbox

Lone_Wolf, pactree sheds light, thanks. Yes, I've already had /etc/papersize (root 644) configured thus:

# Simply write the paper name. See papersize(5) for possible values
a4

and changing that to A4 didn't get it seen by Zathura's Print dialog, which is still defaulting to US Letter. I also tried in my ~/.bash_profile

export PAPERSIZE=a4

and the capitalised version. Still not being detected by Zathura...

Offline

#4 2021-05-13 09:23:19

ttoirrah
Member
Registered: 2015-01-29
Posts: 52

Offline

Board footer

Powered by FluxBB