Re: Jpackage file assocations OS X

2020-09-22 Thread Michael Hall
> On Sep 22, 2020, at 7:35 PM, alexander.matv...@oracle.com wrote: > > Hi Michael, > > For file association you will need to create property file and pass it to > jpackage via --file-associations. Thanks for the detailed reply. I will look closer at it later. I had found the test class. I w

Re: Jpackage file assocations OS X

2020-09-22 Thread alexander . matveev
Hi Michael, For file association you will need to create property file and pass it to jpackage via --file-associations. Example property file: mime-type=text/plain extension=txt description=Text file See following documentation: https://docs.oracle.com/en/java/javase/15/jpackage/support-applic

Re: Jpackage file assocations OS X

2020-09-22 Thread Michael Hall
> On Sep 22, 2020, at 1:47 PM, Andy Herrick wrote: > > Alexander: > > Can you explain the mechanism by which a macosx application is expected to > retrieve the path to the selected file when the app is invoked via a file > association ? > > On mac, the path to the associated file is not pa

Re: Jpackage file assocations OS X

2020-09-22 Thread Andy Herrick
Alexander: Can you explain the mechanism by which a macosx application is expected to retrieve the path to the selected file when the app is invoked via a file association ? On mac, the path to the associated file is not passed as an argument (as it is on Linux and Windows). /Andy On 9/20

Jpackage file assocations OS X

2020-09-20 Thread Michael Hall
Are there any examples or further information on how the file association property file should work? It is not entirely clear to me from the command help.