You are here

fdmPortable: Download path

2 posts / 0 new
Last post
xmha97
Offline
Last seen: 1 month 7 hours ago
Joined: 2021-01-03 06:04
fdmPortable: Download path

Hi, why this fdmPortable downloading to app folder and then move downloaded files to data folder?

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\portabledata\settings.ini
Find=@PLACEHOLDER-DEFAULT-DOWNLOADS-FORWARDSLASH@
Replace=%PAL:AppDir:ForwardSlash%/FreeDownloadManager/Downloads

[DirectoriesMove]
portabledata=%PAL:AppDir%\FreeDownloadManager\portabledata
localdata=%LOCALAPPDATA%\Softdeluxe\Free Download Manager
Downloads=%PAL:AppDir%\FreeDownloadManager\Downloads

You can set download path to fdmPortable data folder.

John T. Haller
John T. Haller's picture
Online
Last seen: 9 min 15 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Portablization

Free Download Manager stores the current path as appdir\Downloads in its SQLite settings database. Setting it up to the Data directory directly causes it to portablize it based on the drive root. This will break for users that use it synced between multiple PCs from a cloud folder when the PCs have different logins. So, for the first releases, I set it to move back and forth. I'll likely add some custom code to set it to that directory on each launch in Data so it doesn't have to move at some point.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments