Find the answer to your Linux question:
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 ...
  1. #1
    Linux Enthusiast minthaka's Avatar
    Join Date
    May 2006
    Location
    Mol, Vojvodina
    Posts
    556

    Question 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

  2. #2
    Just Joined! Metaljaz's Avatar
    Join Date
    Jul 2006
    Posts
    53
    If you are using Ubuntu 7.10 try:
    System>Preferences>Default Printer; then select the printer you would like as default.

  3. #3
    Linux Enthusiast minthaka's Avatar
    Join Date
    May 2006
    Location
    Mol, Vojvodina
    Posts
    556
    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

  4. #4
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    The environment variable of the defaultprinter should be LPDEST.

    Regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...