[OS X] open documents from Finder (= through LaunchServices) and preserve app icon

Review Request #127932 - Created May 15, 2016 and submitted

Information
René J.V. Bertin
gwenview
master
Reviewers
gwenview, kde-mac

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 (QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("gwenview"))))
- it installs an extended Info.plist and 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.

Issues

  • 0
  • 2
  • 0
  • 2
Description From Last Updated
René J.V. Bertin
Aurélien Gâteau
René J.V. Bertin
Aurélien Gâteau
René J.V. Bertin
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit fe4563d9fd922bea3890e7ad5f470f2363a8b43d by René J.V. Bertin to branch master.
Loading...