Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The singleInstance property of maven launch4j is added #425

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

Merged
fvarrui merged 1 commit into javapackager:pr-425 from Miao-Bukeyan:Allen-240819
Sep 1, 2024

Conversation

@Miao-Bukeyan
Copy link

@Miao-Bukeyan Miao-Bukeyan commented Aug 19, 2024

The singleInstance property of maven launch4j is added

@fvarrui fvarrui changed the base branch from master to pr-425 September 1, 2024 18:28
Copy link
Collaborator

@fvarrui fvarrui left a comment

Choose a reason for hiding this comment

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

Thanks! It looks good. I rebased it to pr-425, so we can also add support for this new feature in Gradle

pluginConfig.add(
element("singleInstance",
element("mutexName", singleInstance.getMutexName()),
element("windowTitle", singleInstance.getWindowTitle())
Copy link
Collaborator

@fvarrui fvarrui Sep 1, 2024

Choose a reason for hiding this comment

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

Are both parameters mandatory? What if one of them is not specified?

Copy link
Author

@Miao-Bukeyan Miao-Bukeyan Sep 2, 2024

Choose a reason for hiding this comment

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

I'm glad to provide some help. Here are the documents related to launch4j:

https://launch4j.sourceforge.net/docs.html

<singleInstance>
 Optional, allow to run only a single instance of the application.
 <mutexName>
 Unique mutex name that will identify the application.
 <windowTitle>
 Optional, recognized by GUI header only. Title or title part of a window to bring up instead of running a new instance.

I conducted some tests on the Windows system and the results are as follows:

  • <mutexName> is required, if not set, it cannot be a single instance

  • <windowTitle> is optional. If it is not set or the value set is different from the application window title, the program can maintain a single instance, but it cannot be displayed to the frontend when the program is minimized

fvarrui reacted with thumbs up emoji
@fvarrui fvarrui merged commit 91c1c88 into javapackager:pr-425 Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@fvarrui fvarrui fvarrui left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /