# Wine + CUPS

## Tags: freebsd

Yesterday, I stumbled over an interesting problem with Wine: If a ServerName directive exists in /usr/local/etc/cups/client.conf, i.e., if you are connecting to a shared server for printing services, programs started with Wine seem to hang.

This problem is caused by non-reachable servers. It might occur when you change your network or when the shared server is unavailable. In this case, Wine will seem to hang. More precisely: If you wait long enough, the application will run eventually. But nobody likes waiting very much.

So, if you have a similar problem, abort the “hanging” application and check the console output. My output contained the line

Module:attach\_process\_dlls "winspool.drv" failed to initialize, aborting


and to solve the problem, I simply changed client.conf by adding

ServerName localhost


in the first line and restarting CUPS via /usr/local/etc/rc.d/cupsd restart.