gtklp(1)
π gtklp β the manual page, but make it make sense π
okay bestie, sit down, we're learning gtklp from gtklp(1) and honestly? it's giving "graphical printing era" and I'm obsessed. let's go π«Ά
β¨ NAME β¨
gtklp β print files via CUPS. that's it, that's the whole vibe. π
β¨ SYNOPSIS β¨
so there's three ways to call this thing, and here they all are, character for character, no cap:
gtklp [-P|-d printer] [-c configdir] [-S|-h server] [-p port] [-l] [-D]
[-V] [-b] [-i] [-F] [-H] [-C] [-U user] [-#|-n n] [-E] [-q priority]
[-t|-J jobname] [-o option=value ... ][file(s)]
lp [-d printer] [-S|-h server] [-p port] [-D] [-V] [-b] [-U user] [-#|-n
n] [-E] [-q priority] [-t|-J jobname] [-P page-list [-H handling] [-X]
[-o option=value ... ][file(s)]
lpr [-P|-d printer] [-S|-h server] [-p port] [-D] [-V] [-b] [-U user]
[-#|-n n] [-E] [-q priority] [-t|-J|-C|-T jobname] [-X] [-o option=value
... ][file(s)]
notice how the same program shows up as three different personalities depending on what you call it β main character energy fr fr. π
β¨ DESCRIPTION β¨
GtkLP is an graphical frontend for CUPS, the Common UNIX Printing System. π
basically it exists so you can have an easy (and graphical π) way to reach ALL of the many, many options that cups-managed printers have. like, cups has a lot of options. GtkLP is the friend who translates. β¨
β¨ OPTIONS β¨
the ones gtklp recognizes π¦
-P printerβ use printer as your default destination. where the job goes, periodt. π-d printerβ literally equivalent to-P. same thing, different letter, no cap.-c configdirβ use configdir to set an alternative path to the configfiles for GtkLP. ποΈ-S serverβ the name of the CUPS-Server.-h serverβ the same as-S. twin behavior. π-p portβ the port of the CUPS-Server,631per default. πͺ-lβ only list the chosen options as a list of commandline-parameters forlpr. nice for scripting purposes... (lowkey the sleeper hit of this whole page)-Dβ Debug. π-Vβ displays the version of GtkLP. say hi to her. π-bβ use builtin defaults instead of saved options. fresh start energy β¨-iβ ignore data on stdin. sometimes useful, e.g. for printing from some versions of the Acrobat Reader. π (we've all been there)-Fβ hide the File-Tab if a file is given at the command-line.-U userβ the name of the cups-User to use. π-# nβ make n copies per default. yes bestie, multiple copies. π₯-n nβ the same as-#. β¨-Hβ Help. π-Cβ force console-mode. no GUI, just vibes.-o option=valueβ specify extra options, same syntax aslpr.-Eβ forces encryption when connecting to the server. π-q priorityβ specify the priority of the print job, from1(lowest) to100(highest). go big or go home. π-t jobnameβ specify the jobname. name your baby. πΌ-J jobnameβ the same as-t.
if you call it as lp, these options differ from GtkLP's options π
-Xβ force X-Mode, even ifGTKLP_FORCEXis not set to1.-P page-listβ specifies which pages to print in the document. the list can contain a list of numbers and ranges (#-#) separated by commas (e.g.1,3-5,16). ποΈ-H handlingβ specifies when the job should be printed. a value ofimmediatewill print the file immediately, a value ofholdwill hold the job indefinitely, and a time value (HH:MM) will hold the job until the specified time. (does this option work ?) π β yes, that's genuinely in the original, I'm not making it up, the manpage itself is unsure.
if you call it as lpr, these options differ from GtkLP's options πΈ
-Xβ force X-Mode, even ifGTKLP_FORCEXis not set to1.-C jobnameβ specify the jobname.-T jobnameβ the same as-C.-pβ specifies that the print file should be formatted with a shaded header with the date, time, job name, and page number. this option is equivalent to-oprettyprintand is only useful when printing text files. π-lβ specifies that the print file is already formatted for the destination and should be sent without filtering. this option is equivalent to-oraw. π§
some other options from systemv'slpand berkeley'slprare ignored without error message. (silently ignored. no warning. she just doesn't hear you. iconic, honestly.)
β¨ PATHS β¨
GtkLP looks for config-files under
<configdir>
then under
$HOME/.gtklp/
and at last under
/etc/gtklp/.
that's the search order, bestie, in that exact order. π
to hide Printers from users, use the following pathes:
/etc/gtklp/accept/
/etc/gtklp/deny/
$HOME/.gtklp/
just put an empty file with the name of the printer the user should see by default to accept, put an empty file with the name of the printer the user should never see to deny. π«
- if only
acceptexists, all but the accepted printers are allowed. - if only
denyexists, all but the denied printers are accepted.
all users can deny accepted printers, but they can't unhide denied ones. (you can hide, but you cannot un-hide. the rules are the rules.) π
β¨ SPECIAL β¨
in GtkLP you can define a browser to open the help URL, the CUPS-Homepage and so on. just use your favorite HTML browser. π the first $1 in command-line will be substituted by the URL. πͺ
if you can't connect to an X-Server, GtkLP acts as console-lpr. πβ‘οΈπ
if called as lpr, or lp, GtkLP acts on console and has some other command-line parameters, see above. π
β¨ VARIABLES β¨
you can set the following environment variables to influence the behaviour of GtkLP:
CUPS_SERVERβ the default CUPS-server to connect to. π₯οΈIPP_PORTβ the default Port of the CUPS-server to connect to. πͺPRINTERβ the default printer to use. π¨οΈGTKLP_FORCEXβ set to1to force X-Mode forlprandlp. π₯
β¨ ERROR β¨
GtkLP produces the following Error-Codes:
0β normal program termination. β everything slayed.1β small error, wrong parameters, etc. π a little oopsie.2β Server Problems, server not found, no default printer found, etc. π the server ghosted you.3β BAD error. Fields declared too short, too many printers, etc. π this one is the real one. respect it.
β¨ SEE ALSO β¨
gtklpq(1)lpr(1)- CUPS Software Users Manual
http://localhost:631/documentation.html
β¨ COPYRIGHT β¨
this program was written by T. Mueller, 2000, 2001, 2002. π
it is licensed under the Terms of the GNU GENERAL PUBLIC LICENSE, see also http://www.gnu.org. ποΈ
β¨ CONTACT β¨
the latest version of GtkLP is always available under http://gtklp.sourceforge.net/ π
feel also free to contact me. please mail also, if you like the software !!! ;-) π
and that's the whole page, bestie!! go forth and print responsibly β¨π¨οΈ
β Tobias Mueller, and this little manual is gtklp(1) π π π¦
π¦ where this page comes from
- debian bookworm: gtklp 1.3.4-3+b1
- debian trixie: gtklp 1.3.4-3+b2
- nixos 26.05: gtklp 1.3.4
- ubuntu jammy: gtklp 1.3.4-1
- ubuntu noble: gtklp 1.3.4-3build3
- ubuntu questing: gtklp 1.3.4-3build3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms