You are here

Thunderbird Portable vs Firefox Installed vs RAM Disk

8 posts / 0 new
Last post
subdivider
Offline
Last seen: 9 years 9 months ago
Joined: 2015-02-02 10:44
Thunderbird Portable vs Firefox Installed vs RAM Disk

Hello, since I recently bought SSD, I desided to redirect (mklink command) Firefox folders from %APPDATA% and %LOCALAPPDATA% to RAM Disk (ImDisk Virtual Disk Driver).
More specifically I set up persistent RAM Drive R: that is inicialized from *.img file during logon and written to *.img (on hdd) during logoff.

Then I created symbolic links by
mklink /D %APPDATA%\Mozilla R:\AppData\Roaming\Mozilla
mklink /D %LOCALAPPDATA%\Mozilla R:\AppData\Local\Mozilla

Everything works as expected (preventing writes on SSD)...
But when I run Thunderbird Portable and close it, the launcher deletes not only %APPDATA%\Thunderbird and %LOCALAPPDATA%\Thunderbird folders but also destroys Mozilla Firefox symbolik links...

John T. Haller
John T. Haller's picture
Offline
Last seen: 3 hours 50 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Unsupported

Creating a junction or symbolic link within APPDATA or LOCALAPPDATA can have negative affects due to the way Windows works. Unfortunately, Windows is kind of dumb when it comes to these things as they're basically bolted on after the fact. The way the launcher works is that it checks to see if, for instance, %APPDATA%\Mozilla is empty as it exits. If it's a symbolic link/junction, the Windows API wrongly says... yup, it's empty. The FirefoxPortable.exe launcher then deletes it, since it's empty. This is a long-standing issue in Windows and will likely never be addressed.

We have some test code for the launchers that should eventually work into production. But we have a very full plate and this is a very niche issue.

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

subdivider
Offline
Last seen: 9 years 9 months ago
Joined: 2015-02-02 10:44
Thank You for Your immediate

Thank You for Your immediate answer and clarification!

But I wonder, why Thunderbird Portable checks and deletes folders that belong to Firefox, as I am not using Firefox Portable. My Firefox is installed one.

John T. Haller
John T. Haller's picture
Offline
Last seen: 3 hours 50 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Shared

The APPDATA\Mozilla folder is used by both Firefox and Thunderbird.

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

subdivider
Offline
Last seen: 9 years 9 months ago
Joined: 2015-02-02 10:44
Oh, I was not fully aware of

Oh, I was not fully aware of that fact. Now it is clear to me...

ElSid
Offline
Last seen: 4 years 3 weeks ago
Joined: 2009-03-02 12:03
Sorry to bring up an old post ...

but I'm trying to do similar on an older computer. Portable apps are running in a RamDrive, including FireFox and ThunderBird.
I'm wondering if a workaround or solution was ever found.
{New Install Windows 7x64 on a ZBOX AD-02 with 60GB SSD}

duttyend
Offline
Last seen: 4 hours 45 min ago
Joined: 2016-11-08 12:04
Very interesting topic!

Very interesting topic!
Thanks a lot to John for taking the time to answer with details!

John T. Haller
John T. Haller's picture
Offline
Last seen: 3 hours 50 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Test Here

Please test the function of these two test launchers for Firefox and Thunderbird here: https://portableapps.com/node/54162

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

Log in or register to post comments