Comments (8)
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 :/
from lutris.
And if you allow only one instance ?
from lutris.
No. Not going to happen any time soon.
from lutris.
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
from lutris.
Some info and code snippets for what you want to do :
http://lethalman.blogspot.fr/2008/11/single-app-instances-python-and-dbus.html
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 :
if File exists:
write args into File
end process
else
create empty File
on_check_File_size_frequently {
if File.size > 0
process args
else
return
}
on_exit {
remove File
}
from lutris.
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.
Makes me want to have a deeper look into Dbus, we may have this for Lutris 0.3.5 ;)
from lutris.
(Note that Gtk has this built in via GtkApplication as used in my PR)
from lutris.
Argh.
Well, Google, you did a bad job this time.
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.)
from lutris.
Related Issues (20)
- Missing 'ulwgl-run' dependency HOT 1
- Stuck on "installing game data" HOT 7
- Feature: uninstall Steam game through Lutris
- Yakuza 4 Crash issue
- [Feature Request] "Uncategorized" category HOT 12
- Z: is created even with Wine folder sandboxing enabled HOT 4
- Unable to edit or remove games using deprecated runners HOT 2
- Lutris not seeing my GPU (again) HOT 1
- League of Legends BUG HOT 3
- [Feature Request] Coherent size of all games from all sources HOT 1
- unable to launch lutris on endeavouros (arch linux) HOT 2
- CLI command to update runners and runtimes
- Putting package-management options in a single place (unified interface)
- lutris for Ubuntu 20.04 HOT 4
- Don't block startup when offline HOT 7
- [Feature Request] Mass import ROM options
- Some games crashes at start, with Error code 256 HOT 1
- Feature Request: Add Vita3K runner support
- Error while starting games HOT 2
- XVidMode option not found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lutris.