Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. OS X sandbox container path

OS X sandbox container path

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aktk
    wrote on last edited by
    #1

    Hello, world!

    I've created OS X application which has some templates set. One to them I want to download in runtime - user needs just one of them, so I moved them out of package and want to download them on demand.

    Application is sandboxed, so I'm going to store downloaded files in sandbox container, as recommended by Apple developers guide. It path looks like:
    "~/Library/Containers/com.domain.product/Data/Library/Application Support/Company/Product/templates/"

    Is there any API in Qt5 I can use to get this folder path in runtime? QStandardPaths doesn't allow to retrieve such info.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Maybe a silly question (I haven't played yet with sandboxed app) but doesn't AppDataLocation return that path once your application is sandboxed ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aktk
        wrote on last edited by
        #3

        It returns "~/Library/Application Support/<APPNAME>" for my environment: Qt 5.3.2 (Clang 5.1 (Apple), 64 bit), OS X Yosemite 10.10.1 (14B25)

        As I understand sandboxed app Apple requirements - it is "old style" app data location, and for sandboxed apps it now should be like in starting post.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved