Fails to save changes to image
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 869
- Forks
- 106
- PR merge metrics
- No merged PRs in 30d
Description
## Description
When editing an image and attempting to save changes back to the image, an error is raised:
```
Failed to reload /run/user//doc//
```
The original file is cleared and written back with zero bytes. However, another file with the saved edits is created next to it, named `.xdp- (deleted)-
Here are screenshots of Flatseal, showing no changes to recognized paths has been made:
### Steps to reproduce the bug
1. Open an image from the file explorer, or using the app's built-in Open dialog (tested with PNGs in both `~/Pictures/Screenshots` and `~/Downloads`).
2. Draw a rectangle on the image.
3. Click Save in the top-right corner.
4. Error in first screenshot appears, and the files are modified as seen in the second image.
## System
- Device (desktop computer/tablet/phone/...): HP Spectre x360 Convertible 13-aw0xxx
- OS: Fedora Linux 42 (Workstation Edition) (kernel Linux 6.17.7-200.fc42.x86_64)
- Desktop environment: GNOME 48.6 + Mutter (Wayland)
- Package format: Flatpak (Flathub)
- App version: 1.0.2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure by opening a PNG from the file explorer or the app's built-in Open dialog, drawing a rectangle, and using Save in the top-right corner on the reported Flatpak environment. Trace the save path from that entry point and verify that saving preserves the original image with the edits instead of raising the reload error or creating zero-byte and deleted-file artifacts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100