https://bugs.kde.org/show_bug.cgi?id=491019
Bug ID: 491019 Summary: okular fails to open local non-home file by cmdline, but can open it by GUI navigation Classification: Applications Product: okular Version: 24.05.1 Platform: Snap OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: okular-devel@kde.org Reporter: myocyt...@sina.com Target Milestone: --- 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 - ``` -- You are receiving this mail because: You are the assignee for the bug.