Skip to content

Commit

Permalink
Add workaround for non-gui environments to glabels-batch manpage. (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevins committed Nov 28, 2019
1 parent f09ca36 commit edcb0d7
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 9 deletions.
22 changes: 20 additions & 2 deletions user-docs/_build/man/glabels-batch-qt.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "GLABELS-BATCH-QT" "1" "May 05, 2019" "" "gLabels"
.TH "GLABELS-BATCH-QT" "1" "Nov 27, 2019" "" "gLabels"
.SH NAME
glabels-batch-qt \- batch creation of labels and business cards
.
Expand Down Expand Up @@ -56,7 +56,7 @@ Send output to <printer>.
.UNINDENT
.INDENT 0.0
.TP
.B \-o <filename>, \-\-output <filename>
.B \-o [<filename>], \-\-output [<filename>]
Set output filename to <filename>. Set to "\-" for stdout.
(Default="output.pdf")
.UNINDENT
Expand Down Expand Up @@ -90,6 +90,11 @@ Print crop marks.
.B \-r, \-\-reverse
Print in reverse (mirror image).
.UNINDENT
.INDENT 0.0
.TP
.B \-D <var>=<value>, \-\-define <var>=<value>
Set initial value of user variable <var> to <value>.
.UNINDENT
.SH FILES
.INDENT 0.0
.TP
Expand All @@ -110,6 +115,19 @@ Directory for manually created product templates.
.UNINDENT
.SH BUGS
.sp
On GNU/Linux platforms, \fBglabels\-batch\-qt\fP must be run from within a windowing environment, such as X or Wayland. This is because Qt requires a suitable platform to obtain system font information. A work\-around is to run \fBglabels\-batch\-qt\fP using a virtual X server environment:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
xvfb\-run glabels\-batch\-qt \-o output.pdf myProject.glabels
.ft P
.fi
.UNINDENT
.UNINDENT
.SH REPORTING BUGS
.sp
Bugs and feature requests can be reported via the gLabels issue tracking system at GitHub (<\fI\%https://github.com/jimevins/glabels\-qt/issues\fP>). You will need a GitHub account to submit new issues or to comment on existing issues.
.SH SEE ALSO
.sp
Expand Down
4 changes: 2 additions & 2 deletions user-docs/_build/man/glabels-qt.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "GLABELS-QT" "1" "May 05, 2019" "" "gLabels"
.TH "GLABELS-QT" "1" "Nov 27, 2019" "" "gLabels"
.SH NAME
glabels-qt \- create labels and business cards
.
Expand Down Expand Up @@ -67,7 +67,7 @@ templates here!\fP
.B ${HOME}/.glabels/
Directory for manually created product templates.
.UNINDENT
.SH BUGS
.SH REPORTING BUGS
.sp
Bugs and feature requests can be reported via the gLabels issue tracking system at GitHub (<\fI\%https://github.com/jimevins/glabels\-qt/issues\fP>). You will need a GitHub account to submit new issues or to comment on existing issues.
.SH SEE ALSO
Expand Down
18 changes: 15 additions & 3 deletions user-docs/man/glabels-batch-qt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ OPTIONS

Displays version information and exits.

.. program:: glabels-batch-qt

.. option:: -p <printer>, --printer <printer>

Send output to <printer>.

.. option:: -o <filename>, --output <filename>
.. option:: -o [<filename>], --output [<filename>]

Set output filename to <filename>. Set to "-" for stdout.
(Default="output.pdf")
Expand Down Expand Up @@ -62,6 +60,10 @@ OPTIONS

Print in reverse (mirror image).

.. option:: -D <var>=<value>, --define <var>=<value>

Set initial value of user variable <var> to <value>.

FILES
-----

Expand All @@ -82,6 +84,16 @@ FILES
BUGS
----

On GNU/Linux platforms, :program:`glabels-batch-qt` must be run from within a windowing environment, such as X or Wayland. This is because Qt requires a suitable platform to obtain system font information. A work-around is to run :program:`glabels-batch-qt` using a virtual X server environment:

.. code:: shell
xvfb-run glabels-batch-qt -o output.pdf myProject.glabels
REPORTING BUGS
--------------

Bugs and feature requests can be reported via the gLabels issue tracking system at GitHub (<https://github.com/jimevins/glabels-qt/issues>). You will need a GitHub account to submit new issues or to comment on existing issues.

SEE ALSO
Expand Down
4 changes: 2 additions & 2 deletions user-docs/man/glabels-qt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ FILES

Directory for manually created product templates.

BUGS
----
REPORTING BUGS
--------------

Bugs and feature requests can be reported via the gLabels issue tracking system at GitHub (<https://github.com/jimevins/glabels-qt/issues>). You will need a GitHub account to submit new issues or to comment on existing issues.

Expand Down

0 comments on commit edcb0d7

Please sign in to comment.