Bug 506995 - Snap package write issue
Summary: Snap package write issue
Status: RESOLVED INTENTIONAL
Alias: None
Product: gcompris
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Snap Other
: NOR normal
Target Milestone: ---
Assignee: Scarlett Moore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-13 15:23 UTC by Jazeix Johnny
Modified: 2025-07-14 12:03 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jazeix Johnny 2025-07-13 15:23:07 UTC
SUMMARY
 A user raised an issue where they can't write files on their system
with the Snap package. We have several activities that allow to write
the output (for example "sketch") on the filesystem (which should be
~/.local/share/GCompris/sketch/test.png).

We use the path:
QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation)
+ QLatin1String("/GCompris")) to set the folder name.

STEPS TO REPRODUCE
1. Open GCompris
2. Open sketch activity (the last section allows to search an activity by name)
3. Draw something, on the right panel, Save the file. The operation is told successful but the user is unable to find the file in the filesystem.

OBSERVED RESULT
No file created

EXPECTED RESULT
File should be accessible under ~/.local/share/GCompris/sketch/

SOFTWARE/OS VERSIONS
Snap version of GCompris

ADDITIONAL INFORMATION
Comment 1 Scarlett Moore 2025-07-14 12:03:06 UTC
Hi, so snaps do not allow access to . directories, they instead have their own due to sandbox restraints, the files instead go to  ~/snap/gcompris/current/.local/share/GCompris/sketch/test.png