diff options
author | felics | 2018-05-22 12:09:24 +0200 |
---|---|---|
committer | felics | 2018-05-22 12:09:24 +0200 |
commit | 7a6efa27909c184ea797b0e0263738b4190294b9 (patch) | |
tree | b9b51f2c3d2f838e68f79342c857610a8ef673fd | |
parent | 1b0e7f486fe7a31a5d65489eda3eef442b2b5abd (diff) | |
download | aur-7a6efa27909c184ea797b0e0263738b4190294b9.tar.gz |
Minor documentation and information improvements.
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 7 | ||||
-rw-r--r-- | README.md | 21 | ||||
-rwxr-xr-x | cups-programme.sh | 4 |
4 files changed, 22 insertions, 18 deletions
@@ -1,6 +1,6 @@ pkgbase = cups-print-to-programme pkgdesc = Virtual printer for cups which prints to a file and opens that with a programme the user can choose in the settings. For example, print to gimp. - pkgver = 0.2.1 + pkgver = 0.2.2 pkgrel = 1 url = http://felics.kettenbruch.de/software/cups-print-to-programme/ install = cups-programme.install @@ -20,7 +20,7 @@ pkgbase = cups-print-to-programme optdepends = seahorse: For a graphical password input frontend for sudo. optdepends = ksshaskpass: For a graphical password input frontend for sudo. optdepends = gnome-ssh-askpass2: For a graphical password input frontend for sudo. - provides = cups-print-to-programme-doc=0.2.1 + provides = cups-print-to-programme-doc=0.2.2 backup = etc/cups/cups-programme.conf source = cups-programme.sh source = cups-programme.conf @@ -28,9 +28,9 @@ pkgbase = cups-print-to-programme source = TODO.txt source = GPL3.txt source = cups-programme.install - sha256sums = 9e29f33db3bf8c4697034db0a16e869a5db16b9306243bce5e5a54bece7b0296 + sha256sums = 3a56c03ef229bf5107cba5e3d60b3f73785f51a90499d1b3b3f2424af3b8bb6a sha256sums = f583ed8969deef9e890b20c475bc24fd4eed8ef3c3a51544f9183fcc69d38c5c - sha256sums = 9dab3a743d524aa3c6992501205ee7be4baaff3f73534ef878162e4e603bc9ca + sha256sums = ab2189e6d8d6193a5cb05653270b5a8e1466fe528062e3b0cc52eb165e1b6329 sha256sums = 83b54a69c67d39d03b1b02a4da1c2bccb45c459f239809568221844c2e7500a7 sha256sums = 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986 sha256sums = 0ee996783ae6848cf3c522de135646cb4b19670a48d6f1bf387b5b304f5506ad @@ -3,7 +3,7 @@ _pkgname=cups-print-to-programme pkgname="${_pkgname}" -pkgver=0.2.1 +pkgver=0.2.2 pkgrel=1 pkgdesc="Virtual printer for cups which prints to a file and opens that with a programme the user can choose in the settings. For example, print to gimp." arch=('any') @@ -38,15 +38,14 @@ optdepends=( ) provides=("${_pkgname}-doc=${pkgver}") backup=('etc/cups/cups-programme.conf') -sha256sums=('9e29f33db3bf8c4697034db0a16e869a5db16b9306243bce5e5a54bece7b0296' +sha256sums=('3a56c03ef229bf5107cba5e3d60b3f73785f51a90499d1b3b3f2424af3b8bb6a' 'f583ed8969deef9e890b20c475bc24fd4eed8ef3c3a51544f9183fcc69d38c5c' - '9dab3a743d524aa3c6992501205ee7be4baaff3f73534ef878162e4e603bc9ca' + 'ab2189e6d8d6193a5cb05653270b5a8e1466fe528062e3b0cc52eb165e1b6329' '83b54a69c67d39d03b1b02a4da1c2bccb45c459f239809568221844c2e7500a7' '3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986' '0ee996783ae6848cf3c522de135646cb4b19670a48d6f1bf387b5b304f5506ad') - pkgver() { cd "${srcdir}" ./cups-programme.sh --version diff --git a/README.md b/README.md index e72250035821..d27745532a08 100644 --- a/README.md +++ b/README.md @@ -47,13 +47,18 @@ it's information which programme to execute. The Device URI to print to The Gimp is, for example: - cups-programme:/usr/bin/gimp?u=<user>&D=%C0.0&%s + cups-programme:/usr/bin/gimp?u=.CUPSUSER&DISPLAY=%C0.0&%s -where `<user>` is the name of the user `gimp` should be run as. If not -specified, it will be run as the user CUPS is running as, which might -not be desired. The `D=%C0.0` specifies the X11 display to use. In most -cases, `:0.0` is correct (`%C` will be replaced by `:`). (See section -"Device URI syntax" for a full description of the Device URI.) +where `.CUPSUSER` will be replaced by the user who invoked the CUPS +print job (if CUPS can infer; otherwise most probably it will be the +user CUPS runs it's backends as, e.g. `lp`) ind will be the user `gimp` +should be run as. If `u=[...]` is not specified, it will be run as the +user CUPS is running it's backends as, which might not be desired. The +`DISPLAY=%C0.0` specifies the X11 display to use. In most cases, `:0.0` +is correct (`%C` will be replaced by `:`). + +See section "Device URI syntax" for a full description of the Device +URI. After the Device URI has been entered, select a name and optionally a description and a location note for the printer. Then you are presented @@ -95,7 +100,7 @@ where: (otherwise CUPS will complain that it is not a correct URI; it expects a `/` after the `:`), * `?<options>` is optional and has the syntax - `<option>&<option>&<option>` etc. (arbitraryly many options, + `?<option>&<option>&<option>` etc. (arbitraryly many options, separated by `&`, are allowed). an `<option>` can be of the form: - `u=<user>` -- specifies that the executable should be run as user @@ -118,7 +123,7 @@ where: + 'jpg' (JPEG; uses ImageMagick or GraphicsMagick), + 'tif' (TIFF; uses ImageMagick or GraphicsMagick), - `<variable>=<value>` -- assigns `<value>` to the environment - variable `<variable>` and exports `<variable>`. + variable `<variable>` and exports `<variable>`, - anything else will be passed as positional arguments to the executable. * On `<path-to-executable>` and all the options (except `t=<filetype>`), diff --git a/cups-programme.sh b/cups-programme.sh index 58ade12035c0..61591d2e6056 100755 --- a/cups-programme.sh +++ b/cups-programme.sh @@ -29,7 +29,7 @@ # # The version. -VERSION=0.2.1 +VERSION=0.2.2 # Abort on error set -e @@ -134,7 +134,7 @@ outfile_prefix="/tmp/${backend_name}.${jobid}" case ${#} in 0) # This case is for "backend discovery mode." - echo "direct ${backend_name} \"Unknown\" \"cups-programme: Print to file and open in programme. DeviceURI example: ${backend_name}:/usr/bin/gimp?u=<user>&D=%C0.0&%s\". See documentation!" + echo "direct ${backend_name} \"Unknown\" \"cups-programme: Print to file and open in programme. DeviceURI example: ${backend_name}:/usr/bin/gimp?u=<user>&DISPLAY=%C0.0&%s\". See documentation!" exit 0 ;; 5) |