www.cendio.com
Bug 5792 - Client launched by MIME or .tlclient extension on macOS might appear on wrong desktop
: Client launched by MIME or .tlclient extension on macOS might appear on wrong...
Status: NEW
: ThinLinc
Client
: trunk
: PC Unknown
: P2 Normal
: LowPrio
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2016-02-08 14:36 by
Modified: 2018-05-16 10:34 (History)
Acceptance Criteria:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From cendio 2016-02-08 14:36:26
From bug 5504:

>When a ThinLinc Client is open and (partially) hidden behind other
>applications, opening a ThinLinc Client configuration file will first focus and
>raise the existing ThinLinc Client above other windows and then start a new
>client instance with the desired configuration.
>
>If the ThinLinc Client is on another desktop, OS X will move to that desktop
>and start the new client there instead of on the desktop you're currently at.

The issue is more involved than that. Apparently, when you "open a file" in OS
X, it will normally focus the application. In this context, "focus" apparently
means "switch to the desktop where the application was last launched from".
This is regardless of whether the application is actually running on another
desktop or not. In other words, if you:

1. Launches client from desktop 1. 
2. Launches another instance from desktop 2, then quits that instance.
3. Launches another instance with "open foo.tlclient"

...then it will work correctly (client launches from desktop 2, even though the
only instance is running on desktop 1), since the last client was launched from
desktop 2. 

Also note that you can get the correct behaviour with "open -g", regardless of
which desktop was the last one.