Skip to content

Add support for parsing .lnk files for TeXworks #10977

@koppor

Description

@koppor

(Follow-up to #10953)

JabRef currently, doesn't find TeXWorks when MiKTeX is installed on Windows.

In the prefs we have some autodetect logic

defaults.put(PUSH_TEXSTUDIO_PATH, OS.getNativeDesktop().detectProgramPath("texstudio", "TeXstudio"));

On my machine, the app can be found via the following steps:

  1. Open %APPDATA%\Microsoft\Windows\Start Menu\Programs\MiKTeX\TeXworks.lnk
  2. Read Target from it. On my machine: C:\MiKTeX\miktex\bin\x64\miktex-texworks.exe

Use the mslinks library for parsing the lnk file. The implementation should be implemented in org.jabref.gui.desktop.os.Windows#detectProgramPath.

Alternative:

However, when I click Save in the preferences, there should be a check. If the binary could not be found, user should be asked to navigate to the options.

Metadata

Metadata

Assignees

Labels

FirstTimeCodeContributionTriggers GitHub Greeter Workflowgood first issueAn issue intended for project-newcomers. Varies in difficulty.

Type

No type
No fields configured for issues without a type.

Projects

Status
Done
Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions