Bug 5383

Summary: substitute gtklp for lp and lpr commands: make the unified printing menu for X programs
Product: Sisyphus Reporter: Ivan Zakharyaschev <imz>
Component: gtklpAssignee: Vyacheslav Dikonov <slava>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: enhancement    
Priority: P2    
Version: unstable   
Hardware: all   
OS: Linux   

Description Ivan Zakharyaschev 2004-10-23 02:23:43 MSD
gtklp-0.9k-alt3

Idea: Most programs send the stuff to print to lp/lpr command.

gtklp can work as a wrapper for lp, lpr. 

If gtklp is called whenever a program submits a printing task through lp/lpr,
then the user will see the gtklp GUI (in X) with all the powerful printing
options menus, so he can adjust them.

It can be implemented by installing gtklp wrapper as an alternative to lp/lpr
commands.

Why it is useful? Each program that has a Print option is not able to supply a
printing menu with all the possible options there. But gtklp could be a helper.

Example:

the printing menu in djview doesn't have an option to select n-up printing and
the layout for it. If gtklp is used when printing from djview, a user can print
a djvu document in a single sequence of actions in the layout he likes. (Without
gtklp the sequence breaks into two: first print to a file, then either call
gtklp on the file or lp with the special options.)
Steps to Reproduce:
1. Print from a GUI program that uses lp/lpr (say, djview).
2. Try to set a custom option for teh printing task (say, n-up printing).

Actual Results:  
The progam's menu lacks such options.

Expected Results:  
A wrapper is called instead of  lp/lpr which calls 

GTKLP_FORCEX=1 gtklp 

and gtklp starts in X. The user is able to choose the options he wants.
Comment 1 Denis Ovsienko 2004-12-01 11:57:14 MSK
Use alternatives, Luke?
Comment 2 Vyacheslav Dikonov 2004-12-01 18:22:46 MSK
Сделано для 1.0-alt1. Жду отзывов.