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

Add option to pass additional arguments to the startup command.

Open ConorIA opened this issue 8 years ago • 5 comments

It would be great if there was an additional option to add -- prefixed arguments to the start-up file (at least the Linux .desktop file). As an example, I use Wire Desktopm, which can be launched minimized by passing the --startup flag to the wire command, however there is no option to add --startup to the desktop file generated by auto-launch. Thanks!

ConorIA avatar Nov 04 '16 23:11 ConorIA

I'm open to it but I guess it should be supported for all platforms. Pull-requests are welcome 😄

adam-lynch avatar Nov 05 '16 21:11 adam-lynch

I actually took a look at the code before submitting, but was a little intimidated (I'm not very well versed in Javascript). Anyway, I'll tinker this week and see what I come up with. If someone else happens along this issue and wants to take a stab at it, have at!

ConorIA avatar Nov 06 '16 02:11 ConorIA

Same request here. I need to run some command after startup. What I know how to do this is add arguments to auto-launch and judge whether run the command or not.

erguotou520 avatar Mar 06 '18 04:03 erguotou520

Yeah indeed useful! I need to detect whether the app was autostarted or not.

damianobarbati avatar May 31 '18 09:05 damianobarbati

I also need this to detect if my app was autostarted or user started. So I can prevent showing a loading splashscreen on boot in a electron app.

MattiasFestin avatar Aug 24 '18 13:08 MattiasFestin