fredley
fredley

Reputation: 33891

Why is CUPS not returning my default printer?

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?

Upvotes: 1

Views: 324

Answers (1)

fredley
fredley

Reputation: 33891

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

Upvotes: 1

Related Questions