Giter Club home page Giter Club logo

Comments (8)

mindstorm38 avatar mindstorm38 commented on June 9, 2024 1

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.

GoodDay360 avatar GoodDay360 commented on June 9, 2024 1

@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.

GoodDay360 avatar GoodDay360 commented on June 9, 2024

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.

mindstorm38 avatar mindstorm38 commented on June 9, 2024

How did you manage to run it before btw?

from portablemc.

GoodDay360 avatar GoodDay360 commented on June 9, 2024

@mindstorm38 I did manage to run it before because I didn't realized the UI is freezing when it start communicating().

from portablemc.

GoodDay360 avatar GoodDay360 commented on June 9, 2024

Anyway how abt Auto close console when the game launched? can u do it?

from portablemc.

mindstorm38 avatar mindstorm38 commented on June 9, 2024

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.

GoodDay360 avatar GoodDay360 commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.