node-auto-launch icon indicating copy to clipboard operation
node-auto-launch copied to clipboard

Add option to pass additional arguments

Open ConorIA opened this issue 8 years ago • 14 comments

Target platforms this affects (Linux, Mac, Mac app store, and or Windows):

For now, I have only implemented this on Linux. I have to take a better look at how the Windows and Mac functions are structured. Of course, feedback from the Teamwork team is welcome.

What problem does this solve?

Addresses #46; Sometimes it is nice to pass additional command-line arguments to an app, for instance, Wire Desktop includes a flag --startup to start minimized. Now I can add extraArgs: "--startup", to my launcher so that the wire.desktop file includes the flag.

Could it break any existing functionality for users?

At least on Linux, I am confident that this shouldn't break any existing functionality.

ConorIA avatar Nov 06 '16 07:11 ConorIA

When will this be merged?

fredericlefeurmou avatar Nov 28 '16 15:11 fredericlefeurmou

It'd be great if someone with Mac/Windows experience could recommend how to make this work on those platforms. I can tinker, but I can't test on Mac. I can probably test on Windows, but don't have a testing environment set up, as I'm a full-time Linux user.

ConorIA avatar Nov 28 '16 15:11 ConorIA

As mentioned in previous comments, I don't have access to a Mac / Windows machine to test this, so Mac and Windows are currently untested.

ConorIA avatar Nov 11 '17 17:11 ConorIA

This seems ready to be merged. Any plans to get this?

anuprajg avatar Feb 08 '18 13:02 anuprajg

Any news on this?

damianobarbati avatar Jun 12 '18 15:06 damianobarbati

And yet again, half a year has passed...

Connum avatar Mar 01 '19 12:03 Connum

This saddens me greatly

jaruba avatar Apr 07 '19 15:04 jaruba

Please see that we're looking for contributors / maintainers: #64.

I'm happy to give access to people who are willing to help improve things, merge pull-requests, close issues, etc.

adam-lynch avatar Apr 22 '19 13:04 adam-lynch

Not a big change, but I don't know if we should add parameters one after the other (extraArgs, onlyMe, etc.) or if this should be regrouped under and array of options.

Oxalin avatar Dec 07 '23 06:12 Oxalin

Not that this PR is bad, but I would suggest to include this feature change in a broader and more flexible way. We should be able to push whatever argument, which should include "mac" and "isHiddenOnLaunch".

Let's push this change to a major version bump, which should also get ride of coffeescript (in favor of typescript?)

Oxalin avatar Dec 11 '23 22:12 Oxalin

which should also get ride of coffeescript (in favor of typescript?)

Either that or just plain old js with jsdoc annotations 👌

4ver avatar Dec 12 '23 09:12 4ver

Not that this PR is bad, but I would suggest to include this feature change in a broader and more flexible way.

As the person that hacked this PR together 7 years ago with no prior Coffeescript experience (and no experience since, either!), I will not take any offense to this PR being closed and done in a better / more flexible way.

ConorIA avatar Dec 12 '23 23:12 ConorIA

What I would see is an @options object where we could define: {appName, appPath, options} where would contain at least the following optional object options: { boolean isHiddenOnLaunch, object mac { boolean useLaunchAgent }, array args }

Oxalin avatar Dec 14 '23 15:12 Oxalin

One PR will be merged under the "decaffeinate" branch which contains a new feature to add more arguments, I'll add a few more testcases to be sure additional arguments are properly added under all OSes.

Oxalin avatar Apr 08 '24 02:04 Oxalin