Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single Instance Lock: Launching second instance returns exit code 1 on Linux #3723

Open
rjakobs opened this issue Sep 3, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@rjakobs
Copy link

rjakobs commented Sep 3, 2024

Description

Linux only
If you launch the seconde instance from commandline you will get 1 as exit code.

To Reproduce

  1. Launch application as usual
  2. Launch second instance from commandline
  3. You will get Exit Code 1

Expected behaviour

Getting an exit code of 0

Screenshots

No response

Attempted Fixes

No response

System Details

# Wails
Version         | v2.9.1
Package Manager | apt   

# System
┌───────────────────────────────────────────────────────────────────────────────────────┐
| OS           | Ubuntu                                                                 |
| Version      | 22.04                                                                  |
| ID           | ubuntu                                                                 |
| Go Version   | go1.22.2                                                               |
| Platform     | linux                                                                  |
| Architecture | amd64                                                                  |
| CPU          | AMD Ryzen 5 5600H with Radeon Graphics                                 |
| GPU 1        | Cezanne (Advanced Micro Devices, Inc. [AMD/ATI]) - Driver: amdgpu      |
| GPU 2        | GA107M [GeForce RTX 3050 Mobile] (NVIDIA Corporation) - Driver: nvidia |
| Memory       | 31GB                                                                   |
└───────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌──────────────────────────────────────────────────────────────────────────┐
| Dependency | Package Name          | Status    | Version                 |
| *docker    | docker.io             | Installed | 27.2.0                  |
| gcc        | build-essential       | Installed | 11.4.0                  |
| libgtk-3   | libgtk-3-dev          | Installed | 3.24.33-1ubuntu2.2      |
| libwebkit  | libwebkit2gtk-4.0-dev | Installed | 2.44.2-0ubuntu0.22.04.1 |
| npm        | npm                   | Installed | 10.8.2                  |
| *nsis      | nsis                  | Installed | v3.08-2                 |
| pkg-config | pkg-config            | Installed | 0.29.2-1ubuntu3         |
└──────────────────────── * - Optional Dependency ─────────────────────────┘

# Diagnosis
 SUCCESS  Your system is ready for Wails development!

Additional context

Reason seams to be in


unlike in darwin/windows single_instance.go where it leads to os.Exit(0).

I don't know if it's by intention or really a bug.

@rjakobs rjakobs added the Bug Something isn't working label Sep 3, 2024
@rjakobs rjakobs changed the title Single Instance Lock returns exit code 1 on .ilnu Single Instance Lock returns exit code 1 on Linux Sep 3, 2024
@rjakobs rjakobs changed the title Single Instance Lock returns exit code 1 on Linux Single Instance Lock: Launching second instance returns exit code 1 on Linux Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant