Bug 496209

Summary: Ark doesn't delete archive when "Extract here,
Product: [Applications] ark Reporter: Matthias <matthias.j.w.heil>
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: CONFIRMED ---    
Severity: minor CC: bruno+kde, jjm, rthomsen6
Priority: NOR    
Version First Reported In: 24.08.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Matthias 2024-11-13 10:55:57 UTC
SUMMARY
When downloading an archive via Firefox (snap) with the plasma-browser-integration enabled, the notification allows one to open a context menu and choose the option "Extract here, delete archive". After choosing that option the archive is extracted but not deleted from its folder.

STEPS TO REPRODUCE
1. Download a .zip-file like file.zip in Firefox with plasma-browser-integration enabled.
2. When the plasma notification shows that the download has finished, use the hamburger menu to choose "Extract here, delete archive".  A notification is shown indicating the extraction process.
3. Open the download folder in Dolphin.

OBSERVED RESULT
There's a folder with the extracted contents of the archive and also the original archive file.

EXPECTED RESULT
The archive file is deleted.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 24.10
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.6.2
Kernel Version: 6.11.0-9-generic (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5500U with Radeon Graphics
Memory: 14.5 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Comment 1 Bruno P. 2024-11-25 16:18:33 UTC
I had the same issue and I've further noticed that every attempt to delete (move to trash)  any file result in an error about Trash.
I suspected a corrupted file in Trash, so I deleted very thing manually in Konsole :
rm -rf ~/.local/share/Trash/*`
and then close the session.
After reopening the session it was possible to Trash files again and the context menu on compressed files (extract and removes) worked.
Comment 2 Jonathan Marten 2024-11-27 07:44:20 UTC
Submitted merge request https://invent.kde.org/utilities/ark/-/merge_requests/266