Keka icon indicating copy to clipboard operation
Keka copied to clipboard

[BUG]DMG creation erases Desktop

Open chlowden opened this issue 7 months ago • 6 comments

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.

Keka_2025-05-29-081930653.log

To Reproduce

Steps to reproduce the behavior:

  1. Open Keka and setup DMG settiings
  2. Right click on Mac HD and right click services / compress with Keka
  3. Service launches
  4. 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.

chlowden avatar May 29 '25 06:05 chlowden

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.

aonez avatar May 29 '25 08:05 aonez

Just for good mesure I've added a check so only file destinations can be deleted and not folder destinations.

aonez avatar May 29 '25 10:05 aonez

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.

chlowden avatar May 29 '25 14:05 chlowden

Thanks a lot for your understanding. Already pushed v1.5.1 version preventing this to ever happen again. Still not sure how it happened 😕

aonez avatar May 29 '25 17:05 aonez

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

gingerbeardman avatar May 29 '25 18:05 gingerbeardman

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.

chlowden avatar May 29 '25 21:05 chlowden

🙇‍♂️

aonez avatar Sep 10 '25 08:09 aonez