-
-
Notifications
You must be signed in to change notification settings - Fork 671
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
Sync issue: Implement single instance #38
Comments
yes, that's a though one. The installer opened from the web is another instance that the already running client. The installer would need to notify other instances of the new game with, for example, DBus. And I know nothing about DBus :/ |
And if you allow only one instance ? |
No. Not going to happen any time soon. |
I mean, it will eventually happen, but when it will, the DBus communication mechanism will be implemented, because I see it as a requirement in order to limit to one instance of the client |
Some info and code snippets for what you want to do : Otherwise, maybe we could do it the stupid way : create a file when running Lutris, if another instance is launched it checks if the file exists, writes its arguments in it and closes. The first instance then reads the file and treats the args. Like so :
|
Thanks for the link! Tried out the demo, works flawlessly. I originally thought that you had to register a DBus service as root, but it's not the case here. |
(Note that Gtk has this built in via GtkApplication as used in my PR) |
Argh. I'll let @strycore see what he wants to do with that. (Ehh, I suppose the advantage of not using GtkApplication is that it simplifies porting to another toolkit.) |
Games won't appear after installing from the web if Lutris was already running.
The text was updated successfully, but these errors were encountered: