caprica / vlcj

Java framework for the vlc media player
http://www.capricasoftware.co.uk/projects/vlcj
1.1k stars 260 forks source link

Is it possible to use vlcj in a sandboxed macOS app? #1189

Closed rjuszczyk closed 1 year ago

rjuszczyk commented 1 year ago

Hello,

I am getting this error:

“jna4748417494588670388.tmp” can’t be opened because Apple cannot check it for malicious software.

when trying to run it in a JVM app jpackaged for macstore.

I have VLC player installed (x86-64) and if I run my app without sandboxing/signing then it runs fine.

Is it possible to use it in a sandboxed macOS app?

caprica commented 1 year ago

Well, the tmp file in question is generated by JNA, not vlcj itself.

I suspect that tmp file is the JNA shared library that is unpacked from the JNA jar at run-time.

Maybe there's some knowledge around this in the JNA project, but I don't know.

caprica commented 1 year ago

Search results don't return much unfortunately, the closest I found that mentioned JNA was this:

https://github.com/elastic/elasticsearch/issues/46498

rjuszczyk commented 1 year ago

Thanks that gives me some clue where to search!

I will explore the approach suggested here: https://stackoverflow.com/a/74341678/2318843

rjuszczyk commented 1 year ago

reporting back that I was able to resolve that problem by following this answer: https://stackoverflow.com/a/74341678/2318843