Write to the general library folder
-
The possibility to write to the general library folder would be great (MAC). This means in the general Plug-Ins folder (VST3/Component) and in the general Application Support folder.
This would mean that it would no longer be necessary to use whitebox packages or similar, but you could program a complete installer yourself.
The same applies to Windows, of course, so that you can do without Inno Setup or similar.
-
@Oli-Ullmann what's the question?
-
@d-healey
It is a feature request... :-)It is about the possibility to write to general folders. So far you can only write to the user folder. For example usersname/application support.
-
@Oli-Ullmann said in Write to the general library folder:
So far you can only write to the user folder. For example usersname/application support.
You can write to any folder you want if you have the user's permission (so this isn't really a feature request for HISE). You can also use
FileSystem.getFolder(FileSystem.AppData);
to get the user's app data folder.And if you want to access the system app data folder you enable this option (which I have found causes other issues so I just use the user folder).
For Windows you might also want this.
-
@d-healey
I was not able to write to the general VST3 folder. Only to the user VST3 folder. Did you manage to write to the general VST3 folder? I am using packages to do this as I have not found a way to do this from within HISE. -
@d-healey
This is not working:HiseSnippet 843.3ocsU01aSCCD1taAwBuHPhe.Q6SsHXzt1wJBgfs1UnB1nhLF7MjqykUqlXWY6rQEh+y7O.NmT5KqUCnRjOT46km6td9dN2Sq3fwnzDp+oiGAD5s8BGKsCZMfIjjtsIz658ZPBZVRvYgmVmb33QLiAhHT5Fu14CcqMI4e+3kGxRXRNLSEgblRvg2IRE1YZ68p2JRR5vhfSEoy4ciW0kqjsTIpLrd1vqJYDiOjcNbBy4VIOxaXlAD5C8pCQ61rIauF0qya9rl784rl.uV+8qtKKNpdSHpeTi8ZvHzabTjvpzgVlELXPOTEMNbf5RYQBNSXD8S.mPMRHl4B0jVCDIQ89cywPHzM6MqUsQQq5AdGKhDS0OqkcubCAyPLeSiV55JoZ+CkDctRZyhR59dgbsXjclEW8bKutRKniY3cy7kRgujRunjWKE5gztSJaHzQiBSQT9oUq9n.7mJO22GueL1fHgYXagF33eiwAuHniHABGarP5NmC1NpjHPWdNkez.52nRgJNy8XZLQSgWd0JmlqKL15XJVHkND4sCWNJu86D80L83sqbE8GjEITKosWR14OtqzrjA2381yRbLpDSrK+WwwSAi0YM2Y2gctTKrPnUKjmWXFME7jmDbhxFboROD066ixsF.7gAwJcPNh.F2cK4iMeiBCyHL.1x4Qb.y7ImKGj6Q4JUddbljaEJYfRhgEdurbE+u4uk+28Ctpo33UZycGqUII3kypL6Hi5qCXYYVZeP+nfKXIYvTGwguEmnuwe2DMuXjaNGUxtRg88ifIx4SRQEmWd9mLYlEO8wtsYVliRLQG52HPaEtxg1Ft.WBUPP1xqMXFZUiv0PKwdPdqJJKgYWjL6VyMw.1OVfA4XIRivNd90f+CL7pWKC+usDuuWOgkOX00XoUTiXm5+QMNYu3c7NJNFYpyJvM85740cI3eH8ePkYQ50wLj88UB06jrzP78CNfYWJgDL3dzRtokB4pNYWGHDjQ4B+D+lXrlSlNwXseajjx3Z0W3Er.2l2alqAqIY9KSa4crSNnFImYLeeNEeH3Kb9hgZIf6tt.qut.art.2acA9z0E39qKvl+Yft2oOHypRKnMDxw8NJeUBkdjjgSf4Sqjew.f44Z
-
@Oli-Ullmann This is the code I'm using, looks like I'm installing to the user directory
https://codeberg.org/LibreWave/Rhapsody/src/branch/main/Scripts/Plugins.js#L128
-
@d-healey
Yes, you do. But I don't want to use that for the installer, because I think there are DAWs that don't search for plug-ins in the user VST / Component folder. That's why I need the option to write to the general VST3 folder. Hence the feature request. Because then, as I said, you can completely do without packages or the like. -
@Oli-Ullmann said in Write to the general library folder:
I think there are DAWs that don't search for plug-ins in the user VST folder.
They should, it's part of the Steinberg spec, and the user should be able to redirect it.
@Oli-Ullmann said in Write to the general library folder:
Hence the feature request.
I think it's a limitation created by Mac's gatekeeping rather than something on the HISE side. It might be there is a custom plist option you can add to your binaries that will allow access. If you find such a thing let me know and I might be able to add it as a checkbox option in HISE preferences like I did for Windows.
-
@d-healey
Oh, that sounds cool! :-)I'll finish my plug-in and installer with the help of packages first, as I'm a bit pressed for time. As soon as version 1 is released, I'll look into it again and let you know if I find out anything.
PS. Yes, the user can actually define several VST paths in every DAW I know. But I don't think the user VST folder is the default and I just want to avoid support requests... :-)
-
@Oli-Ullmann I did a big of looking into this today. There isn't a simple method unfortunately. You'll need to run a separate process (probably a bash script) that uses Apple's authorization services to request permission from the user, then copy the files from a temp location to the destination.
-
@d-healey
Hey David,thanks for checking that again! :-) I'll try to find out how Whitebox Packages solves it. Maybe I can find a good approach there.
All the best
Oli -
@Oli-Ullmann I think this is the source code for it - https://github.com/packagesdev/packages
-
@d-healey
Thanks to you. I'll see if I can find anything. -
@Oli-Ullmann Been writing to that library for years. Still haven't heard back.
-
@clevername27
Good to know.@d-healey has no problems either. Maybe I shouldn't worry so much and just write to the User VST3 folder... Thanks for your feedback! :-)