Skip to content

Extension doesn't work due to the command is not pass as a string #8922

@linsui

Description

@linsui

JabRef version

5.6 (latest release)

Operating system

GNU / Linux

Details on version and operating system

NixOS

Checked with the latest development build

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

  1. Import an entry from a browser.
  2. 2 Nothing happens.

Appendix

In

cmd = str(JABREF_PATH).split() + ["--importBibtex", r"{}".format(data)]
the data is passed directly. When there is space in data then it will be parsed as multiple strings. The fix is simple, i.e. change it to r"'{}'".format(data), as posted in NixOS/nixpkgs#162593 (comment), thanks to @koschtschei.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions