Default printer and patch management

Huw D M Davies h.davies1 at
Thu Nov 27 16:59:04 CST 2003

On Thu, Nov 27, 2003 at 09:37:16PM +0000, Mike Hearn wrote:
> Hi, I've got a couple of questions tonight:
> 1) Currently the default printer is read from win.ini - setting this is
> annoying and doesn't work out of the box. I think it'd make more sense
> to have it also in the wine configuration, so if no win.ini string is
> retrieved it'll still work. I have an app here that dies if there is no
> default printer. Is it acceptable to make a fallback in the
> registry/config branch? The default would be "Wine Postscript Driver",
> though I guess we could be clever - enumerate the printers actually
> installed and pick the first. I don't know enough about printing to say.
> Huw?

We should be doing this already.  If cups is installed then we use the
cups default, otherwise for printcap systems we use the PRINTER
env variable or if that isn't set the first entry in /etc/printcap.
Take a look at dlls/winspool/info.c


More information about the wine-devel mailing list