On Wed, 29 Sep 2010 18:00:06 +0100 Nick Treleaven nick.treleaven@btinternet.com wrote:
- this is the most complicated but also the one that seems to have the
less flaws: still add workspace suffix, but when checking if there is a running instance to which send the requests, ignore that workspace information if the pre-workspace option is not checked. It needs to list the available socket(s), and then select the one we want (probably the first or the one closets to the current desktop), but it fixes flaws I see in both methods 1) and 2).
I prefer this solution, mainly because it doesn't have the problems the other two solutions have.
In any case, the patch introduced a bug where 2nd instances still load the session files. So I think we'll need to revert it until there's a fix.
I've now copied the code to branches/workspace-sockets and reverted the code in trunk. Hopefully we can fix the issues and merge back sometime.
One idea besides having a pref for this is to have a command-line option to use the 'main' socket instead of the current workspace.
Regards, Nick