X
Tap here to go to the mobile version of the site.

Support Forum

Intel application auto launch won't start Firefox with my profile

Posted

I was referred here by Intel tech support. My original thread is at: https://communities.intel.com/message/389686

My Intel wireless network settings lets me automatically launch an application whenever I connect to a certain wireless network ("Enable Intel connection settings" in Control Panel\Network and Internet\Manage Wireless Networks). However, when I choose to launch Firefox, it launches without my profile.

I located the profile folder according to the directions in the topic "How can I determine which profile Firefox 3 is currently using?". I was greeted with the attached error message upon trying to open the profile folder from the "profile-less" instance of Firefox. When I launch Firefox after closing the "profile-less" instance, my profile is loaded normally.

I tried to set my auto launch application path using a command line argument, but that resulted in a message indicating that my program path was invalid.

I tried creating a batch file that started Firefox, then setting my auto launch application path to that batch file. The text of my batch file is (including quotes):

"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"

Unfortunately, that didn't work either. I would like to know why Firefox can't load my profile using the auto launch feature, but it can load my profile when I launch it from my taskbar.

I was referred here by Intel tech support. My original thread is at: https://communities.intel.com/message/389686 My Intel wireless network settings lets me automatically launch an application whenever I connect to a certain wireless network ("Enable Intel connection settings" in Control Panel\Network and Internet\Manage Wireless Networks). However, when I choose to launch Firefox, it launches without my profile. I located the profile folder according to the directions in the topic "How can I determine which profile Firefox 3 is currently using?". I was greeted with the attached error message upon trying to open the profile folder from the "profile-less" instance of Firefox. When I launch Firefox after closing the "profile-less" instance, my profile is loaded normally. I tried to set my auto launch application path using a command line argument, but that resulted in a message indicating that my program path was invalid. I tried creating a batch file that started Firefox, then setting my auto launch application path to that batch file. The text of my batch file is (including quotes): "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" Unfortunately, that didn't work either. I would like to know why Firefox can't load my profile using the auto launch feature, but it can load my profile when I launch it from my taskbar.
Attached screenshots

Additional System Details

Installed Plug-ins

  • Intel web components for Intel® Identity Protection Technology
  • Intel web components updater - Installs and updates the Intel web components
  • The plugin allows you to have a better experience with Microsoft SharePoint
  • Shockwave Flash 21.0 r0
  • 5.1.41212.0
  • Yahoo! activeX Plug-in Bridge
  • iTunes Detector Plug-in

Application

  • Firefox 45.0.2
  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
  • Support URL: https://support.mozilla.org/1/firefox/45.0.2/WINNT/en-US/

