There’s a CUPS server on the network, sharing multiple printers, and there’s a virtual machine running a Windows application via Wine. The virtual machine is running CUPS too, so all printers of the main CUPS server are available for the mentioned Windows application.
Now I need to force one specific printer as the default (Windows) printer because my application is too stupid and will use always the default (Windows) printer.
And the short answer is: just look at the first few lines of
/home/user/.wine/drive_c/windows/win.ini, in my case there was something like this:
So that was probably the reason for the Windows application to always use the
because I wanted to force a printer named
test. But the Windows application was still using the printer named
win.ini again, and my changes were gone!
I solved this problem by changing
win.ini again, and then:
su chown root:root /home/user/.wine/drive_c/windows/win.ini chmod 644 /home/user/.wine/drive_c/windows/win.ini
Seems brutal, but works. Problem solved.