[OS X] open documents from Finder (= through LaunchServices) and preserve app icon
Review Request #127932 - Created May 15, 2016 and submitted
|René J.V. Bertin|
This patch takes care of 2 things on OS X:
- it prevents the application icon (installed via
ecm_add_app_icon) to be replaced by an empty icon in main (
- it installs an extended
Info.plistand an event filter that catches
QFileOpenEvents so that gwenview can open documents served through LaunchServices, e.g. when using the Finder's "Open With" function. This same code should also work under MS Windows.
With OS X 10.9.5, Qt 5.6.0 and K5FWs 5.20.0 . It currently doesn't attempt to queue incoming requests in some sort of temporal buffer so that it can open groups of documents.