[MacPorts] #60646: app portgroup -- accept drag-and-dropped files from the Finder

MacPorts noreply at macports.org
Sat Jun 13 21:17:48 UTC 2020


#60646: app portgroup -- accept drag-and-dropped files from the Finder
--------------------------+--------------------
  Reporter:  kencu        |      Owner:  (none)
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------

Comment (by kencu):

 Ah, it's been a while since I did this.

 something like this in the plist file gives Gedit the ability to open
 files:
 {{{
     <key>CFBundleDocumentTypes</key>
         <array>
                 <dict>
                         <key>CFBundleTypeExtensions</key>
                         <array>
                                 <string>*</string>
                         </array>
                         <key>CFBundleTypeIconFile</key>
                         <string></string>
                         <key>CFBundleTypeName</key>
                         <string>Text Document</string>
                         <key>CFBundleTypeRole</key>
                         <string>Editor</string>
                         <key>CFBundleTypeOSTypes</key>
                         <array>
                                 <string>****</string>
                         </array>
                 </dict>
         </array>
 }}}

 but then I just get this when I try to drop something on the app
 {{{
 Jun 13 14:05:12 MacBook-Pro com.apple.xpc.launchd[1]
 (com.apple.xpc.launchd.domain.pid.gedit.2248): Failed to bootstrap path:
 path = /opt/local/bin/gedit, error = 2: No such file or directory
 }}}
 and the on-screen message is "gedit cannot open files in the "text"
 format.

 Which is either me (probably) or GateKeeper (says the Internet ..).

-- 
Ticket URL: <https://trac.macports.org/ticket/60646#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list