Bug 503681 - Okular is not working properly with files on a SMB share within a Wayland KDE session
Summary: Okular is not working properly with files on a SMB share within a Wayland KDE...
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (other bugs)
Version First Reported In: 25.04.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-02 19:44 UTC by Thomas Berthelot
Modified: 2025-05-02 19:47 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 Thomas Berthelot 2025-05-02 19:44:07 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY

When trying to save a PDF file stored on a SMB share after modification (for example with annotations), an error occurs with a dialog box saying "Impossible to save the file in "/tmp/Okular.xxxxyyyy". Try to save it in another location".

When launching Okular from the terminal tab of Dolphin, a message states "kf.windowsystem: static int KX11Extras::currentDesktop() may only be used on X11". Hence, it is potentially an issue related to Wayland compatibility and the use of X11-specific functions.

There is no problem to save a file if it is stored locally (for instance in /home)

STEPS TO REPRODUCE
1. Open a PDF file store on a SMB share with Okular
2. Highlight some text (annotation)
3. Save the file => Error

OBSERVED RESULT

Impossible to save a modified PDF file on a SMB share if working in a Wayland session

EXPECTED RESULT

Possibility to save the file on a SMB share

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Archlinux
KDE Plasma Version: 6.3
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0

ADDITIONAL INFORMATION
Comment 1 Nicolas Fella 2025-05-02 19:45:45 UTC
> When launching Okular from the terminal tab of Dolphin, a message states "kf.windowsystem: static int KX11Extras::currentDesktop() may only be used on X11". Hence, it is potentially an issue related to Wayland compatibility and the use of X11-specific functions.

This is completely unrelated to this issue
Comment 2 Thomas Berthelot 2025-05-02 19:47:39 UTC
(In reply to Nicolas Fella from comment #1)
> > When launching Okular from the terminal tab of Dolphin, a message states "kf.windowsystem: static int KX11Extras::currentDesktop() may only be used on X11". Hence, it is potentially an issue related to Wayland compatibility and the use of X11-specific functions.
> 
> This is completely unrelated to this issue

Ok. Just tried to provide some context and analyze