Platypus icon indicating copy to clipboard operation
Platypus copied to clipboard

set an argument for the interpreter doesn't work

Open stephane-archer opened this issue 2 years ago • 7 comments

When using Platypus, if I set an argument for the interpreter (bash) then when clicking to "Create App" nothing happens. if I don't, everything work as expected

stephane-archer avatar Feb 07 '23 18:02 stephane-archer

same for me.

image

this whole setup is not working. Clicking on the "create app" button does absolutely nothing but change the title of the application from "Platypus" to "Platypus – Select destination". But i can not proceed in any meaningful way.

yourScript is located under /usr/local/bin/

miko007 avatar Feb 27 '23 13:02 miko007

ive had the exact same issue, what breaks it is setting anything as arguments

ghost avatar Apr 03 '23 21:04 ghost

This is a known bug in the latest version, will be fixed in the next update.

sveinbjornt avatar Apr 04 '23 12:04 sveinbjornt

Same problem here. Using the "Args" popup once seems to break the dialog system completely.

Is there any projection for when the next version can be expected?

jdelker avatar Apr 12 '23 09:04 jdelker

I just ran into this problem too. as a workaround, what I did was create a config.sh script which set the arguments that I want: set -- -x -y -z "$@" and then the bash script reads config.sh before parsing the command-line options: if [ -f config.sh ]; then . config.sh; fi; options=$(getopt ...)

and then in Platypus, I added config.sh to the "Bundled Files" section

jglass524 avatar Mar 07 '24 17:03 jglass524

@jglass524 I think this issue is fixed, the author just hasn't released a new binary with the fix. Try compiling the project yourself and I believe it should just work. It does for me 👍🏼

m-thomson avatar Mar 10 '24 17:03 m-thomson

There is another workaround: Change the args as you want and save as profile.

Then close and go to 'Load Profile' (and don't change the args anymore).

After that it'll work

cedmos avatar Mar 30 '24 15:03 cedmos