Comments (8)
I will try today but this looks impossible since the Minecraft process is a child of the launcher, if the parent is killed the Minecraft process might be killed, anyway let's see.
from portablemc.
@mindstorm38 No it won't. If the launcher closed Minecraft won't close. Except if u run it in IDE. I use cmd to run PMC when I close the launcher it didn't close Minecraft. Anyway if you going to use a method that checks the javaw.exe process then close the launcher please don't use that method it will also include other things like Java IDE/Minecraft Launcher/.... Make it check the process that it's trying to run instead.
from portablemc.
And one more thing. I tried to use subprocess .communicate(). But it freezes the whole UI. I tried to use QThread or Threading and MultiProcess. But the subprocess .communicate() ain't working π. If possible is there any other way I can pass the password from my launcher to PMC, like convert string to a byte and pass it via Popoen in the start command line and in your PMC u decode that byte to strings back. That way no real password show? I already tried my bestπ΄.
from portablemc.
How did you manage to run it before btw?
from portablemc.
@mindstorm38 I did manage to run it before because I didn't realized the UI is freezing when it start communicating().
from portablemc.
Anyway how abt Auto close console when the game launched? can u do it?
from portablemc.
Have you tried with something like this?
import subprocess
class LauncherRunnable(QRunnable):
def __init__(self):
super().__init__()
def run(self):
subprocess.run(<args>)
QThreadPool.globalInstance().start(LauncherRunnable())
from portablemc.
The threading process for the me is working fine. But the problem is that when the user launches the game more than one time which it's leads to console spam. But it's alright I will try my best to add it into your source code myself, thanks.
from portablemc.
Related Issues (20)
- can someone help HOT 1
- Missing minecraft resource HOT 4
- DoesNotOwnMinecraftError within auth_session.refresh() HOT 2
- Support usage over ssh? HOT 6
- I need your opinion on potential rewrite in Rust (long-term decision) HOT 11
- Not launching - the code execution cannot proceed because jli.dll was not found. reinstalling the program may fix this problem. HOT 3
- Issue login with Microsoft auth HOT 33
- [feature] server start HOT 2
- Skin HOT 1
- Version for testing mod client startup? HOT 3
- error: unrecognized arguments: --work-dir fabric:1.20.1 HOT 2
- Unable to login with Microsoft's secondary alias email HOT 3
- unable to access forge versions HOT 5
- PortableMC failing to install forge HOT 2
- XML output stream parsing not properly detected when early errors happens
- Python Error: UnicodeEncodeError - Can't launch game as of 4/14 HOT 11
- Authlib-injector HOT 12
- Start a custom jar HOT 1
- minecraft not launching on termux HOT 1
- I'm aware of an issue with the website used for Microsoft authentication, this will be fixed in a few days hopefully
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 portablemc.