D29178: [dolphin] : Mac integration

René J.V. Bertin noreply at phabricator.kde.org
Sat Apr 25 13:56:11 BST 2020


rjvbb created this revision.
rjvbb added a reviewer: Dolphin.
rjvbb added a project: Dolphin.
Herald added a subscriber: kfm-devel.
rjvbb requested review of this revision.

REVISION SUMMARY
  Dolphin has a few advantages over the Mac Finder, not the least of which being its support for various remote file access protocols including Samba. (Older Mac OS versions fail to connect to MSWin 10 shares because of their system Samba libraries.)
  
  This patch improves the Dolphin integration on Mac:
  
  - by making certain helper applications are launched (including dolphin itself, using the assumption that "cloning" a window should be perfect and thus use the same Dolphin executable).
  - by making certain the service menu installer is found. For now this is still done by installing it as a regular POSIX executable in a location that is assumed to be on the PATH.
  - by registering the URIs Dolphin can handle with LaunchServices. This allows to open items by dragging them onto the application icon.

TEST PLAN
  Works as intended: helper applications open (they don't without this patch unless you install symlinks in system directories) and items can be opened via the Mac GUI. For folders this is limited to dragging them onto the Dolphin application icon (in a folder or the one in the Dock); I'm not aware of a way to indicate that these should be opened preferentially by Dolphin.
  
  Opening folders in individual windows and thus in multiple application instances means you get as many Dolphin icons in the Dock and AppSwitcher. I don't think anything can be done against that, other than adding MDI support to dolphin.
  
  Dragging files and folders from the Finder into a Dolphin window already works as it does on Linux. The reverse operation works too but only for the `file:/` protocol.

REPOSITORY
  R318 Dolphin

REVISION DETAIL
  https://phabricator.kde.org/D29178

AFFECTED FILES
  src/CMakeLists.txt
  src/MacOSXBundleInfo.plist.in
  src/dolphinmainwindow.cpp
  src/dolphinpart.cpp
  src/dolphintabwidget.cpp
  src/global.cpp
  src/main.cpp
  src/settings/services/servicemenuinstaller/CMakeLists.txt

To: rjvbb, #dolphin
Cc: kfm-devel, #dolphin, azyx, nikolaik, pberestov, iasensio, aprcela, fprice, fbampaloukas, alexde, Codezela, feverfew, meven, spoorun, navarromorales, firef, ngraham, andrebarros, emmanuelp, rdieter, mikesomov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20200425/21a03dc2/attachment.htm>


More information about the kfm-devel mailing list