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)
- Linux Mint compatibility and support HOT 2
- Need to manually install files to /usr/share. battle.net install fails on winetricks arial install HOT 6
- Trying to save game preferences causes lutris to throw an exception and fail to save HOT 1
- Ubisoft connect, broken download window
- Ubisoft Connect does not display the correct icon.
- Provide a lutris-lang package on Opensuse Factory and game:tools repo.
- Lutris ubisoft game not working in gamemode on bazzite (steamos like) HOT 7
- Proton-TkG doesn't run with umu-launcher both in lutris and with only umu-launcher HOT 1
- Gamemode not starting on game launch HOT 1
- [Bug] Font: "italic" sometimes looks like "regular" HOT 5
- Problems with Ubisoft Connect HOT 7
- “Failed to retrieve wine (wine-ge-8-24-x86_64) information” when trying to run the Ubisoft Connect installer HOT 8
- GTAV (rockstar launcher) dornwload on data (5g) works on LAN (fiber)
- Lutris shows hidden games in Recents HOT 1
- Trying to install Battle net says FileNotFoundError(2, 'No such file or directory) HOT 1
- Can't configure game after wrong image HOT 4
- 'Unable to read the DOS Header, possibly a truncated file.' HOT 2
- The same issue: could not convert string to float HOT 1
- The Division 2 Launches but when pressing Continue screen goes black
- (Steam OS) I keep trying to connect my EA account to Lutris but it seems like it is broken. 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.