Bug 491019 - okular fails to open local non-home file by cmdline, but can open it by GUI navigation
Summary: okular fails to open local non-home file by cmdline, but can open it by GUI n...
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 24.05.1
Platform: Snap Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-30 09:38 UTC by myocytebd
Modified: 2024-08-31 03:48 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description myocytebd 2024-07-30 09:38:02 UTC
SUMMARY
(snap okular 24.05.1)
okular fails to open some local files (not under home) by cmdline, but can open it by GUI navigation


STEPS TO REPRODUCE
Let directories be:
```
/storage (separate disk mounted on /)
/storage/Downloads (dir on disk /storage)
/_disk_home (separate disk mounted on /)
/home (separate disk; bind mount from /_disk_home)
/home/<me> (dir on /home)
/home/<me>/Downloads (symlink) -> /storage/Downloads
```
Then try to open same files by cmdline and GUI navigation.

OBSERVED RESULT
`okular /home/<me>/a.pdf`  OK;
`okular` then File->Open...->(gnome file dialog)->navigate/select: OK;

`okular /home/<me>/Downloads/b.pdf`  Fail;
`okular` then navigate: OK;

`okular /storage/Downloads/b.pdf`  Fail;
`okular` then navigate: OK;


EXPECTED RESULT
`okular /home/<me>/Downloads/b.pdf` & `okular /storage/Downloads/b.pdf`  success


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 22.04.4 LTS
KDE Frameworks Version: 6.4
Qt Version: 6.7.1

ADDITIONAL INFORMATION
I don't understand the quirks of gnome/snap, so I don't know if it is gnome/snap's flaw.

```
mount | grep ext4
/dev/nvme2n1p3 on / type ext4 (rw,relatime,errors=remount-ro)
/dev/nvme0n1p1 on /_disk_home type ext4 (rw,relatime,errors=remount-ro)
/dev/nvme0n1p1 on /home type ext4 (rw,relatime,errors=remount-ro)
/dev/nvme1n1p1 on /storage type ext4 (rw,relatime,errors=remount-ro)
```
```
snap connections okular
Interface                Plug                        Slot                            Notes
audio-playback           okular:audio-playback       :audio-playback                 -
content[icon-themes]     okular:icon-themes          gtk-common-themes:icon-themes   -
content[kf6-core22-all]  okular:kf6-core22           kf6-core22:kf6-core22-slot      -
content[sound-themes]    okular:sound-themes         gtk-common-themes:sound-themes  -
cups                     okular:cups                 cups:cups                       -
dbus                     -                           okular:session-dbus-interface   -
desktop                  okular:desktop              :desktop                        -
desktop-legacy           okular:desktop-legacy       :desktop-legacy                 -
home                     okular:home                 :home                           -
network                  okular:network              :network                        -
network-bind             okular:network-bind         :network-bind                   -
opengl                   okular:opengl               :opengl                         -
removable-media          okular:removable-media      :removable-media                -
system-packages-doc      okular:system-packages-doc  :system-packages-doc            -
udisks2                  okular:udisks2              -                               -
unity7                   okular:unity7               :unity7                         -
wayland                  okular:wayland              :wayland                        -
x11                      okular:x11                  :x11                            -
```
Comment 1 myocytebd 2024-07-30 09:40:51 UTC
Let directories be:
```
/storage (separate disk mounted on /)
/storage/Downloads (dir on disk /storage)
/_disk_home (separate disk mounted on /)
/home (separate disk; bind mount from /_disk_home/home)
/home/<me> (dir on /home)
/home/<me>/Downloads (symlink) -> /storage/Downloads
```
Comment 2 Albert Astals Cid 2024-08-01 22:27:54 UTC
Does this work on the non snap version?
Comment 3 Bug Janitor Service 2024-08-16 03:47:10 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2024-08-31 03:48:00 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.