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

Window launches multiple times (and does not close on lost focus) #4

Open
Tethik opened this issue Aug 6, 2021 · 1 comment
Open
Labels
bug Something isn't working

Comments

@Tethik
Copy link
Owner

Tethik commented Aug 6, 2021

I press my launch-key combination multiple times, for each time I do launchy will start. The application should ideally be a bit smarter and not open new windows when one is already open.

@Tethik
Copy link
Owner Author

Tethik commented Apr 13, 2022

One way I found other apps do this is by opening a unix socket in a tmp directory. The launching process can then inform the already existing process of the URL/directory that the new process wants to open.

Chromium example:
https://github.com/ChromiumWebApps/chromium/blob/master/chrome/browser/process_singleton_linux.cc

@Tethik Tethik added the bug Something isn't working label Nov 6, 2022
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