xournalpp icon indicating copy to clipboard operation
xournalpp copied to clipboard

Making xopp from CLI Saves A Relative PDF Location, Not Absolute.

Open ebits21 opened this issue 1 year ago • 1 comments

Operating System

Windows

Installation Method

2023-12-01 Dev Build Portable for Windows

Xournal++ Version

2023-12-01 Dev Build

libgtk Version

See above

Bug Description

When using the CLI to make an .xopp from the command line like so:

xournalpp file.pdf —save file.xopp

The xopp file stores the background pdf location relatively as the current location of the xopp file. Not an absolute path like would happen if saved from the gui.

If the xopp file is moved (and the pdf stays in the same location) it cannot find the background pdf. It expects it to be in the same location as the xopp.

Expected Behaviour

Store pdf background location as an absolute path. This is expected as it matches the GUI behaviour.

Alternative is to allow the CLI to use an absolute or relative path as an option.

Steps to Reproduce

  1. Make xopp from CLI.
  2. Move xopp location. Background not found.

ebits21 avatar Dec 01 '23 17:12 ebits21

Feature was just added with #5313

ebits21 avatar Dec 14 '23 10:12 ebits21