http://bugs.winehq.org/show_bug.cgi?id=2144
Summary: wine should provide a mechanism for specifying the default printer Product: Wine Version: 20040309 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: wine-binary AssignedTo: wine-bugs@winehq.org ReportedBy: todd.allen@attglobal.net
I've spent several hours trying to figure out how to specify a default printer with wine, poring over .wine/*.reg and win.ini files. And I've concluded that it's impossible. That no matter what the user does, wine will select the default printer in the cups configuration, and make that the default printer for wine. If I've got that wrong, I'd sure like to know. If it's right, I'd like to request an configurable to control the default printer.
I thought for a while that changing the win.ini [windows] device= entry might do it. But no. wine just resets it back to the cups default.
I would like my wine configuration to print to a file by default. So, I modified win.ini with an entry like this: [windows] device=Wine PostScript Driver FILE,WINEPS,FILE: Then I run: (unset PRINTER; unset LPDEST; wine notepad) I didn't know if PRINTER and/or LPDEST might be forcing it, so you can consider the unset's to be paranoia.
In the notepad, I select File / Print. And it pops up a dialog that has the CUPS default printer, skunk. Also, it printed this:
fixme:commdlg:PRINTDLG_SetUpPrinterListComboW Can't find '(null)' in printer list so trying to find default
When I exit from the notepad, the win.ini file has been rewritten with this: [windows] device=skunk,WINEPS,LPR:skunk