Question

I'm making the following call:

cupsGetDest(0,0,numDests,dests);

Where numDests and dests are set appropriately. null is returned, even though I have a default printer set. Why is this?

Était-ce utile?

La solution

Turns out I was running this as root instead of the desktop user, hence the problem.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top