Bug 33467 - Mac: Default printer should be taken from the OS when printing
Summary: Mac: Default printer should be taken from the OS when printing
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
(earliest affected)
3.3.0 release
Hardware: All Mac OS X (All)
: medium enhancement
Assignee: Not Assigned
URL: https://www.brotherprintersupport.net...
Keywords: difficultyBeginner, skillCpp, topicUI
Depends on:
Blocks: MacOS-Wishlist
  Show dependency treegraph
Reported: 2011-01-25 06:52 UTC by Vossman
Modified: 2019-08-29 12:09 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Vossman 2011-01-25 06:52:29 UTC
Under Mac OS X, it has an awesome feature that remember my default printer depending on my location (I have two offices each with their own laser printer). NeoOffice was setup to take this default printer choice from the system when I print. That way don't have to change it every time I want to print.

With LO, I end up printing to my unplugged ink jet (where can I change the default???) then I have to delete that job and submit again. Ugh.
Comment 1 Noel Power 2011-01-25 07:24:00 UTC
-> thorsten to evaluate this enhancement
Comment 2 Thorsten Behrens (CIB) 2011-01-26 04:33:31 UTC
Probably just a question of calling http://www.cups.org/documentation.php/api-cups.html#cupsGetDefault if default printer is wanted -
Comment 3 Florian Reisinger 2012-05-18 09:53:54 UTC
Deleted "Easyhack" from summary.
Comment 4 Thorsten Behrens (CIB) 2013-09-12 16:14:38 UTC
Apologies for not having gotten around fixing this bug yet; unfortunately in future I'll have even less time at my disposal for this, so I'm freeing up ownership for other volunteers to take over.
Comment 5 Björn Michaelsen 2013-10-04 18:46:04 UTC
adding LibreOffice developer list as CC to unresolved EasyHacks for better visibility.

see e.g. http://nabble.documentfoundation.org/minutes-of-ESC-call-td4076214.html for details
Comment 6 Hussian Alamri 2014-05-16 06:30:22 UTC
I want to volunteer and fix this.

Should I use OS X (Cocoa) APIs to find out the default printer? I think LibreOffice aims for cross-platform portability so unlike NeoOffice it doesn't include OS X specific code.

I will attempt fixing it using CUPS, maybe it can be fixed and maybe it is a CUPS limitation. If I can use OS X specific API/syscalls let me know.

One last question, where can I find the code related to printing?

Thank you.

-- Alamri Hussian
Comment 7 Tor Lillqvist 2014-05-16 06:35:08 UTC
Nah, feel free to use OS X -specific code if it helps, obviously putting it inside an appropriare ifdef.

After all, the "U" in "CUPS" stands for "Unix", and our most important platform is Windows (number of users, and especially paying customers;). So it isn't as if using CUPS would be cross-platform either.

I would start looking in vcl. I think printing related functionality already *is* in platform-specific code in vcl.
Comment 8 Hussian Alamri 2014-05-16 06:57:23 UTC
Okay. I'm on it. I'm reading Apple Developer guide regarding printing right now.

git grep NSPrint revealed a number of files that I need to look into.

Is there a top-level view of the source code that can help me see how the source files are connected to one another?

I will reply back with progress updates.

-- Alamri Hussian.
Comment 9 Joel Madero 2015-02-09 04:48:13 UTC
Removing love keyword as it never really caught on and it duplicates what "EasyHack" means (code pointer + dev willing to assist if needed).
Comment 10 Robinson Tryon (qubit) 2015-12-14 06:18:13 UTC Comment hidden (obsolete)
Comment 11 Michael Stahl (CIB) 2016-01-26 17:21:03 UTC
there really should be a code pointer for this easy hack
Comment 12 jani 2016-02-17 08:03:53 UTC
We miss code pointer?
Comment 13 Chris Sherlock 2016-02-17 09:10:56 UTC
NEEDINFO should only be set if we need more information to diagnose or replicate the issue. Best not to use it if we just need to provide code pointers. Therefore setting status to NEW.
Comment 14 jani 2016-04-29 05:50:03 UTC
NEEDINFO is also used to get code pointers, but no problem.

Removed easy hack keyword, due to missing code pointers.
Comment 15 Jack Denial 2018-08-29 12:21:10 UTC Comment hidden (spam)
Comment 16 Brother Printer Customer Service Phone Number 2019-07-15 10:31:33 UTC Comment hidden (spam)
Comment 17 jones smith 2019-08-29 07:34:28 UTC Comment hidden (spam)
Comment 18 james martin 2019-08-29 12:09:07 UTC Comment hidden (spam)