Skip to content

Terminate JavaFX thread when running with "nogui" option#3274

Merged
Siedlerchr merged 2 commits into
JabRef:masterfrom
MrTosz:fix-for-issue-3247
Oct 7, 2017
Merged

Terminate JavaFX thread when running with "nogui" option#3274
Siedlerchr merged 2 commits into
JabRef:masterfrom
MrTosz:fix-for-issue-3247

Conversation

@MrTosz

@MrTosz MrTosz commented Oct 6, 2017

Copy link
Copy Markdown
Contributor

Fix for Issue #3247

When JabRef was run with the '-n' parameter, i.e. the "No GUI" option, like:
java -jar JabRef.jar -n
or any other reason for ArgumentProcessor#shouldShutDown() returning true took place, the application should shut down after performing custom export filters etc. However, Platform.exit() wasn't called, so the JavaFX thread kept running indefinitely. Simply added this call to resolve the problem.

@Siedlerchr

Copy link
Copy Markdown
Member

Thanks for your contribution, would you be so kind to add a changelog entry?
Then we can merge

@lenhard lenhard left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for your contribution. All that's needed is a changelog entry and then this is good to go,

@MrTosz

MrTosz commented Oct 7, 2017

Copy link
Copy Markdown
Contributor Author

Sorry for omitting the changelog entry -- I wasn't sure if such fix qualified for a mention there. Will add it in a moment.

@Siedlerchr

Copy link
Copy Markdown
Member

@MrTosz Thanks! The rule is simple: If it didn't work/has not been present in the version before, than we add a changelog entry. We are looking forward to more contributions from you!
I now merge your changes it.

@Siedlerchr Siedlerchr merged commit fae290c into JabRef:master Oct 7, 2017
Siedlerchr added a commit that referenced this pull request Oct 19, 2017
* upstream/master:
  Set WM_CLASS to org-jabref-JabRefMain (#3273)
  Terminate JavaFX thread when running with "nogui" option (#3274)
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

Successfully merging this pull request may close these issues.

4 participants