How to detect if app was started by the user or autostart?
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
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.
Try adding an argument like --launched-from-shortcut in the desktop shorcut Exec command and then read arguments from your main(List<String> args)