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

docs: message when the app terminates because another instance exists #5348

Merged
merged 2 commits into from Dec 21, 2023

Conversation

feloy
Copy link
Contributor

@feloy feloy commented Dec 21, 2023

Signed-off-by: Philippe Martin phmartin@redhat.com

What does this PR do?

This PR adds a message on the console before the app terminates when an instance already exists.

I needed a few hours to understand why my debug sessions were failing on Windows. I had installed a production version of Podman Desktop, and didn't realize it was running in the background, and prevented from starting other development sessions.

This message would help me or other people understand more easily the next time it happens.

Signed-off-by: Philippe Martin <phmartin@redhat.com>
@feloy feloy requested review from benoitf and a team as code owners December 21, 2023 08:05
@feloy feloy requested review from dgolovin and jeffmaury and removed request for a team December 21, 2023 08:05
Copy link
Contributor

@jeffmaury jeffmaury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -48,6 +48,7 @@ const additionalData: AdditionalData = {
// provide additional data to the second instance
const isSingleInstance = app.requestSingleInstanceLock(additionalData);
if (!isSingleInstance) {
console.log('An instance of Podman Desktop is already running. Stopping');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe console.warn ?

Signed-off-by: Philippe Martin <phmartin@redhat.com>
@feloy feloy merged commit c5201ba into containers:main Dec 21, 2023
8 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.7.0 milestone Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants