[Dorset] X through ssh mystery

2012-11-08 Thread Tim Allen

Hi

I've noticed for some time something which baffles me with X forwarding 
over ssh and using Firefox (Iceweasel in Debian).


I can open a remote Iceweasel session, served up locally, in the normal way:

localmachine$ ssh -X remotemachine iceweasel

However, if I already have a local iceweasel session running, the above 
command just opens another local iceweasel session. What am I missing here?


Debian Squeeze on both machines. This is specific only to Iceweasel (as 
far as I know). Nothing immediate leaping out at me with -v or -vv.



Cheers

Tim


--
Next meeting:  Bournemouth, Tuesday, 2012-12-04 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread on mailing list:  mailto:dorset@mailman.lug.org.uk
How to Report Bugs Effectively:  http://goo.gl/4Xue


Re: [Dorset] X through ssh mystery

2012-11-08 Thread John Carlyle-Clarke

On 08/11/12 14:19, Tim Allen wrote:


I've noticed for some time something which baffles me with X forwarding
over ssh and using Firefox (Iceweasel in Debian).

I can open a remote Iceweasel session, served up locally, in the normal
way:

localmachine$ ssh -X remotemachine iceweasel

However, if I already have a local iceweasel session running, the above
command just opens another local iceweasel session. What am I missing here?

Debian Squeeze on both machines. This is specific only to Iceweasel (as
far as I know). Nothing immediate leaping out at me with -v or -vv.



Curious isn't it? Thunderbird is the same, and Firefox too IIRC. It must 
detect the other session via the X server somehow.


I haven't tried it, but might this help?

http://kb.mozillazine.org/Run_multiple_copies_of_Thunderbird_at_the_same_time#Making_Thunderbird_behave_differently


--
Next meeting:  Bournemouth, Tuesday, 2012-12-04 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread on mailing list:  mailto:dorset@mailman.lug.org.uk
How to Report Bugs Effectively:  http://goo.gl/4Xue


Re: [Dorset] X through ssh mystery

2012-11-08 Thread Ralph Corderoy
Hi John,

 Tim Allen wrote:
  I can open a remote Iceweasel session, served up locally, in the
  normal way:
 
  localmachine$ ssh -X remotemachine iceweasel
 
  However, if I already have a local iceweasel session running, the
  above command just opens another local iceweasel session. What am I
  missing here?

 Curious isn't it? Thunderbird is the same, and Firefox too IIRC. It
 must detect the other session via the X server somehow.

Yes, it looks through the X window hierarchy for its `Mozilla'
properties and finds the window that best matches, e.g. Firefox, same
user, same profile.

$ xlsatoms | gi mozilla
440 _MOZILLA_VERSION
441 _MOZILLA_LOCK
442 _MOZILLA_COMMAND
443 _MOZILLA_RESPONSE
444 _MOZILLA_USER
445 _MOZILLA_PROFILE
446 _MOZILLA_PROGRAM
447 _MOZILLA_COMMANDLINE
$

$ xprop -id 0x1c000ff | g _MOZILLA
_MOZILLA_PROFILE(STRING) = default
_MOZILLA_PROGRAM(STRING) = firefox
_MOZILLA_USER(STRING) = ralph
_MOZILLA_VERSION(STRING) = 5.1
$

To tell the Firefox you've started not to do that use -no-remote AIUI.
However, don't let it try and use the same profile as another running
Firefox and profiles aren't designed to cope.  Instead, give it another
profile name with -P.  -ProfileManager lets you create a new one.

Cheers, Ralph.

-- 
Next meeting:  Bournemouth, Tuesday, 2012-12-04 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread on mailing list:  mailto:dorset@mailman.lug.org.uk
How to Report Bugs Effectively:  http://goo.gl/4Xue


Re: [Dorset] X through ssh mystery

2012-11-08 Thread John Carlyle-Clarke

On 09/11/12 00:58, Ralph Corderoy wrote:

To tell the Firefox you've started not to do that use -no-remote AIUI.
However, don't let it try and use the same profile as another running
Firefox and profiles aren't designed to cope.  Instead, give it another
profile name with -P.  -ProfileManager lets you create a new one.


I'm sure you realized this, but it's perhaps worth pointing out that if 
you are running a version locally and version remotely on your local X, 
-no-remote would be safe to use unless you are doing something really 
bizarre with mounting shared user profiles over the network.


--
Next meeting:  Bournemouth, Tuesday, 2012-12-04 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread on mailing list:  mailto:dorset@mailman.lug.org.uk
How to Report Bugs Effectively:  http://goo.gl/4Xue