[BUG]DMG creation erases Desktop
Configuration
- Keka version: [e.g. 1.1.24 (3421)] 1.5.0 5580
- macOS version: [e.g. 10.14.6 (18G2022)] 11.7.3
Describe the bug
Create DMG of whole mac HD to an external drive, formatted exfat. A Keka window opens with Desktop written. After validating Mac OS security accesses, the desktop is emptied of all files / folders. A Desktop.dmg file is created on empty desktop with 0kb.
To Reproduce
Steps to reproduce the behavior:
- Open Keka and setup DMG settiings
- Right click on Mac HD and right click services / compress with Keka
- Service launches
- Desktop files / folder disappear
Expected behavior
Keka creates a DMG on the external hard drive
I presume that there is no cache to restore the data.
Hi @chlowden,
Sorry to hear that. I'm not sure what happened here, I'm trying to reproduce without luck. Sadly you should use some backup to recover those files, if you have one. If not you can try Disk Drill or a similar recovery application.
I don't see any DMG mention in the log, but I do see that the destination of some 7Z compressions were /Users/ben2/Desktop and that was the issue there. I understand Keka had no file access to your exfat external disk and it uses the Desktop as the default fallback folder, but that destination should have a file name and extension.
Just for good mesure I've added a check so only file destinations can be deleted and not folder destinations.
Thank you for getting back to me. I also tested with 7z and got the same result and that is what the log corresponds to. It seems that the external disk had a write issue and so keka was defaulting back to the desktop. Good to know that you have added a no source deletion check. Thanks all the same for your app. It is still a fantastic tool for me.
Thanks a lot for your understanding. Already pushed v1.5.1 version preventing this to ever happen again. Still not sure how it happened 😕
Could it be that Desktop items are stored in iCloud, and when the drive became full (containing its contents and a DMG of all those contents, and any related temporary files) then the items are removed from Desktop to try to make space? Just a thought
I don't use icloud but it was certainly not impossible. It maybe something with trying to do a dmg onto itself. The desktop is the default copy space if other spaces fail and the desktop is part of the copy.
🙇♂️