Bug 502510 - Can't open by Okular file in Jetbrain
Summary: Can't open by Okular file in Jetbrain
Status: REPORTED
Alias: None
Product: neon
Classification: KDE Neon
Component: Snaps (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-07 07:20 UTC by kubziom.pr
Modified: 2025-04-15 16:55 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Error notification (27.31 KB, image/png)
2025-04-07 07:20 UTC, kubziom.pr
Details
File (188.64 KB, application/pdf)
2025-04-07 07:34 UTC, kubziom.pr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kubziom.pr 2025-04-07 07:20:58 UTC
Created attachment 180054 [details]
Error notification

SUMMARY
File inside /home/user/.local/share/JetBrains/Toolbox/apps/pycharm-professional/help

Okular as the only pdf reader (compare to browser and default ubuntu reader) is not able to open pdf referencecard.pdf

STEPS TO REPRODUCE
1.  Attempting to open the file referencecard.pdf (It does not work from the file explorer or JetBrain GUI)

OBSERVED RESULT
I get an error that the file cannot be opened


SOFTWARE/OS VERSIONS
Ubuntu: 24.04
Comment 1 kubziom.pr 2025-04-07 07:22:56 UTC
The ticket was also reported to Jetbrain

https://youtrack.jetbrains.com/issue/PY-80063
Comment 2 Sune Vuorela 2025-04-07 07:23:54 UTC
Do you have a link to the file in question ?
Comment 3 kubziom.pr 2025-04-07 07:34:09 UTC
I've just checked and the problem is with the file location - moving it to another location, e.g. documents, allows it to be opened
Comment 4 kubziom.pr 2025-04-07 07:34:25 UTC
Created attachment 180055 [details]
File
Comment 5 Sune Vuorela 2025-04-07 07:40:45 UTC
(In reply to kubziom.pr from comment #3)
> I've just checked and the problem is with the file location - moving it to
> another location, e.g. documents, allows it to be opened

I guess that's more likely an issue in your end and not in Okular, then. 
Is something either sandboxed or in other ways confined away?
Comment 6 John Kizer 2025-04-12 19:17:17 UTC
Changing status since this is awaiting confirmation from the reporter. Running a current Okular version on Ubuntu likely means using the Snap version, which could be confined by the system in such a way that it can't access hidden directories like ~/.local by default.
Comment 7 kubziom.pr 2025-04-14 17:30:53 UTC
(In reply to John Kizer from comment #6)
> Changing status since this is awaiting confirmation from the reporter.
> Running a current Okular version on Ubuntu likely means using the Snap
> version, which could be confined by the system in such a way that it can't
> access hidden directories like ~/.local by default.

I confirm that all files in .local are not available for Okular
Comment 8 kubziom.pr 2025-04-14 17:32:45 UTC
(In reply to kubziom.pr from comment #7)
> (In reply to John Kizer from comment #6)
> > Changing status since this is awaiting confirmation from the reporter.
> > Running a current Okular version on Ubuntu likely means using the Snap
> > version, which could be confined by the system in such a way that it can't
> > access hidden directories like ~/.local by default.
> 
> I confirm that all files in .local are not accessibly for Okular

or in any hidden other folder

*accessibly
Comment 9 John Kizer 2025-04-14 18:32:39 UTC
Thanks, and just to check, is this using the Snap packaged version of Okular?
Comment 10 kubziom.pr 2025-04-15 16:35:48 UTC
(In reply to John Kizer from comment #9)
> Thanks, and just to check, is this using the Snap packaged version of Okular?

I checked and yes I have the snap version
Comment 11 John Kizer 2025-04-15 16:55:39 UTC
Thanks - shifting over to the Snap component for packagers to be able to review.