开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

gatewaystart.sh is opening two gateway windows


 

A little bit of background, my instance of IBC is installed on virtual machine which automatically opens an tmux session which has an env session ran within it.?
?
The reason I am doing this is because I want IBC ?to run in the background void of any windows on my local computer.?
?
I tried to run the gatewaystart.sh file on its own via ./gatewaystart.sh within this environment and still got two windows, indicating that the issue lies within this file.?
The second window only opens after I finish the dual authentication on my phone after successfully logging in. This leaves me with an operational instance and one which is simply on the login screen. I am unsure what to do.?
?
Any insight or potential solutions is much appreciated .
?
P.S Apologies for the briefness of my last post. I attempted to elaborate here as much as I can.?


 

开云体育

I can absolutely guarantee that there is no way that gatewaystart.sh would start two instances of Gateway, and you haven’t provided any evidence or illustrations of what you mean.

?

So please do this:

?

  1. Make sure there are no instances Gateway running.
  2. Run gatewaystart.sh again.
  3. Attach the IBC logfile to your reply (don’t just paste the text into your message, an attached file is much easier to work with).
  4. Perhaps attach a screenshot as well to show what you mean.

?

Richard


 

Dear Mr.King,?

I appreciate the timely response! I will attach the log results along with a screenshot of my local computer after completing the dual authentication, you can see the second window it opens behind it. Any insight is much appreciated, thank you!
?
P.S For some reason the screenshot looks different than the actual screen, the window was black as per usual. Nothing wrong visually on my end...
?
?


 

Maybe the issue lies with auto restart file not found. I do not have an explicit auto restart file. However, I do have restart.sh if that makes sense...
?
I appreciate anytime spent aiding me! Thank you.


 

开云体育

If you bring that other window forward, I think you’ll see that it’s just the Gateway login dialog. For some reason, Gateway doesn’t always close this window when login is complete.

?

So just ignore it – it doesn’t do any harm (but don’t try to close it, that will end Gateway).

?

By the way, the message about autorestart file not being found is not an error. It’s just a statement of fact. And the restart.sh script is for use if you need to restart Gateway without having to do a full 2FA.

?

Richard


 

You are right, that's what it is. Is there no way to get rid of the additional window?


 

开云体育

If I tried hard enough, I could probably get IBC to minimise it or hide it, but I’m not inclined to make the effort, and I don’t like trying to make Gateway or TWS do things it doesn’t want to do itself.

?

Just live with it!

?


 

One might ask themselves why you're even on this forum to begin with... Thanks?


 

开云体育

Because I’m the developer of IBC.

?

Is there some problem with this?

?

?

From: [email protected] <[email protected]> On Behalf Of algora.official.software via groups.io
Sent: 14 January 2025 23:04
To: [email protected]
Subject: Re: [ibc] gatewaystart.sh is opening two gateway windows

?

One might ask themselves why you're even on this forum to begin with... Thanks?


 

I just feel like the notion of helping was fix the bug was missed..


 

