Gentoo Archives: gentoo-user

From: Laurence Perkins <lperkins@×××××××.net>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: RE: [gentoo-user] *sob*
Date: Mon, 13 Jun 2022 15:27:10
Message-Id: MW2PR07MB405847222EAC37386F374315D2AB9@MW2PR07MB4058.namprd07.prod.outlook.com
In Reply to: Re: [gentoo-user] *sob* by Neil Bothwick
1 >-----Original Message-----
2 >From: Neil Bothwick <neil@××××××××××.uk>
3 >Sent: Sunday, June 12, 2022 4:28 AM
4 >To: gentoo-user@l.g.o
5 >Subject: Re: [gentoo-user] *sob*
6 >
7 >On Sun, 12 Jun 2022 00:42:56 -0400, Alan Grimes wrote:
8 >
9 >> All of the followning statemens are true:
10 >>
11 >> 1. I am never not running seamonkey, it is always open at all times on
12 >> my left hand monitor, If at any point it was not on my left hand
13 >> monitor either I must have been going through a power failure or
14 >> something had broken it, because it is working at the moment I have
15 >> decided not to use emerge update for the next six months, two months
16 >> in to that period at this point.
17 >>
18 >> 2. Seamonkey is my default browser.
19 >>
20 >> 3. Seamonkey cannot be launched twice, ie it cannot be launched on my
21 >> right hand monitor because the monitors are using separte X servers
22 >> and it would need to be launched twice to come up on that monitor.
23 >
24 >The last statement is not quite true. It cannot be launched twice with the same profile. This was the first hit when googling "seamonkey launch two instances"
25 >
26 >http://kb.mozillazine.org/Opening_a_new_instance_of_your_Mozilla_application_with_another_profile
27 >
28 >Is there a particular reason for running two X servers rather than one desktop on two screens? The latter completely avoids the problem you are having.
29 >
30 >
31 >--
32 >Neil Bothwick
33 >
34 >If God can't help you, how about Mr. Coffee?
35
36 I can think of a few ways around this mess actually...
37
38 1. Use one X server for both screens, and should you happen to need a separate X server to contain something use xnest, xephyr, or a headless VNC server to run another X that you can have there as a window.
39 2. Since you're using two X instances, and therefore two instances of your window manager, etc., create two profiles for all that which use separate seamonkey profile folders for their default browser.
40 3. Go all the way and run your two X servers as two completely different user accounts. I presume you're already using separate keyboard and mouse for each anyway since I'm not sure how it would work otherwise.
41 4. Update your default browser string to explicitly set which X display to talk to. Then it will open on your left monitor no matter where it's launched from.
42 5. You can't really get away from having a default browser, and you probably don't want to since it'll break other things later, but you could make it launch a wrapper script that looks at what display it's on and behaves accordingly.
43 6. There used to be something called "libteleport" that would let you transfer X programs from one display to another. It was rarely used because programs had to be built against it, and most binary distros didn't... But on Gentoo that should theoretically be easy...
44 7. Several other browsers will automatically open new windows on whatever display their running instance is on (even over SSH... long story...) Since you don't want to switch to one of those you could port that functionality to Seamonkey.
45
46 I've probably missed a few options, that's just what I can think of off the top of my head.
47
48 LMP