Extensions

  • about:addons-memory 10.1-signed (about-addons-memory@tn123.org)
  • Add Bookmark Here ² 41.0.20160409 (abhere2@moztw.org)
  • Add to Search Bar 2.9 (add-to-searchbox@maltekraus.de)
  • Baha'i Calendar 1.4.0.1-signed (omid@mamad.net)
  • Classic Theme Restorer 1.5.0 (ClassicThemeRestorer@ArisT2Noia4dev)
  • Click-to-Play Manager 1.4 (click-to-play-manager@xulforge.com)
  • Context Search 0.6.4 ({902D2C4A-457A-4EF9-AD43-7014562929FF})
  • Copy Plain Text 2 1.5 (copyplaintext@teo.pl)
  • DisableBackspaceNavigation 0.6.1-signed ({40520fe7-6336-4df2-bab1-1f1f8e11bf27})
  • Ecosia — The search engine that plants trees! 3.4.2 ({d04b0b40-3dab-4f0b-97a6-04ec3eddbfb0})
  • Expire history by days 1.2.0 (expire-history-by-days@bonardo.net)
  • Extension Options Menu 2.18 ({1feca320-6b4d-11df-a08a-0800200c9a66})
  • FavIconReloader 0.8.1-signed (FavIconReloader@mozilla.org)
  • Firefox Hello Beta 1.1.14 (loop@mozilla.org)
  • Form History Control 1.4.0.6 (formhistory@yahoo.com)
  • HTTPS-Everywhere 5.1.6 (https-everywhere@eff.org)
  • IE Tab 2 (FF 3.6+) 6.2.18.1 ({1BC9BA34-1EED-42ca-A505-6D2F1A935BBB})
  • Kaspersky Protection 4.6.2.31 (light_plugin_D772DC8D6FAF43A29B25C4EBAA5AD1DE@kaspersky.com)
  • Menu Wizard 4.05 (s3menu@wizard)
  • NoScript 2.9.0.11 ({73a6fe31-595d-460b-a920-fcc0f8843232})
  • Precise Clear History 1.3.1-signed (preciseclearhistory@vano)
  • Remove Cookies for Site 0.63.1-signed ({06997db0-c027-4d5f-bd37-b0d9230226ea})
  • Resurrect Pages 3 ({0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3})
  • Save File to 2.5.5 (savefileto@mozdev.org)
  • Search by Image for Google 1.2.0.1-signed ({ab4b5718-3998-4a2c-91ae-18a7c2db513e})
  • Search Engine Security 1.2.0.1-signed ({197573FA-9BF9-11DF-9D68-A441DFD72085})
  • SSL Version Control 0.4.1-signed (jid1-ZM3BerwS6FsQAg@jetpack)
  • Status-4-Evar 2015.11.16.23.1-signed.1-let-fixed (status4evar@caligonstudios.com)
  • Stay-Open Menu 3.0.1 ({3541c267-2580-4144-854e-2e05c8670121})
  • Stylish 2.0.6 ({46551EC9-40F0-4e47-8E18-8E5CF550CFB8})
  • Stylish Sync 0.1.7.1-signed ({0e3fc079-afbb-4a00-87e5-9486062d0f9c})
  • Tab Groups 1.0.2 (tabgroups@quicksaver)
  • Tab Mix Plus 0.4.2.2 ({dc572301-7619-498c-a57d-39143191b318})
  • Tile Tabs 13.6b1 (tiletabs@DW-dev)
  • Undo Bookmarks Menu 1.7.1-signed (undoBookmarksMenu@alice)
  • UnMHT 8.1.0 ({f759ca51-3a91-4dd1-ae78-9db5eee9ebf0})
  • View Cookies 1.13 ({8F6A6FD9-0619-459f-B9D0-81DE065D4E21})
  • Webmail Ad Blocker 4.29 (gmailnoads@mywebber.com)
  • WOT 20151208 ({a0d7ccb3-214d-498b-b4aa-0e8fda9a7bf7})
  • Zoom Page 14.3 (zoompage@DW-dev)
  • Zscaler Safe Shopping 1.5.1-signed ({FC93BE36-E090-11DF-9D98-06A7DFD72085})
  • Adblock Plus 2.7.2 ({d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}) (Inactive)
  • Document Font Toggle 2.0.1-signed (dft@dietrich.cx) (Inactive)
  • feedly 16.0.528.1-signed (feedly@devhd) (Inactive)
  • FlashGot 1.5.6.13 ({19503e42-ca3c-4c27-b1e2-9cdb2170ee34}) (Inactive)
  • Font Finder 1.2.0 (fontfinder@bendodson.com) (Inactive)
  • Nimbus Screen Capture - editable screenshots. 8.2.1 (nimbusscreencaptureff@everhelper.me) (Inactive)
  • Sage 1.5.4 ({a6ca9b3b-5e52-4f47-85d8-cca35bb57596}) (Inactive)
  • Tile View 5.1 (tileview@DW-dev) (Inactive)
  • TinEye Reverse Image Search 1.2.1 (tineye@ideeinc.com) (Inactive)
  • Troubleshooter 1.1a.1-signed (troubleshooter@mozilla.org) (Inactive)
  • URL Flipper 3.1.1.20.1-signed (urlflipper@mozilla.ktechcomputing.com) (Inactive)

Javascript

  • incrementalGCEnabled: True

Graphics

  • adapterDescription: Intel(R) HD Graphics 4600
  • adapterDescription2: NVIDIA GeForce GTX 860M
  • adapterDeviceID: 0x0416
  • adapterDeviceID2: 0x1392
  • adapterDrivers: igdumdim64 igd10iumd64 igd10iumd64 igdumdim32 igd10iumd32 igd10iumd32
  • adapterDrivers2: nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um
  • adapterRAM: Unknown
  • adapterRAM2: 2048
  • adapterSubsysID: 11141462
  • adapterSubsysID2: 11141462
  • adapterVendorID: 0x8086
  • adapterVendorID2: 0x10de
  • direct2DEnabled: True
  • directWriteEnabled: True
  • directWriteVersion: 6.2.9200.17568
  • driverDate: 8-4-2015
  • driverDate2: 3-21-2016
  • driverVersion: 10.18.14.4264
  • driverVersion2: 10.18.13.6472
  • info: {u'AzureCanvasBackend': u'direct2d 1.1', u'AzureFallbackCanvasBackend': u'cairo', u'AzureContentBackend': u'direct2d 1.1', u'AzureSkiaAccelerated': 0}
  • isGPU2Active: False
  • numAcceleratedWindows: 1
  • numTotalWindows: 1
  • supportsHardwareH264: Yes
  • webglRenderer: Google Inc. -- ANGLE (Intel(R) HD Graphics 4600 Direct3D11 vs_5_0 ps_5_0)
  • windowLayerManagerRemote: True
  • windowLayerManagerType: Direct3D 11

