xournalpp
xournalpp copied to clipboard
Making xopp from CLI Saves A Relative PDF Location, Not Absolute.
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
- Make xopp from CLI.
- Move xopp location. Background not found.
Feature was just added with #5313