jjazzboss / JJazzLab

A complete and open application for automatic backing tracks generation.
https://www.jjazzlab.org
GNU Lesser General Public License v2.1
377 stars 22 forks source link

MacOS app can't access user folders #323

Closed maedoc closed 6 months ago

maedoc commented 1 year ago

(thanks for this app!)

I just downloaded v3.2.1 and it sounds great, but macOS recently introduced a thing where when an app tries to access e.g. ~/Downloads, a pop up notification requests approval from user. This doesn't seem to happen with this app, and the folder is empty. So I downloaded the sound fonts and then moved to my user home folder, and similarly I can't svae song files to my documents folder.

I can take a look at why it happens, but wanted to note it here.

jjazzboss commented 1 year ago

Sorry I don't understand well the issue (and I don't have a Mac to test...) . You mean you can't save a song from JJazzLab ?

maedoc commented 1 year ago

I mean that JJazzLab doesn't have access to common folders. Here's a screenshot for example of what I see when I try to open something I've downloaded:

image

I'd expect not to see all the files, but the folders my downloads doesn't show up. The initial problem was with the soundfont file, to be downloaded during installation: I downloaded but couldn't see it in the downloads folder, so I moved it to the home folder, at which point I could see the file in JJazzLab.

Oddly enough I can access the $HOME/JJazzLab folder and its songs. I tried symbolically linking a folder into $HOME and then JJazzLab can navigate into the folder but contents are still hidden.

I've checked the help page from apple here but I don't see anything unchecked. I'll keep looking later. I'm sure it's related to the security/privacy changes in the recent macOS versions; I'm on Monterey (12.5)

jjazzboss commented 1 year ago

Ok I understand now thanks. But not sure what I can do... I just use the standard Java open file dialogs. It's strange that it's the first time I hear this from a Mac user, is 12.5 very recent ?

maedoc commented 1 year ago

Seems since Catalina, https://support.apple.com/en-gb/guide/mac-help/mchld5a35146/10.15/mac/10.15

Is the mac app compiled with a recent version of the JVM? If the JVM version is older than Catalina, it probably doesn't support this.

jjazzboss commented 1 year ago

The latest JJazzLab version (3.2.1) is built with JDK17 from Adoptium (released in 2021). But can you check in the JJazzLab Help/About window the exact JDK version ? Some Linux users installed JJazzLab from third-party distributions which happened to not use the bundled JDK17...