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

Unable to Annotate PDFs from UNC Paths #5636

Open
manuth opened this issue Apr 22, 2024 · 2 comments
Open

Unable to Annotate PDFs from UNC Paths #5636

manuth opened this issue Apr 22, 2024 · 2 comments
Labels
confirmed Bug has been reproduced by at least one other person difficulty::hard papercut User can get around easily... but can be annoying.

Comments

@manuth
Copy link

manuth commented Apr 22, 2024

Operating System

Windows

(Linux only) Distribution

No response

(Linux only) Desktop Environment

No response

(Linux Only) Display Server

None

Installation Method

Manual Build

Xournal++ Version

efabdd8

libgtk Version

3.24.41

Bug Description

When trying to open a .pdf file from a UNC path (such as \\%COMPUTERNAME%\C$\Temp\test.pdf) results in an error:

Error annotate PDF file "\\my-pc\c$\Temp\test.pdf"
Document not loaded! (\\my-pc\c$\Temp\test.pdf), Unknown error

When trying to set the PDF background to a UNC path (using the "Missing PDF background file" dialogue), Xournal++, too, reports an error saying:

Error reading PDF: Document not loaded! (\\my-pc\C$\Temp\test.pdf), Unknown error

Opening .xopp files from a UNC path works.

Expected Behaviour

Much like .xopp files, .pdf files (and thus PDF backgrounds) should be able to be loaded from UNC paths.

Steps to Reproduce

  1. Download a PDF to the C: drive
  2. Open the file location in your file explorer
  3. In the address bar, replace C: with \\%COMPUTERNAME%\C$
  4. Try to open the .pdf file in Xournal++
  5. Take note that the described error occurs

Additional Context

No response

@manuth manuth added the bug label Apr 22, 2024
@Febbe
Copy link
Collaborator

Febbe commented Apr 24, 2024

That's a known issue. Currently, it is not supported, since we mix many different file handle drivers. Some do not support remote paths.

@Febbe Febbe added papercut User can get around easily... but can be annoying. confirmed Bug has been reproduced by at least one other person difficulty::hard and removed bug labels Apr 24, 2024
@manuth
Copy link
Author

manuth commented Apr 24, 2024

Thanks for the rapid answer!
I was kind of wondering bc I couldn't find a related issue.

Feel free to close it in case it's a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed Bug has been reproduced by at least one other person difficulty::hard papercut User can get around easily... but can be annoying.
Projects
None yet
Development

No branches or pull requests

2 participants