you know what I mean(**


 

Well this has truly been the worlds most useless interaction. I will try to fix this problem later today.?


 

开云体育

Sorry for the delay in replying. I have more important things to do than waste my time on such trivia.

?

Let me tell you something that you’re presumably unaware of. If I run Gateway on Ubuntu without using IBC, and login in the normal way by manually entering username and password, that login dialog remains on view exactly as in your screenshot. In other words, this is nothing whatever to do with IBC. (On windows, Gateway does close the dialog.)

?

So I can’t see why you appear to think I should make IBC ‘fix’ it. As I said, it might be possible to put some code in IBC that hides the window (after all, Java provides plenty of means of manipulating dialogs): but even if it only involves adding one line of code somewhere it’s a non-trivial exercise to undertake. Besides, the purpose of IBC is not to fix IBKR’s bugs, and in general it doesn’t interfere in Gateway/TWS’s operation in any way other than what a user can do.

?

If you can provide some justification for why the window remaining visible is a problem, rather than just a fact of life, then I might consider looking at it further, but I can’t see that it is.

?

So please don’t try to insinuate that I’m unhelpful: I find that very offensive.

?

Richard

?


 

Hello Richard!

Don't waste your time and emotions with such people who can't understand that you work in your spare time on IBC.
We all appreciate your kindness and helpfulness when we struggle somehow with IBC/TWS/Gateway.

Thank you very much for developing IBC so that we can use TWS/Gateway in an automated way and run our strategies.

BR,
?? Jasmin, Austria


Am 15. Januar 2025 20:07:02 GMT+07:00 schrieb Richard L King <rlking@...>:
>Sorry for the delay in replying. I have more important things to do than waste my time on such trivia.
>
>
>
>Let me tell you something that you’re presumably unaware of. If I run Gateway on Ubuntu without using IBC, and login in the normal way by manually entering username and password, that login dialog remains on view exactly as in your screenshot. In other words, this is nothing whatever to do with IBC. (On windows, Gateway does close the dialog.)
>
>
>
>So I can’t see why you appear to think I should make IBC ‘fix’ it. As I said, it might be possible to put some code in IBC that hides the window (after all, Java provides plenty of means of manipulating dialogs): but even if it only involves adding one line of code somewhere it’s a non-trivial exercise to undertake. Besides, the purpose of IBC is not to fix IBKR’s bugs, and in general it doesn’t interfere in Gateway/TWS’s operation in any way other than what a user can do.
>
>
>
>If you can provide some justification for why the window remaining visible is a problem, rather than just a fact of life, then I might consider looking at it further, but I can’t see that it is.
>
>
>
>So please don’t try to insinuate that I’m unhelpful: I find that very offensive.
>
>
>
>Richard
>
>
>
>
>
>
>
>

--
Diese Nachricht wurde von meinem Android-Ger?t mit K-9 Mail gesendet.


 


On 15 January 2025 1:31:27?pm "Jasmin J." <jasmin@...> wrote:

Hello Richard!

Don't waste your time and emotions with such people who can't understand that you work in your spare time on IBC.
We all appreciate your kindness and helpfulness when we struggle somehow with IBC/TWS/Gateway.

Thank you very much for developing IBC so that we can use TWS/Gateway in an automated way and run our strategies.

BR,
?? Jasmin, Austria


Am 15. Januar 2025 20:07:02 GMT+07:00 schrieb Richard L King <rlking@...>:
>Sorry for the delay in replying. I have more important things to do than waste my time on such trivia.
>
>
>
>Let me tell you something that you’re presumably unaware of. If I run Gateway on Ubuntu without using IBC, and login in the normal way by manually entering username and password, that login dialog remains on view exactly as in your screenshot. In other words, this is nothing whatever to do with IBC. (On windows, Gateway does close the dialog.)
>
>
>
>So I can’t see why you appear to think I should make IBC ‘fix’ it. As I said, it might be possible to put some code in IBC that hides the window (after all, Java provides plenty of means of manipulating dialogs): but even if it only involves adding one line of code somewhere it’s a non-trivial exercise to undertake. Besides, the purpose of IBC is not to fix IBKR’s bugs, and in general it doesn’t interfere in Gateway/TWS’s operation in any way other than what a user can do.
>
>
>
>If you can provide some justification for why the window remaining visible is a problem, rather than just a fact of life, then I might consider looking at it further, but I can’t see that it is.
>
>
>
>So please don’t try to insinuate that I’m unhelpful: I find that very offensive.
>
>
>
>Richard
>
>
>
>
>
>
>
>

--
Diese Nachricht wurde von meinem Android-Ger?t mit K-9 Mail gesendet.


 

"If I tried hard enough, I could probably get IBC to minimise it or hide it, but I’m not inclined to make the effort" is wildly misleading! My apologies.?
?
Didn't need the third reich to pitch in.?


 

Algora whoever, I didn't want to butt in and be impolite, but I feel I must. I have found Richard to be one of the most helpful people around building and fixing software for free, sometimes for ingrates like you.? A more pertinent question is what are you doing on forums like these?


 

Asking questions silly goose.?


 

开云体育

Ok, I think we can call a halt to this thread now. No need for any further input, from either side.

?

Thanks for kind comments.

?

Richard

?