AppData location used by MM does not honour custom location

To get bugs in the current release fixed, please report them here.

Moderator: Gurus

AppData location used by MM does not honour custom location

Postby Marc C. » Mon Apr 09, 2012 7:48 pm

Hello,

I only now upgraded my laptop's installation of MediaMonkey from one of the 3.x versions to 4.0.3.1476, and have found an issue with the location of the database and settings used for MediaMonkey (non-portable installation). I am running under Windows Vista.

I understand that MediaMonkey version 4.x is supposed to keep its settings and database in %APPDATA%\MediaMonkey, which on Vista is by default C:\Users\<Username>\AppData\Roaming\MediaMonkey

However, on my computer, I have configured the Roaming folder to be in D:\AppData\Roaming instead, for ease of backup (D: is volatile data that gets backed up every week minimum, C: is executable or non-changing data that gets backed up every month or two). I've done similarly for the Local folder. Note that this is fully supported by Windows Vista, it's not a "hack" or anything else I would not reasonably expect a developer to support: you can easily change the location of AppData\Roaming and AppData\Local by opening up the folder properties for each one and going to the "Location" tab (along with moving the files, since Windows doesn't do that for you).

However, MediaMonkey 4 does NOT honor this setting, and instead seems to have hardcoded the use of C:\Users\<username>\AppData\Roaming and likewise for Local. MediaMonkey 3 DID honor this setting.

It's a minor bug, but one that is easy to fix correctly (the environment provides the APPDATA variable, which should be accessible from the WinAPI) and that MediaMonkey 3 did right. For now, I've just routed symlinks to the correct locations, but it would be nice to see this fixed—if this had been a clean install, not an upgrade in which I noticed my old database wasn't imported, my MediaMonkey library would've fallen right under the radar!

Regards,
Marc
Marc C.
 

Re: AppData location used by MM does not honour custom locat

Postby nohitter151 » Fri Apr 13, 2012 9:41 am

MM is not hardcoded, it uses the registry key HKCU/Software/Microsoft/Windows/Explorer/Shell to find the APPDATA variable
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?
nohitter151
 
Posts: 21459
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA

Re: AppData location used by MM does not honour custom locat

Postby Marc C. » Wed Apr 25, 2012 1:02 am

There is no such key on my system. The closest I could find was:

HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

It contains "AppData" which is correctly "D:\AppData\Roaming", and "Local AppData" which is likewise "D:\AppData\Local"; however, MediaMonkey 4 is currently attempting to read "C:\Users\[my username]\AppData\Roaming" (or "AppData\Local" for the local variable) instead.

This is on Windows Vista.
Marc C.
 

Re: AppData location used by MM does not honour custom locat

Postby PetrCBR » Wed Apr 25, 2012 1:26 pm

In Vista and later MM uses SHGetKnownFolderPath to get a folder (for Roaming AppData it uses FOLDERID_RoamingAppData). It's prefered way how to get system folder in Vista+ systems.
PetrCBR
 
Posts: 1141
Joined: Tue Mar 07, 2006 5:31 pm
Location: Czech

Re: AppData location used by MM does not honour custom locat

Postby FelR » Tue Nov 20, 2012 11:38 am

Hello,

I do have the same problem with version 4.0.7.1511.

The registy keys HKCU/Software/Microsoft/Windows/Current Version/Explorer/User Shell Folders and HKCU/Software/Microsoft/Windows/Current Version/Explorer/Shell Folders both point to a folder on my server. These settings are supported by Microsoft for folder redirction. But since the update to the latest version MediaMonkey seems to ignore this setting and stores its files in the standard folder C:\Users\<Username>\AppData\Roaming\MediaMonkey. With a previous version of MediaMonkey 4 it worked fine.
FelR
 


Return to Bug Reports (mmw)

Who is online

Users browsing this forum: No registered users and 2 guests