Skip to content

fix invalid desktop file for linux#15702

Merged
Siedlerchr merged 1 commit into
mainfrom
fixDesktopFileForLinux
May 7, 2026
Merged

fix invalid desktop file for linux#15702
Siedlerchr merged 1 commit into
mainfrom
fixDesktopFileForLinux

Conversation

@Siedlerchr

@Siedlerchr Siedlerchr commented May 7, 2026

Copy link
Copy Markdown
Member

Related issues and pull requests

Closes https://github.com/JabRef/jabref-issue-melting-pot/issues/1297
Follow up from #15188

on ubuntu run: to see if it works

desktop-file-validate /usr/share/applications/*.desktop | grep -i jabref
/usr/share/applications/jabref-JabRef.desktop: error: file contains line "STARTUP_DIRECTORY", which is not a comment, a group or an entry

PR Description

Fix the desktop file which is mostlikely the culprit here
It contained an invalid path that is only fixed in jdk26 or later openjdk/jdk@72d3a2a

Steps to test

Checklist

  • I own the copyright of the code submitted and I license it under the MIT license
  • [.] I manually tested my changes in running JabRef (always required)
  • [.] I added JUnit tests for changes (if applicable)
  • [.] I added screenshots in the PR description (if change is visible to the user)
  • [.] I added a screenshot in the PR description showing a library with a single entry with me as author and as title the issue number
  • [.] I described the change in CHANGELOG.md in a way that can be understood by the average user (if change is visible to the user)
  • [.] I checked the user documentation for up to dateness and submitted a pull request to our user documentation repository

@Siedlerchr Siedlerchr added the dev: binaries Binary builds should be uploaded to builds.jabref.org label May 7, 2026
@qodo-free-for-open-source-projects

Copy link
Copy Markdown
Contributor

Review Summary by Qodo

Remove invalid STARTUP_DIRECTORY from Linux desktop file

🐞 Bug fix

Grey Divider

Walkthroughs

Description
• Remove invalid STARTUP_DIRECTORY line from desktop file
• Fixes desktop file compatibility with JDK versions before 26
• Resolves issue with Linux application launcher configuration
Diagram
flowchart LR
  A["JabRef.desktop<br/>with invalid line"] -- "Remove STARTUP_DIRECTORY" --> B["Valid desktop file<br/>for all JDK versions"]
Loading

Grey Divider

File Changes

1. jabgui/buildres/linux/JabRef.desktop 🐞 Bug fix +0/-1

Remove invalid STARTUP_DIRECTORY line

• Removed the invalid STARTUP_DIRECTORY line that was causing desktop file parsing errors
• This line was only fixed in JDK 26 and later, making it incompatible with earlier versions
• Desktop file now conforms to standard format expected by Linux desktop environments

jabgui/buildres/linux/JabRef.desktop


Grey Divider

Qodo Logo

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Qodo Logo

@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

The build of this PR is available at https://builds.jabref.org/pull-15702/.

@Siedlerchr

Copy link
Copy Markdown
Member Author
grafik Works again

@Siedlerchr Siedlerchr merged commit 8f68b40 into main May 7, 2026
79 of 93 checks passed
@Siedlerchr Siedlerchr deleted the fixDesktopFileForLinux branch May 7, 2026 21:53
Siedlerchr added a commit to pluto-han/jabref that referenced this pull request May 11, 2026
* upstream/main: (21 commits)
  chore(deps): update dependency com.konghq:unirest-modules-gson to v4.10.0 (JabRef#15715)
  Add manual tests (JabRef#15351)
  Refactored the comments for UnlinkedFilesCrawler (JabRef#15709)
  Replace inline styles with CSS classes (JabRef#15694)
  add test case for multiple authors in csl citaiton (JabRef#15707)
  fix invalid desktop file for linux (JabRef#15702)
  Change FileKeystore and Folder fields to disable/enable (JabRef#15685)
  Chore(deps): Bump org.openrewrite.recipe:rewrite-recipe-bom from 3.30.0 to 3.30.1 (JabRef#15696)
  New Crowdin updates (JabRef#15693)
  Chore(deps): Bump dev.langchain4j:langchain4j-bom in /versions (JabRef#15698)
  Chore(deps): Bump org.apache.logging.log4j:log4j-to-slf4j in /versions (JabRef#15700)
  chore(deps): update dependency org.apache.logging.log4j:log4j-to-slf4j to v2.26.0 (JabRef#15699)
  Chore(deps): Bump org.openrewrite.rewrite from 7.32.1 to 7.32.2 (JabRef#15697)
  Chore(deps): Bump jablib/src/main/resources/csl-locales (JabRef#15689)
  Fix month checker regex (JabRef#15678)
  Chore(deps): Bump com.dlsc.gemsfx:gemsfx in /versions (JabRef#15692)
  Chore(deps): Bump org.hisp.dhis:json-tree in /versions (JabRef#15691)
  Chore(deps): Bump jablib/src/main/resources/csl-styles (JabRef#15690)
  New Crowdin updates (JabRef#15687)
  Chore(deps): Bump com.konghq:unirest-java-core in /versions (JabRef#15683)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev: binaries Binary builds should be uploaded to builds.jabref.org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant