hvdwolf / jExifToolGUI

jExifToolGUI is a multi-platform java/Swing graphical frontend for the excellent command-line ExifTool application by Phil Harvey
https://hvdwolf.github.io/jExifToolGUI/
GNU General Public License v3.0
447 stars 37 forks source link

[MacOS]: v.1.9.0 has no access to disk #181

Open svintuss opened 2 years ago

svintuss commented 2 years ago

I'm trying to run the latest v 1.9.0 on MacOS 11.6 and can't access files and folders.

Both packages for macOS (with and without embedded jre) don't display any "Allow access to files and folders" dialog. Dragging jExifTool.app into "Allow full disk access" has no effect.

The only time I managed to run it was by downloading .jar and allowing full disk access for JavaLauncher.app (which is way too insecure)

P. S. The app itself has "Application" name in macOS menu, which is... well, wrong.

hvdwolf commented 2 years ago

Duplicate of #96 I have no idea right now.

svintuss commented 2 years ago

Maybe the fact that the app calls itself "Application" and not 'jEXIFTool GUI" has something to do with macOS ignoring files/folders permissions.

hvdwolf commented 2 years ago

It calls itself "Application" because it is called from a script. Apple does not like java but can't ban it entirely yet. On the newer versions of Apple it gets more and more difficult to make a java app bundle. All tools available up to (early) java-8 don't work anymore on MacOS 10.4 and newer. Later java-8 and newer do not even contain those tools anymore. But that is probably the issue: the script might have the authorizations, but the java called afterwards, not. I do not know how to change that. The CFBundleName in the info.plist and CFBundleIdentifier is jExifToolGUI and on my mac it is also displayed like that in the Finder and in the Dock, but not when it is started. Then it gets script name

hvdwolf commented 2 years ago

I created a new beta as a "real" app bundle using packr 4.0. I already tried packr 3.0 earlier but that didn't work. This new version does work. This version now should display itself as jExifToolGUI. And hopefully it has extended authorisations. I am on Catalina and can't upgrade on my old Macbook. It doesn't show a splash screen at starup. Seems to be a bug in packr, hopefully fixed in 4.x.y This is a full version in a compressed dmg. By searching on all kind of things for the build, I also stumbled on that "compressed dmg" tool for Linux. See at mega.nz for the beta jExifToolGUI-x86_64-macos-20211030-1.9.0.1-with_jre.dmg

@mrtngrsbch : Please also have a look.

mrtngrsbch commented 2 years ago

Great job > I find it very good ! Personally I would add a lnk to the 'Aplications' folder inside the image, to make it easier for us to move the application.

see the install video > it's very very simple

https://user-images.githubusercontent.com/693328/139539691-70619e2f-4b35-4949-85ea-f92f28e99edf.mp4

macOS Catalina 10.15.7 (19H524) MacBook Pro (Retina, 13-inch, Early 2015) 8 GB 1867 MHz DDR3

hvdwolf commented 2 years ago

@mrtngrsbch I uploaded another dmg to mega.nz. Functional identical, but the dms has now a link to /Applications. Note that it was built on Linux. Please check.

mrtngrsbch commented 2 years ago

🍺🍺🍺🍺🍺

image