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

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

Open
tomekit opened this issue Nov 28, 2023 · 2 comments
Open

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

tomekit opened this issue Nov 28, 2023 · 2 comments

Comments

@tomekit
Copy link

tomekit commented Nov 28, 2023

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

@heiha100
Copy link

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.

@emile-o
Copy link
Contributor

emile-o commented Jun 5, 2024

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

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

No branches or pull requests

3 participants