HISE Logo Forum
    • Categories
    • Register
    • Login

    AudioResources.dat in System Library on macOS?

    Scheduled Pinned Locked Moved General Questions
    7 Posts 2 Posters 346 Views
    Loading More Posts
    • 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.
    • O
      optimistic
      last edited by

      I'm just in the process of building installers for a plugin with a significant amount of IR content.

      I realize that the AudioResources.dat must be in the following location ...

      ~/Library/Application Support/Company/Product/
      

      But specifically what I am wondering is if I can move this to the same system location?

      /Library/Application Support/Company/Product/
      

      There are two main reasons why I would like to do this ...

      1. White Box Packages doesn't seem to want to install into user directories
      2. With this current approach all user accounts on a machine will need to install the IR content here. I can see this both increasing the frequency of support tickets and annoying some users unnecessarily.

      I tried moving the product folder to the system library with no luck. The plugin didn't complain as if they were missing (which was also concerning as usually it will) but also didn't load any of the IRs.

      The ideal solution would be allowing the system Library to be used for non user generated plugin content such as AudioResources.dat.

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @optimistic
        last edited by

        @optimistic is there a Application Support folder in the global Library Path? AFAIK all application data should be stored in the user domain.

        O 1 Reply Last reply Reply Quote 0
        • O
          optimistic @Christoph Hart
          last edited by

          @Christoph-Hart

          is there a Application Support folder in the global Library Path?

          Yes, there is. This is also the standard path that many other plugin manufacturers place their factory resources.

          For example here is what my System folder looks like for Application Support (ignore the fact that many of these are symlinks — I did this so I could place these folders on an external hard drive)

          Screen Shot 2022-11-13 at 9.04.10 AM.png

          Christoph HartC 1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart @optimistic
            last edited by

            @optimistic ah ok in this case I‘ll add a preprocessor that you can define if you want to use the global path instead of the user one.

            O 1 Reply Last reply Reply Quote 1
            • O
              optimistic @Christoph Hart
              last edited by

              @Christoph-Hart Amazing! Much appreciated!

              Christoph HartC 1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart @optimistic
                last edited by

                @optimistic Alright, if you now add

                HISE_USE_SYSTEM_APP_DATA_FOLDER=1
                

                in the ExtraDefinitionsOSX field in your project settings, it will use the global app data folder instead. You can also define this on Windows if it makes more sense for you, but I think it's not required there.

                O 1 Reply Last reply Reply Quote 3
                • O
                  optimistic @Christoph Hart
                  last edited by

                  @Christoph-Hart Tested and working as expected. Thanks again!

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  46

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.9k

                  Posts