Modified Preferences

Misc

  • User JS: Yes
  • Accessibility: No
jscher2000
  • Top 10 Contributor
8775 solutions 71729 answers

Are you allowed to specify a .lnk shortcut in the dialog? If so, you could try this to "follow" your pinned taskbar shortcut:

"C:\Users\username\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Mozilla Firefox.lnk"

Does that work any better?


If not, I think you might need to use the -profile command-line switch with the .exe:

https://developer.mozilla.org/docs/Mozilla/Command_Line_Options#-profile_.22.2Fpath.2Fto.2Fprofile.22

I've never tried that myself.

Are you allowed to specify a .lnk shortcut in the dialog? If so, you could try this to "follow" your pinned taskbar shortcut: "C:\Users\''username''\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Mozilla Firefox.lnk" Does that work any better? ---- If not, I think you might need to use the -profile command-line switch with the .exe: https://developer.mozilla.org/docs/Mozilla/Command_Line_Options#-profile_.22.2Fpath.2Fto.2Fprofile.22 I've never tried that myself.

Modified by jscher2000

cor-el
  • Top 10 Contributor
  • Moderator
17539 solutions 158588 answers

You can paste this code on the command line in the Browser Console to see what profile Firefox is using. Press the Enter key to evaluate the JavaScript code.

Cc["@mozilla.org/file/directory_service;1"].getService(Ci.nsIProperties).get("ProfD", Ci.nsIFile).path;

You need to set devtools.chrome.enabled to true on the about:config page to enable the command line in the Browser Console.

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

You can paste this code on the command line in the Browser Console to see what profile Firefox is using. Press the Enter key to evaluate the JavaScript code. <pre><nowiki>Cc["@mozilla.org/file/directory_service;1"].getService(Ci.nsIProperties).get("ProfD", Ci.nsIFile).path; </nowiki></pre> You need to set <b>devtools.chrome.enabled</b> to true on the <b>about:config</b> page to enable the command line in the Browser Console. *https://developer.mozilla.org/Tools/Browser_Console You can open the <b>about:config</b> page via the location/address bar. You can accept the warning and click "I'll be careful" to continue. *http://kb.mozillazine.org/about:config

Question owner

@jscher2000: I am allowed to specify a .lnk shortcut in the dialog, but it didn't launch. I get a "invalid path" message if I try the command line switch in the dialog itself. But if I try the command line switch in the batch file, that seems to work. Thank you for your help.

@cor-el: I tried your suggestion, but I got "ReferenceError: Cc is not defined".

EDIT: The batch file isn't quite working as much as I thought. The auto launch feature didn't launch it at all. Only when I flipped the auto launch switch on and off did it work. (Each time, the network disconnected and reconnected with the new settings.) I'll hand this one back to Intel.

@jscher2000: I am allowed to specify a .lnk shortcut in the dialog, but it didn't launch. I get a "invalid path" message if I try the command line switch in the dialog itself. But if I try the command line switch in the batch file, that seems to work. Thank you for your help. @cor-el: I tried your suggestion, but I got "ReferenceError: Cc is not defined". EDIT: The batch file isn't quite working as much as I thought. The auto launch feature didn't launch it at all. Only when I flipped the auto launch switch on and off did it work. (Each time, the network disconnected and reconnected with the new settings.) I'll hand this one back to Intel.

Modified by Toa_Of_Justice

cor-el
  • Top 10 Contributor
  • Moderator
17539 solutions 158588 answers
var {classes:Cc,interfaces:Ci,utils:Cu} = Components;
Cc["@mozilla.org/file/directory_service;1"].getService(Ci.nsIProperties).get("ProfD", Ci.nsIFile).path;
<pre><nowiki>var {classes:Cc,interfaces:Ci,utils:Cu} = Components; Cc["@mozilla.org/file/directory_service;1"].getService(Ci.nsIProperties).get("ProfD", Ci.nsIFile).path;</nowiki></pre>

Question owner

cor-el said

var {classes:Cc,interfaces:Ci,utils:Cu} = Components;
Cc["@mozilla.org/file/directory_service;1"].getService(Ci.nsIProperties).get("ProfD", Ci.nsIFile).path;

I got the following messages after running that command: TypeError: Cc is undefined The Components object is deprecated. It will soon be removed.

