Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux reads wrong PDF-filepath after editing with Windows #5673

Closed
PapierFliegr opened this issue May 10, 2024 · 2 comments
Closed

Linux reads wrong PDF-filepath after editing with Windows #5673

PapierFliegr opened this issue May 10, 2024 · 2 comments
Labels

Comments

@PapierFliegr
Copy link

Operating System

Linux

(Linux only) Distribution

Arch Linux

(Linux only) Desktop Environment

KDE Plasma 6

(Linux Only) Display Server

Wayland

Installation Method

Arch extra repo

Xournal++ Version

1.2.2

libgtk Version

3.24.41

Bug Description

I sync my notes between Linux and Windows using Nextcloud.
Since .xopp uses absolute paths for background pdfs, I changed my document folder on windows to be C:/home/<user>/Documents/.

When opening the .xopp file on windows everything works as expected (even when last edited on Linux), whereas on Linux I get the error message, that the background file was last seen at /home/<user>/Documents/C:/home/<user>/Documents/

Expected Behaviour

Opening .xopp with the background file independent of operating system.

Steps to Reproduce

  1. Use any background pdf
  2. Save on Windows
  3. Sync file with Linux
  4. Open on Linux

Additional Context

I am aware of the "attach file to journal" option, but I wouldn't want an extra copy of the pdf.

@KlausBlum
Copy link

Here it would be helpful to have relative PDF-paths, see #4262.
Someone already has done the work. AFAIK it's on the roadmap for 1.3.0.
I've cheery-picked the commits from the PR and applied them to a nightly 1.2.3 build:
https://github.com/KlausBlum/xournalpp/releases/tag/v1.2.3_JKG

I have the same folder structure on a Win10 and a Linux machine and sync them via a USB memory stick. This works pretty well for me.
On both machines, I can open a xopp file and the background PDF is found.

@PapierFliegr
Copy link
Author

Thank you for your input.
Then I guess, I'll have to wait until the release of 1.3.0 :)

If I am to impatient, maybe I will try your build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants