Results 1 to 4 of 4
I want to use the lpr command within a program. It requires the printer to be specified. How can I find the actual user's default printer's place with a command ...
- 01-20-2008 #1
How to find the default printer?
I want to use the lpr command within a program. It requires the printer to be specified. How can I find the actual user's default printer's place with a command ?(I want my program to find the printer and to print out a certain document with the user's printer.)
If you need a CD/DVD catalogizer, give a try to my program:
http://www.kde-apps.org/content/show...content=100682
Linux Usert#430188
- 01-21-2008 #2
If you are using Ubuntu 7.10 try:
System>Preferences>Default Printer; then select the printer you would like as default.
- 01-21-2008 #3
You misunderstood me! I would like to read it out from some environmental variable! The end user probably have chosen his default printer. My program wants to use it. Is it clear?
If you need a CD/DVD catalogizer, give a try to my program:
http://www.kde-apps.org/content/show...content=100682
Linux Usert#430188
- 01-21-2008 #4Linux Enthusiast
- Join Date
- Aug 2006
- Posts
- 631
The environment variable of the defaultprinter should be LPDEST.
Regards


Reply With Quote