Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 814463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:31:35+00:00 2026-05-15T01:31:35+00:00

When I start /Applications/Firefox.app/Contents/MacOS/firefox-bin on MacOSX using Process.Start() using Mono, the id of the

  • 0

When I start

/Applications/Firefox.app/Contents/MacOS/firefox-bin

on MacOSX using Process.Start() using Mono, the id of the process that gets returned does not match the process that firefox ends up running under.

It looks like firefox quickly decides to start another process, and kill the current one.

This makes it difficult to stop firefox, and to detect if it is still running. I’ve tried starting firefox using the -no-remote flag, to no avail.

Is there a way to start firefox in such a way that it doesn’t do this “I’ll quickly make a new process for you” dance?

The situation can somewhat be detected by making sure Firefox keeps on running for at least 3 seconds after its start, and when it does not, scan for other firefox processes. However, this technique is shaky at best, as on slow days it might take a bit more than 3 seconds, and then all tests depending on this behaviour fail.

It turns out, that this behaviour only happens when asking firefox to start a specific profile using -P MyProfile. (Which I need to do, as I need to start firefox with specific proxyserver settings) If I start firefox “normally” it does stick to its process.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T01:31:36+00:00Added an answer on May 15, 2026 at 1:31 am

    When using mozilla programmatically / embedding in other apps you should use the provided components:

    “The right way” as recommended by mozilla …

    https://developer.mozilla.org/en/XPCOM

    “The easy way”, general consensus from Mozilla dev guys …

    http://www.iol.ie/~locka/mozilla/control.htm

    Need to “execute processes”, simply instantiate an instance of the component and talk to that, you should then have everything you need.

    However …

    If you really do insist on looking after the actual process for a firefox instance, you may want to call

    Process.Start(“…\firefox.exe”);

    Then try this (i believe this works on MAC OS too) …

    C#/mono: get list of child processes on Windows and Linux

    The basic idea / thought pattern being that if it is in fact executing another process right away you should be able to find that as would be a “child” process instead of being just one from a list in the “task list” / process manager for the machine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

During the process of building software applications, you would start testing what you have
When I manually start Firefox and then try to attach to it using Browser.AttachTo(Find.First())
I open the Firefox application using a open -n -a Firefox.app When I close
I'd like to start developing applications for iPhone, but I'd really like to use
How do I automatically upgrade Silverlight 3 applications and start the new upgraded version
Let’s start with this statement: We have published couple of free applications on the
Can I develop Silverlight applications in Visual Studio express? When I start up Visual
Currently I am mostly a PHP/Javascript/CSS/HTML applications programmer. But I would like to start
I've never done a Java Web start application before. I wrote my app's JNLP
I don't know how make my application as auto start application.That is my expectation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.