I have Firefox Portable installed on a flash drive to keep my bookmarks and settings with me between public computers. Sometimes I wish to run it from my home computer that has Linux to retrieve saved bookmarks and such. Now I know there are ways to save bookmarks outside Firefox, but that's not what I'm looking for.
I had no problems running Firefox Portable 3.6.3 or even 4.0b8 under wine, but since I've updated to Firefox Portable 4.0.1 (and updated wine a couple times since I ran FFx Portable last), I can't do this any more. Wine gives the output:
err:module:import_dll Loading library smime3.dll (which is needed by L"H:\\win32\\FirefoxPortable\\App\\Firefox\\xul.dll") failed (error c000007b).
err:virtual:map_file_into_view failed to set 00000007 protection on file map, noexec filesystem?
err:module:import_dll Loading library ssl3.dll (which is needed by L"H:\\win32\\FirefoxPortable\\App\\Firefox\\xul.dll") failed (error c000007b).
err:virtual:map_file_into_view failed to set 00000007 protection on file map, noexec filesystem?
err:module:import_dll Loading library nss3.dll (which is needed by L"H:\\win32\\FirefoxPortable\\App\\Firefox\\xul.dll") failed (error c000007b).
err:virtual:map_file_into_view failed to set 00000007 protection on file map, noexec filesystem?
err:module:import_dll Loading library nssutil3.dll (which is needed by L"H:\\win32\\FirefoxPortable\\App\\Firefox\\xul.dll") failed (error c000007b).
err:virtual:map_file_into_view failed to set 00000007 protection on file map, noexec filesystem?
err:module:import_dll Loading library plc4.dll (which is needed by L"H:\\win32\\FirefoxPortable\\App\\Firefox\\xul.dll") failed (error c000007b).
err:virtual:map_file_into_view failed to set 00000007 protection on file map, noexec filesystem?
err:module:import_dll Loading library plds4.dll (which is needed by L"H:\\win32\\FirefoxPortable\\App\\Firefox\\xul.dll") failed (error c000007b).
err:virtual:map_file_into_view failed to set 00000007 protection on file map, noexec filesystem?
err:module:import_dll Loading library mozalloc.dll (which is needed by L"H:\\win32\\FirefoxPortable\\App\\Firefox\\xul.dll") failed (error c000007b).
err:virtual:map_file_into_view failed to set 00000007 protection on file map, noexec filesystem?
err:module:import_dll Loading library MOZCPP19.dll (which is needed by L"H:\\win32\\FirefoxPortable\\App\\Firefox\\xul.dll") failed (error c000007b).
err:module:import_dll Library xul.dll (which is needed by L"H:\\win32\\FirefoxPortable\\App\\Firefox\\firefox.exe") not found
err:virtual:map_file_into_view failed to set 00000007 protection on file map, noexec filesystem?
err:module:import_dll Loading library xpcom.dll (which is needed by L"H:\\win32\\FirefoxPortable\\App\\Firefox\\firefox.exe") failed (error c000007b).
err:virtual:map_file_into_view failed to set 00000007 protection on file map, noexec filesystem?
err:module:import_dll Loading library mozalloc.dll (which is needed by L"H:\\win32\\FirefoxPortable\\App\\Firefox\\firefox.exe") failed (error c000007b).
err:virtual:map_file_into_view failed to set 00000007 protection on file map, noexec filesystem?
err:module:import_dll Loading library plc4.dll (which is needed by L"H:\\win32\\FirefoxPortable\\App\\Firefox\\firefox.exe") failed (error c000007b).
err:module:LdrInitializeThunk Main exe initialization for L"H:\\win32\\FirefoxPortable\\App\\Firefox\\firefox.exe" failed, status c0000135
All these dlls exist in FirefoxPortable/App/Firefox/ . ClamWin won't run with wine either, though it only complains about one existing dll. (Yes, I know there's clamav for Linux - I have it installed. This was to see if it was only FFx Portable.) Firefox 4.0.1 (non-portable) works fine under wine for me. I'm on Arch Linux and currently have wine-1.3.19.
So what can I do to run Firefox Portable under wine?
This will not help you with Wine. Sorry. Still, you might find it useful.
Run native Firefox. From there you have several options:
1) Use the Profile Manager by starting Firefox with parameters "
firefox -no-remote -P
". Add your FxP profile folder to it (FirefoxPortable/Data/profile), untick "Don't ask at startup", and after that whenever you start your Linux Firefox you will be prompted for which profile to be used. Choose the second one when you need it, but be aware that the FxP partition must be mounted in order for that profile to be used. Any Windows-specific add-on *should* get disabled just for the session, and enabled again when ran on Windows. Windows-specific plugins are untouched, they reside in a separate directory.2) Try the Set Up Sync... option. I believe you'd had to manually choose to sync FirefoxPortable after starting it, and again before closing on every Windows machine. Though I might be wrong since I don't use it.
3) Use symlinks. Non-safe option, use it only if you understand the risk (risk: target partition has to be mounted; if not, data loss or corruption might occur). This is a suggestion only if you use FxP as your main browser on a local Hard Drive.
3a) Create a symlink "places.sqlite" in your Firefox profile, pointing to "places.sqlite" of FirefoxPortable. That will make them both use the same bookmark database file, but you have to make sure that FirefoxPortable partition is always mounted before launching Firefox. Add symlinks for any additional files you like to share, for example "adblockplus" folder to share ABP rules, "stylish.sqlite" for Stylish, "HTTPSEverywhere...." folder for... Well, you get it. Be aware that this suggestion will leave you with just one bookmark database, back it up regularly.
3b) Create a symlink to entire profile folder of FirefoxPortable/Data/profile, and place it instead of your Firefox on Linux profile. Same rule about mounting the partition before starting it applies.
Personal recommendation would be the Profile Manager, as it allows you to use multiple instances of Firefox running simultaneously, one of which would be the FxPortable one. Additional advantage PM has over Wine is the use of native plugins. I hope this tl;dr post has some use for you.
My posts are old and likely no longer relevant.
Wine cannot execute FF because all the DLLs have no exec flag set, i.e. Linux has not only read and write rights but also execute rights associated with files. For executable files it requires that the exec flag is set.
You should check the filesystem of your stick, how you mount your stick and perhaps check the actual file rights with your preferred file manager.
Thanks for the suggestion, dboki89.
Eugen, yeah, that appears to have been the problem. It's a bit annoying that vfat and ntfs can't (remember? set?) *nix's execute flag and those are the only two f.s. that I can be confidant public Windows machines can read.
What about fat32?
Actually, VFAT is FAT16 or FAT32 + non-8.3 filename support (see this Wikipedia article).
Previously known as kAlug.
Errr, yes, shure, stupid me... Whatever I read or thought (did I confuse it with exFAT???), don't bother...
Could you try running your app via Open with... > Wine core exe? Does it mitigate the errors for you?
My posts are old and likely no longer relevant.
The solution to this issue is to mount devices with the exec attribute... for example, I use this on my pendrive:
/dev/sdb /mnt/pendrive vfat iocharset=iso8859-1,user,exec,noauto,umask=0 0 0
Good luck!