# Logic 2.0 Python Automation Gui pop-up connect/launch

**URL:** <https://discuss.saleae.com/t/logic-2-0-python-automation-gui-pop-up-connect-launch/2522>\
**Category:** Support\
**Created:** [November 3, 2023, 2:10pm UTC](https://discuss.saleae.com/t/logic-2-0-python-automation-gui-pop-up-connect-launch/2522 "2023-11-03T14:10:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![khulan.bayarsaikhan](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@khulan.bayarsaikhan](https://discuss.saleae.com/u/khulan.bayarsaikhan)\
**Post date:** [November 3, 2023, 2:10pm UTC](https://discuss.saleae.com/t/logic-2-0-python-automation-gui-pop-up-connect-launch/2522/1 "2023-11-03T14:10:35Z")

</div>

Hello,

I am integrating to my setup Saleae basic 8 and Logic 2.4.10.  
First of all, when I call manager.connect, GUI pop-up and close back. Is there a way to supress the gui pop-up?  
I thought maybe manager.launch() as in the example code, would connect without GUI, however If I call it when GUI is closed, I get some error below. If I open the GUI first and execute, it works

grpc.\_channel.\_InactiveRpcError: \<\_InactiveRpcError of RPC that terminated with:  
status = StatusCode.UNAVAILABLE  
details = “failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:10430: Connection refused”  
debug\_error\_string = “UNKNOWN:failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:10430: Connection refused {created\_time:“2023-11-03T13:46:47.2443136+00:00”, grpc\_status:14}”

So what is the difference between connect and launch APIs?

Best regards  
Khulan

---

<div class="post-metadata">

**Author:** ![huffman](https://avatars.discourse-cdn.com/v4/letter/h/71e660/32.png) [@huffman](https://discuss.saleae.com/u/huffman)\
**Post date:** [November 3, 2023, 3:07pm UTC](https://discuss.saleae.com/t/logic-2-0-python-automation-gui-pop-up-connect-launch/2522/2 "2023-11-03T15:07:03Z")

</div>

Hi @khulan.bayarsaikhan ,

We do not currently support running automation without the GUI. This is something we want to support, but we are not currently working on it.

`launch()` will start the Logic 2 process and close it when the manager is destroyed.  
`connect()` will not launch Logic 2, and connects to an already-running instance.

Hope that clarifies things!

Ryan

---

<div class="post-metadata">

**Author:** ![khulan.bayarsaikhan](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@khulan.bayarsaikhan](https://discuss.saleae.com/u/khulan.bayarsaikhan)\
**Post date:** [November 6, 2023, 1:39pm UTC](https://discuss.saleae.com/t/logic-2-0-python-automation-gui-pop-up-connect-launch/2522/3 "2023-11-06T13:39:42Z")

</div>

Hi Ryan,

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![mao](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@mao](https://discuss.saleae.com/u/mao)\
**Post date:** [June 7, 2024, 8:36am UTC](https://discuss.saleae.com/t/logic-2-0-python-automation-gui-pop-up-connect-launch/2522/4 "2024-06-07T08:36:00Z")

</div>

A little late reply, but a small tip to anyone doing similar.  
I just start my python script with this

```auto
def main():
    # Just ensure logic is not already running. and brutally kill it.
    os.system("taskkill.exe /F /IM logic.exe /T")

```

Then I use `Manager.launch` to start logic.

NB: I am running on windows, but you can do similar with the `killall` command on Linux.

---

<div class="post-metadata">

**Author:** ![atakahashi](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@atakahashi](https://discuss.saleae.com/u/atakahashi)\
**Post date:** [May 8, 2025, 4:59pm UTC](https://discuss.saleae.com/t/logic-2-0-python-automation-gui-pop-up-connect-launch/2522/5 "2025-05-08T16:59:33Z")

</div>

Has there been any progress on this on the saleae end? We are finding that Manager.launch isn’t working when run from our CICD environment but does work on our local tests.

---

<div class="post-metadata">

**Author:** ![timreyes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/timreyes/32/108_2.png) [@timreyes](https://discuss.saleae.com/u/timreyes)\
**Post date:** [May 9, 2025, 4:49pm UTC](https://discuss.saleae.com/t/logic-2-0-python-automation-gui-pop-up-connect-launch/2522/6 "2025-05-09T16:49:29Z")

</div>

@atakahashi At the moment, our Automation API still requires the GUI to be running.

I added a comment for you to the feature request post below so we can track your need for this:

> **[Automation API without GUI - Logic 2 - Ideas and Feature Requests - Saleae](https://ideas.saleae.com/b/feature-requests/automation-api-without-gui/)**
>
> It would be great if we can use the Automation API without GUI.

In case it helps, we’ve found some success with running the Logic 2 software in a headless environment on Ubuntu. More information on this can be found below.

> **[Getting Started — Saleae 1.0.6 documentation](https://saleae.github.io/logic2-automation/getting_started.html#headless-on-linux)**

---

<div class="post-metadata">

**Author:** ![francesco.guidolin](https://avatars.discourse-cdn.com/v4/letter/f/3e96dc/32.png) [@francesco.guidolin](https://discuss.saleae.com/u/francesco.guidolin)\
**Post date:** [February 19, 2026, 5:05pm UTC](https://discuss.saleae.com/t/logic-2-0-python-automation-gui-pop-up-connect-launch/2522/7 "2026-02-19T17:05:59Z")

</div>

Hi, is there any update on this topic? Is the --disable-gpu option intended to work in a headless environment? Thank you

---

<div class="post-metadata">

**Author:** ![timreyes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/timreyes/32/108_2.png) [@timreyes](https://discuss.saleae.com/u/timreyes)\
**Post date:** [February 20, 2026, 10:25pm UTC](https://discuss.saleae.com/t/logic-2-0-python-automation-gui-pop-up-connect-launch/2522/8 "2026-02-20T22:25:34Z")

</div>

@francesco.guidolin Thanks for checking in on this!

The --disable-gpu command line argument when launching our software was provided as a workaround for when the software (with GUI) fails to launch (more info on that below).

> **[hashtag4. Launch the app with --disable-gpu or --in-process-gpu - The Software...](https://support.saleae.com/getting-help/troubleshooting/fails-to-launch#id-4.-launch-the-app-with-disable-gpu-or-in-process-gpu)**
>
> Upon launching the Logic 2 software, you may experience the following:

Since my previous message on this forum thread, we haven’t made any updates to our Linux headless suggestions via XVFB below.

> **[Headless on Linux - Getting Started — Saleae 1.0.6 documentation](https://saleae.github.io/logic2-automation/getting_started.html#headless-on-linux)**
>
> To get started, you will need the latest build of the Logic 2 Software (2.4.0+), the logic2-automation (1.0.0+) python package, and Python 3.8, 3.9, or 3.10.
