[Wylug-help] Mozilla SSH - My sanity

Jason Lander jason at env.leeds.ac.uk
Mon May 8 12:22:21 BST 2006


Dave,

> Mozilla "knows" that I already have a mozilla running on my desktop from
> server one and somehow re-uses it.
>
> Unless I am going mad?
>
> Is this normal?  Can I stop it?

I cannot comment on your sanity but - as Smylers says - Mozilla's 
behaviour is normal.

Mozilla stores information about where it is running on the X server with 
which it is communicating via the X Properties and Atoms mechanism

Debian's slightly-too-clever firefox start script does a

    firefox -remote 'ping()'

and uses the remote version if it exists. I assume the other Mozilla 
scripts do this too.

You could modify the firefox script. On my Sarge box, the offending code 
is

     339 if [ "${DISPLAY}" ] || [ "${CMDLINE_DISPLAY}" ]; then
     340     if [ -z "${CMDLINE_DISPLAY}" ]; then
     341         CMDLINE_DISPLAY="${DISPLAY}"
     342     fi
     343
     344     # check to see if there's an already running instance or not
     345     verbose "Running: ${MOZ_PROGRAM} -remote 'ping()'"
     346     DISPLAY="${CMDLINE_DISPLAY}" ${MOZ_PROGRAM} -remote 'ping()' \
     347         > /dev/null 2>&1
     348     PING_STATUS=$?
     349 fi

You could try sabotaging the PING_STATUS...

- Jason



More information about the Wylug-help mailing list