Posts

Post not yet marked as solved
4 Replies
2.0k Views
I develop a Java application that, when bundled as an .app, is unable to access the contents of the Desktop, Documents, and Downloads dirs from a specific type of file chooser (JFileChooser) in Catalina. Unlike other apps, no "[app] would like to access files in your [Desktop/Documents/Downloads] folder" popup appears when I attempt to access the contents of those directories via JFileChooser.I can access the contents of those dirs with a different Java file chooser (FileDialog, which appears to use the native macOS chooser) - but there's no "[app] would like to access..." prompt there either.Unlike every other app I've used in Catalina, there are no Desktop/Documents/Downloads access prompts for these Java apps.I'm hoping to determine 1) why the prompt doesn't appear, and 2) how to make it appear if possible, or otherwise grant access to those dirs.AFAICT there's no way to manually add an app to the Prefs > Security & Privacy > Privacy Tab > Files and Folders list. The +/- buttons remain disabled when I "Click the lock to make changes" and authenticate.I created a minimal example app demonstrating the problem - source code and pre-built app bundle are available here:https://github.com/sorghumking/catalinaFileChooserAccessTestAny help would be greatly appreciated!
Posted Last updated
.