''cor-el [[#answer-868751|said]]'' <blockquote> <pre><nowiki>var {classes:Cc,interfaces:Ci,utils:Cu} = Components; Cc["@mozilla.org/file/directory_service;1"].getService(Ci.nsIProperties).get("ProfD", Ci.nsIFile).path;</nowiki></pre> </blockquote> I got the following messages after running that command: TypeError: Cc is undefined The Components object is deprecated. It will soon be removed.
cor-el
  • Top 10 Contributor
  • Moderator
17539 solutions 158588 answers

Helpful Reply

I'm not seeing this error with any Firefox version including the current Nightly build with the above posted code. I just noticed that the code also works in the Web Console ("3-bar" menu button or Tools > Web Developer). I wasn't aware that code like this could be run in the Web Console ("3-bar" menu button or Tools > Web Developer).

I'm not seeing this error with any Firefox version including the current Nightly build with the above posted code. I just noticed that the code also works in the Web Console ("3-bar" menu button or Tools > Web Developer). I wasn't aware that code like this could be run in the Web Console ("3-bar" menu button or Tools > Web Developer).

Helpful Reply

Now I know where my error was: I was trying to use the Web Console this whole time, but since I only had Firefox 45.0.2 at the time I posted this question (when I went to check my version in Help > About Firefox, I was updated to Firefox 46), I didn't have (and still don't have) the ability to run that code in the Web Console. Once I found the Browser Console, I was able to run the original code.

Here is my result from the auto-launched Firefox:

"C:\Windows\System32\config\systemprofile\AppData\Roaming\Mozilla\Firefox\Profiles\2zleri1d.default"

Here is my result from the manually-launched Firefox:

"C:\Users\Steven\AppData\Roaming\Mozilla\Firefox\Profiles\z7cko4o8.default"
Now I know where my error was: I was trying to use the Web Console this whole time, but since I only had Firefox 45.0.2 at the time I posted this question (when I went to check my version in Help > About Firefox, I was updated to Firefox 46), I didn't have (and still don't have) the ability to run that code in the Web Console. Once I found the Browser Console, I was able to run the original code. Here is my result from the auto-launched Firefox: <pre><nowiki>"C:\Windows\System32\config\systemprofile\AppData\Roaming\Mozilla\Firefox\Profiles\2zleri1d.default"</nowiki></pre> Here is my result from the manually-launched Firefox: <pre><nowiki>"C:\Users\Steven\AppData\Roaming\Mozilla\Firefox\Profiles\z7cko4o8.default"</nowiki></pre>
cor-el
  • Top 10 Contributor
  • Moderator
17539 solutions 158588 answers

What profile is set in the profiles.ini as Default=1?

That should be the profile that is used when you start with the last used profile. It is usually best to make sure that that profile is selected in profiles.ini and use a specific desktop shortcut to launch Firefox with a specific profile other then the default.

What profile is set in the profiles.ini as Default=1? That should be the profile that is used when you start with the last used profile. It is usually best to make sure that that profile is selected in profiles.ini and use a specific desktop shortcut to launch Firefox with a specific profile other then the default. *https://developer.mozilla.org/Command_Line_Options *https://developer.mozilla.org/Mozilla/Multiple_Firefox_Profiles

Modified by cor-el

Question owner

z7cko4o8.default is set as Default=1.

z7cko4o8.default is set as Default=1.
cor-el
  • Top 10 Contributor
  • Moderator
17539 solutions 158588 answers

The normal location for a profile would be in ""C:\Users\<user>\AppData\Roaming\"

I don't know why there would be a profile in the C:\Windows\System32\ location.

  • "C:\Windows\System32\config\systemprofile\AppData\Roaming\

Did you create that profile yourself in that location? Is it listed in the profiles.ini file?

I wouldn't recommend to create a profile in the "Windows\System32\" location and best would be to remove this profile manually in Windows Explorer (best is not to use the Profile Manager).

The normal location for a profile would be in ""C:\Users\<user>\AppData\Roaming\" I don't know why there would be a profile in the C:\Windows\System32\ location. *"C:\Windows\System32\config\systemprofile\AppData\Roaming\ Did you create that profile yourself in that location? Is it listed in the profiles.ini file? I wouldn't recommend to create a profile in the "Windows\System32\" location and best would be to remove this profile manually in Windows Explorer (best is not to use the Profile Manager).

Question owner

I didn't create the profile, nor is it listed in profiles.ini. The Mozilla folder containing the profile has disappeared by itself from the "Windows\System32\" location.

