Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to pass additional arguments #47

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ConorIA
Copy link

@ConorIA ConorIA commented Nov 6, 2016

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.

@fredericlefeurmou
Copy link

When will this be merged?

@ConorIA
Copy link
Author

ConorIA commented Nov 28, 2016

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.

Copy link
Contributor

@adam-lynch adam-lynch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. Could this apply to other platforms too? P.S. The README should be updated too.

@ConorIA
Copy link
Author

ConorIA commented Nov 11, 2017

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.

README.md Show resolved Hide resolved
@anuprajg
Copy link

anuprajg commented Feb 8, 2018

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

@damianobarbati
Copy link

Any news on this?

@Connum
Copy link

Connum commented Mar 1, 2019

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

@jaruba
Copy link

jaruba commented Apr 7, 2019

This saddens me greatly

@adam-lynch
Copy link
Contributor

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.

@Oxalin Oxalin self-requested a review December 6, 2023 05:32
@Oxalin
Copy link
Collaborator

Oxalin commented Dec 7, 2023

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
Copy link
Collaborator

Oxalin commented Dec 11, 2023

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?)

@4ver
Copy link
Member

4ver commented Dec 12, 2023

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

Either that or just plain old js with jsdoc annotations 👌

@ConorIA
Copy link
Author

ConorIA commented Dec 12, 2023

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.

@Oxalin
Copy link
Collaborator

Oxalin commented Dec 14, 2023

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 Oxalin self-assigned this Jan 27, 2024
@Oxalin Oxalin added this to the 6.0.0 milestone Mar 19, 2024
@Oxalin
Copy link
Collaborator

Oxalin commented Apr 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants