[External] : Re: jpackage requests permission via a dialog
Alexander Matveev
alexander.matveev at oracle.com
Tue Mar 5 03:57:14 UTC 2024
Hi Michael,
.DS_Store file contains information about icon position and other visual information on how to display folder. Once osascript configures DMG, Finder will store these setting in .DS_Store file. If it gets deleted from DMG, DMG will look like osascript was never run. So, Alan is right with “the configuration of the DMG appearance actually means configuring the .DS_Store file in the DMG”.
Thanks,
Alexander
From: Michael Hall <mik3hall at gmail.com>
Date: Monday, March 4, 2024 at 7:44 PM
To: Alan Snyder <fishgarage at cbfiddle.com>
Cc: Alexander Matveev <alexander.matveev at oracle.com>, core-libs-dev at openjdk.org <core-libs-dev at openjdk.org>
Subject: [External] : Re: jpackage requests permission via a dialog
I’m not following what the .DS_Store file has to do with anything, other than being a Mac feature that’s occasionally a nuisance when the files end up in zip’s or elsewhere where you don’t want them.
I’m also not sure if that was my explanation or Alexander’s you’re talking about. Using the osascript to run the dmg gives the dmg a look more like other distributed macOS applications.
If that doesn’t matter to you then you could use jpackage to create a standalone app image and hdiutil a dmg for it. Opening it will show the files, period. Or use Disk Utility to create a dmg would also work. I’ve done that sometimes. Then you don’t have to remember the hdiutil command line usage.
> On Mar 4, 2024, at 5:50 PM, Alan Snyder <javalists at cbfiddle.com> wrote:
>
> Thank you for the explanation.
>
> It was not obvious to me that the configuration of the DMG appearance actually means configuring the .DS_Store file in the DMG.
>
> Alan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20240305/57f61812/attachment-0001.htm>
More information about the core-libs-dev
mailing list