summarylogtreecommitdiffstats
path: root/cups-programme.conf
blob: 220d4c0b3f90ec846351f916ec51efb73ac091e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
### Warning: This file will be bash-sourced. Beware.

# su_variant:
# 
# Controls which programme is selected to use to run a command as
# another user.
# 
# When the print backend is run, there is no terminal input, so no
# password can be entered easily.
# 
# So you need to either configure sudo such that you do not need a
# password and use a sudo-based su_variant, or select a su_variant which
# gives a graphical password prompt.
# 
# 'su' is most probably only usefull if no password will be asked for
# in general, e.g. when CUPS is running it's backends as root.
# 
# Possible values for su_variant are:
# - 'su' -- uses 'su', also allows to change the group. Not graphical,
#   so only useful if no password is required in the first place.
# - 'sudo' -- uses 'sudo', also allows to change the group. Not
#   graphical, so only useful if no password is required. sudo can be
#   configured to allow specific commands as specific users without
#   password (e.g. in /etc/sudoers, /etc/sudoers.d).
# - 'sudo-askpass' -- uses 'sudo' with an external command to ask for
#   the password. Also allows to change the group. The external askpass
#   command needs to be specified in $askpass_cmd. May be a graphical
#   programme.
# - 'kdesu' -- uses 'kdesu', does not allow to change the group.
#   Graphical.
# - 'kdesudo' -- uses 'kdesudo', does not allow to change the group.
#   Graphical.
# 
# Note that changing the group is in all cases only possible if CUPS
# runs the printing backend as root, which most probably is not the
# case.

su_variant=sudo-askpass
# su_variant=kdesu


# askpass_cmd:
# 
# askpass programme to use when $su_variant is set to 'sudo-askpass'.
# 
# On Arch Linux, there are for example:
# - '/usr/lib/ssh/x11-ssh-askpass', provided by the package
#   'x11-ssh-askpass',
# - '/usr/bin/lxqt-openssh-askpass', provided by the package
#   'lxqt-openssh-askpass',
# - '/usr/bin/qt4-ssh-askpass', provided by the package
#   'openssh-askpass',
# - '/usr/bin/ksshaskpass', provided by the package 'ksshaskpass', 
# - '/usr/lib/seahorse/ssh-askpass', provided by the package 'seahorse'.

askpass_cmd=/usr/lib/ssh/x11-ssh-askpass
# askpass_cmd=/usr/bin/lxqt-openssh-askpass
# askpass_cmd=/usr/bin/ksshaskpass
# askpass_cmd=/usr/bin/qt4-ssh-askpass
# askpass_cmd=/usr/lib/seahorse/ssh-askpass



# image_converter:
# 
# Specifies if 'ImageMagick' or 'GraphicsMagick' should be used to
# convert to pixel graphic. If the 't=<filetype>' option is present in
# the Device URI and it specifies a pixel graphic, 'ìmage_converter' is
# required.
# 
# Possible values:
# - 'im': ImageMagick
# - 'gm': GraphicsMagick

image_converter=im