I didn't create the profile, nor is it listed in profiles.ini. The Mozilla folder containing the profile has disappeared by itself from the "Windows\System32\" location.
cor-el
  • Top 10 Contributor
  • Moderator
17539 solutions 158588 answers

Do you still get that error message?

You can try to search the Windows Registry for that specific path to 2zleri1d.default to see if anything comes up.

Do you still get that error message? You can try to search the Windows Registry for that specific path to 2zleri1d.default to see if anything comes up.
jscher2000
  • Top 10 Contributor
8775 solutions 71729 answers

I think this is a problem with the Intel software, that it imposes its own root folder in place of the standard one.

Could you update us on the workaround of using auto-launch to call a batch file that has a full Firefox command line include the profile folder? Is that working consistently?

I think this is a problem with the Intel software, that it imposes its own root folder in place of the standard one. Could you update us on the workaround of using auto-launch to call a batch file that has a full Firefox command line include the profile folder? Is that working consistently?

Question owner

@cor-el: I couldn't find 2zleri1d in the registry. Hoewever, I did find two 2zleri1d.default default folders on my hard drive after auto-launching Firefox without the batch file:

C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\Mozilla\Firefox\Profiles\2zleri1d.default C:\Windows\SysWOW64\config\systemprofile\AppData\Local\Mozilla\Firefox\Profiles\2zleri1d.default

After getting rid of both of these folders, I auto-launched Firefox without the batch file again, and I was greeted with an "Import Settings and Data" wizard. I chose not to import anything, and Firefox started with a fresh profile. The browser console claimed it was in "C:\Windows\System32\config\systemprofile\AppData\Roaming\Mozilla\Firefox\Profiles\k8ybneo3.default", but I only found these folders:

C:\Windows\SysWOW64\config\systemprofile\AppData\Local\Mozilla\Firefox\Profiles\k8ybneo3.default C:\Windows\SysWOW64\config\systemprofile\AppData\Local\Mozilla\Firefox\Profiles\k8ybneo3.default

@jscher2000: I went back to using the batch file, and that launched Firefox with my profile as expected. But when I rebooted, the batch file didn't launch.

@cor-el: I couldn't find 2zleri1d in the registry. Hoewever, I did find two 2zleri1d.default default folders on my hard drive after auto-launching Firefox without the batch file: C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\Mozilla\Firefox\Profiles\2zleri1d.default C:\Windows\SysWOW64\config\systemprofile\AppData\Local\Mozilla\Firefox\Profiles\2zleri1d.default After getting rid of both of these folders, I auto-launched Firefox without the batch file again, and I was greeted with an "Import Settings and Data" wizard. I chose not to import anything, and Firefox started with a fresh profile. The browser console claimed it was in "C:\Windows\System32\config\systemprofile\AppData\Roaming\Mozilla\Firefox\Profiles\k8ybneo3.default", but I only found these folders: C:\Windows\SysWOW64\config\systemprofile\AppData\Local\Mozilla\Firefox\Profiles\k8ybneo3.default C:\Windows\SysWOW64\config\systemprofile\AppData\Local\Mozilla\Firefox\Profiles\k8ybneo3.default @jscher2000: I went back to using the batch file, and that launched Firefox with my profile as expected. But when I rebooted, the batch file didn't launch.
cor-el
  • Top 10 Contributor
  • Moderator
17539 solutions 158588 answers

Chosen Solution

See: *https://www.google.com/search?q=windows+systemprofile

Question owner

cor-el said

See:

I read some of those search results, and they inspired me to create symbolic links in the systemprofile folders to my personal Mozilla folders. Here are the commands I ran to make those links:

mklink /d "C:\Windows\SysWOW64\config\systemprofile\AppData\Local\Mozilla" "C:\Users\Steven\AppData\Local\Mozilla"
mklink /d "C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\Mozilla" "C:\Users\Steven\AppData\Roaming\Mozilla"

Now Firefox auto-launches with my profile.

Thank you, jscher2000 and cor-el, for your help! :)

''cor-el [[#answer-871094|said]]'' <blockquote> See: *https://www.google.com/search?q=windows+systemprofile </blockquote> I read some of those search results, and they inspired me to create symbolic links in the systemprofile folders to my personal Mozilla folders. Here are the commands I ran to make those links: <pre><nowiki>mklink /d "C:\Windows\SysWOW64\config\systemprofile\AppData\Local\Mozilla" "C:\Users\Steven\AppData\Local\Mozilla" mklink /d "C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\Mozilla" "C:\Users\Steven\AppData\Roaming\Mozilla"</nowiki></pre> Now Firefox auto-launches with my profile. Thank you, jscher2000 and cor-el, for your help! :)