launch_at_startup icon indicating copy to clipboard operation
launch_at_startup copied to clipboard

How to detect if app was started by the user or autostart?

Open tomekit opened this issue 2 years ago • 2 comments

Depending whether app was started by the user or autostart I would like either open GUI or minimize the app.

Is there any way to programmatically detect that?

Partially related to: https://github.com/leanflutter/launch_at_startup/issues/22

tomekit avatar Nov 28 '23 19:11 tomekit

Depending whether app was started by the user or autostart I would like either open GUI or minimize the app.

Is there any way to programmatically detect that?

Partially related to: #22

hey, do you have any solution now. I am facing same situation. Expect for your answer.

heiha100 avatar Apr 16 '24 12:04 heiha100

Try adding an argument like --launched-from-shortcut in the desktop shorcut Exec command and then read arguments from your main(List<String> args)

emile-o avatar Jun 05 '24 21:06 emile-o