MEGAsync icon indicating copy to clipboard operation
MEGAsync copied to clipboard

If MEGAsync is running and UNC network share is browsed to containing syncs, then all desktop.ini files get immediately deleted

Open Eldaw opened this issue 7 months ago • 2 comments

I've been investigating why the desktop.ini files inside each of my synced folders on Windows 11 keep getting deleted. Eventually I figured out that it happens when accessing my machines over the network (using a UNC path). Later I figured out that it only happens when I have MEGAsync running, and then finally I figured out that it can even be reproduced locally when browsing to a UNC path locally on the same machine.

Here's the situation for my local machine (which I've also reproduced on other computers on my network):

On my local T drive ( T:\ ) I have several folders which have been set up as sync folders in MEGAsync. This means each of these folders contains a desktop.ini file containing the following default text which sets a custom icon for the sync folders.

[.ShellClassInfo]
InfoTip=MEGA synced folder
IconResource=C:\Users\Username\AppData\Local\MEGAsync\MEGAsync.exe,4

I have shared the root of my T:\ using a share name of 'T' such that I can access the root of my T-drive over the network by browsing to \\COMPUTERNAME\T

If I open File Explorer and browse my local T-drive, I see all the sync folders with the red MEGA icon displayed on them.

If I have the MEGAsync client running, and I then use the Run dialog to browse to my local T-drive using a UNC path, like so:

Image

Then when the File Explorer window opens at that location, for 1 second I briefly see the red MEGA icons before they're all immediately replaced by the standard Windows folder icons. At that point I then check and confirm that each of the desktop.ini files (in each sync folder) have been automatically deleted.

If I put the desktop.ini files back into each sync folder, I can repeat this experiment and each time they get deleted when I access \\COMPUTERNAME\T

If I put the desktop.ini files back, quit MEGAsync and wait for its process to stop running, and then browse again to the UNC path, then the desktop.ini files get left alone. So that confirms that it is definitely the MEGAsync client that is responsible for deleting those files whenever I browse to the UNC path.

This testing has all been done using MEGAsync 5.11.1 on Windows 11. I hope it can be fixed, as I'm getting really tired of having to manually restore the desktop.ini files each time I access my network share (usually from other machines on my network, which are also running the MEGAsync client).

Eldaw avatar May 29 '25 04:05 Eldaw

About a month since I reported a 100% reproducible issue, and no response whatsoever from anybody at MEGA. Is MEGA lacking staff, or lacking respect?

Eldaw avatar Jun 26 '25 15:06 Eldaw

Hi @Eldaw, sorry for the late answer and thanks for your patience. This happens because megasync's Explorer extension does not recognize the shared folder as a synced folder, and thus unsets the icon (we do not directly remove desktop.ini, we use a Windows API to unset the icon and Windows removes the file, probably because there is no other property set). We'll improve the behavior so that in case of a (remote) shared folder, the icon property is left untouched.

Thanks for your report and have a good day.

rl-mega avatar Sep 09 '25 15:09 rl-mega