コード例 #1
0
ファイル: winesteam.py プロジェクト: Tom-Todd/lutris
def is_running():
    pid = system.get_pid('Steam.exe$')
    if pid:
        # If process is defunct, don't consider it as running
        process = Process(pid)
        return process.state != 'Z'
    return False
コード例 #2
0
ファイル: winesteam.py プロジェクト: dacp17/lutris
 def shutdown(self):
     """Shutdown Steam in a clean way."""
     pid = system.get_pid('Steam.exe$')
     if not pid:
         return
     p = subprocess.Popen(self.launch_args + ['-shutdown'],
                          env=self.get_env())
     p.wait()
コード例 #3
0
ファイル: winesteam.py プロジェクト: TingPing/lutris
def is_running():
    pid = system.get_pid('Steam.exe$')
    if pid:
        # If process is defunct, don't consider it as running
        process = Process(pid)
        return process.state != 'Z'
    else:
        return False
コード例 #4
0
ファイル: winesteam.py プロジェクト: nsteenv/lutris
def shutdown():
    """ Shutdown Steam in a clean way.
        TODO: Detect wine binary
    """
    pid = system.get_pid('Steam.exe')
    if not pid:
        return False
    cwd = system.get_cwd(pid)
    cmdline = system.get_command_line(pid)
    steam_exe = os.path.join(cwd, cmdline)
    logger.debug("Shutting winesteam: %s", steam_exe)
    system.execute(['wine', steam_exe, '-shutdown'])
コード例 #5
0
def shutdown():
    """ Shutdown Steam in a clean way.
        TODO: Detect wine binary
    """
    pid = system.get_pid('Steam.exe$')
    if not pid:
        return False
    cwd = system.get_cwd(pid)
    cmdline = system.get_command_line(pid)
    steam_exe = os.path.join(cwd, cmdline)
    logger.debug("Shutting winesteam: %s", steam_exe)
    system.execute(['wine', steam_exe, '-shutdown'])
コード例 #6
0
    def shutdown(self):
        """Shutdown Steam in a clean way."""
        pid = system.get_pid('Steam.exe$')
        if not pid:
            return False

        command = []
        command.append('WINEARCH=%s ' % self.wine_arch)
        command.append('WINEPREFIX="%s" ' % self.prefix_path)
        command += self.launch_args
        command.append('-shutdown')
        logger.debug("Shutting winesteam: %s", command)
        system.execute(' '.join(command), shell=True)
コード例 #7
0
ファイル: steam.py プロジェクト: dennisjj4/lutris
def is_running():
    """ Checks if Steam is running """
    return bool(system.get_pid('steam'))
コード例 #8
0
ファイル: steam.py プロジェクト: dennisjj4/lutris
def kill():
    """ Force quit Steam """
    system.kill_pid(system.get_pid('steam'))
コード例 #9
0
ファイル: steam.py プロジェクト: dacp17/lutris
def get_steam_pid():
    """Return pid of Steam process."""
    return system.get_pid('steam$')
コード例 #10
0
ファイル: steam.py プロジェクト: zsh-754207424/lutris
def get_steam_pid():
    """Return pid of Steam process."""
    return system.get_pid("steam$")
コード例 #11
0
ファイル: winesteam.py プロジェクト: sonicpp/lutris
def is_running():
    return bool(system.get_pid("Steam.exe$"))
コード例 #12
0
def is_running():
    return bool(system.get_pid("Steam.exe$"))
コード例 #13
0
def kill():
    """Force kills Steam"""
    system.kill_pid(system.get_pid("Steam.exe$"))
コード例 #14
0
def is_running():
    """Return whether Steam is running"""
    return bool(system.get_pid("Steam.exe$"))
コード例 #15
0
ファイル: steam.py プロジェクト: ERIIX/lutris
def get_steam_pid():
    """Return pid of Steam process"""
    return system.get_pid('steam$')
コード例 #16
0
def kill():
    system.kill_pid(system.get_pid('Steam.exe$'))
コード例 #17
0
def kill():
    system.kill_pid(system.get_pid("Steam.exe$"))
コード例 #18
0
ファイル: winesteam.py プロジェクト: sonicpp/lutris
def kill():
    system.kill_pid(system.get_pid("Steam.exe$"))
コード例 #19
0
ファイル: steam.py プロジェクト: ezeenova/lutris
def kill():
    """ Force quit Steam """
    system.kill_pid(system.get_pid('steam$'))
コード例 #20
0
ファイル: winesteam.py プロジェクト: nsteenv/lutris
def is_running():
    return bool(system.get_pid('Steam.exe'))
コード例 #21
0
ファイル: steam.py プロジェクト: ezeenova/lutris
def is_running():
    """ Checks if Steam is running """
    return bool(system.get_pid('steam$'))
コード例 #22
0
ファイル: winesteam.py プロジェクト: nsteenv/lutris
def kill():
    system.kill_pid(system.get_pid('Steam.exe'))
コード例 #23
0
ファイル: steam.py プロジェクト: regoecuaycong/lutris
def get_steam_pid():
    """Return pid of Steam process"""
    return system.get_pid("steam$")