[MacPorts] #65302: darktable/inkscape/gimp: unable to access user files, when run via app bundle on big sur or monterey

MacPorts noreply at macports.org
Sat Jul 16 13:19:32 UTC 2022


#65302: darktable/inkscape/gimp: unable to access user files, when run via app
bundle on big sur or monterey
-------------------------------------+-------------------------------------
  Reporter:  mascguy                 |      Owner:  mascguy
      Type:  defect                  |     Status:  assigned
  Priority:  Normal                  |  Milestone:
 Component:  ports                   |    Version:  2.7.2
Resolution:                          |   Keywords:  app-bundle bigsur
      Port:  darktable inkscape      |  monterey
  gimp                               |
-------------------------------------+-------------------------------------

Comment (by mascguy):

 Quick update: Thus far, my app testing has focused on accessing the
 standard user folders setup by macOS: Desktop, Documents, etc. All of
 which are now more protected from apps, in Big Sur and later.

 Then it occurred to me: What if I create my own folder within the user
 home directory, and try accessing that? Well, sure enough, that works just
 fine!

 And given that none of these apps appear to be formally sandboxed by
 GateKeeper - per the "Sandbox" column in Activity Monitor - that makes
 sense.

 So the good news is, file access isn't blocked per se. It's only the now-
 protected user locations that are.

 Based on further reading of various docs and articles, it sounds (?) like
 apps are supposed to request access to protected areas via the appropriate
 macOS security APIs. That would result in the user being prompted for
 access. But that's not happening.

 So I need to dig into upstream code a bit more, and see whether such calls
 are in place. (And whether they're enabled by default, or require enabling
 via configure/build arguments.)

 Regardless, slowly making progress!

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


More information about the macports-tickets mailing list