Bug 413113

Summary: ktouch crashes on start
Product: [Applications] ktouch Reporter: Alex Bradatan <alex.bradatan85>
Component: generalAssignee: Sebastian Gottfried <sebastian.gottfried>
Status: RESOLVED FIXED    
Severity: crash CC: alex.bradatan85
Priority: NOR    
Version First Reported In: 19.08.0   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: terminal output of flatpak run org.kde.ktouch
terminal output of flatpak run --devices=dri org.kde.ktouch

Description Alex Bradatan 2019-10-17 20:22:13 UTC
Created attachment 123293 [details]
terminal output of flatpak run org.kde.ktouch

SUMMARY
ktouch fails to run when launched with flatpak run org.kde.ktouch . Traditionally packaged version, however, works fine.

STEPS TO REPRODUCE
1. flatpak run org.kde.ktouch from terminal or execute .desktop

OBSERVED RESULT
ktouch crashes without reaching gui. Output is attached.


EXPECTED RESULT
ktouch launches.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 5.3.6-arch1-1-ARCH
KDE Plasma Version: Plasma 5.17
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.1
Comment 1 Sebastian Gottfried 2019-10-17 20:38:40 UTC
Hm, on my computer the flatpak version just launches fine. So I am left to guesswork here. Can please try to run KTouch with:

    flatpak run --device=dri org.kde.ktouch

and report back if this works?
Comment 2 Alex Bradatan 2019-10-17 21:01:33 UTC
With `flatpak run --device=dri org.kde.ktouch` the application launches just fine. If it helps I also attached that output. Since it seems to be dri related, it may be of use to know that I am running a Nvidia gpu with proprietary drivers.
Comment 3 Alex Bradatan 2019-10-17 21:02:08 UTC
Created attachment 123294 [details]
terminal output of flatpak run --devices=dri org.kde.ktouch
Comment 4 Sebastian Gottfried 2019-10-17 21:27:45 UTC
Thanks for the response. Under Flatpak, applications are sandboxed and need to request permissions to access certain hard- and software components. With '--device=dri' you gave the permission to use OpenGL. I will add this to the Flatpak manifest of KTouch, so with next update it will works out of the box.

I have no idea why it I don't need this on my system, though.
Comment 5 Sebastian Gottfried 2019-10-18 15:41:08 UTC
New build is available for download at flathub.