def get_pids(self, wine_path=None): """Return a list of pids of processes using the current wine exe.""" if wine_path: exe = wine_path else: exe = self.get_executable() if not exe.startswith('/'): exe = system.find_executable(exe) pids = system.get_pids_using_file(exe) if self.wine_arch == 'win64' and os.path.basename(exe) == 'wine': wine64 = exe + '64' pids_64 = system.get_pids_using_file(wine64) pids = pids | pids_64 return pids
def get_pids(self, wine_path=None): """Return a list of pids of processes using the current wine exe.""" if wine_path: exe = wine_path else: exe = self.get_executable() if not exe.startswith('/'): exe = system.find_executable(exe) pids = system.get_pids_using_file(exe) if self.wine_arch == 'win64': wine64 = exe + '64' pids_64 = system.get_pids_using_file(wine64) pids = pids | pids_64 return pids
def get_pids(self, wine_path=None): """Return a list of pids of processes using the current wine exe.""" exe = wine_path if wine_path else self.get_executable() if not exe.startswith("/"): exe = system.find_executable(exe) pids = system.get_pids_using_file(exe) if self.wine_arch == "win64" and os.path.basename(exe) == "wine": pids = pids | system.get_pids_using_file(exe + "64") # Add wineserver PIDs to the mix (at least one occurence of fuser not # picking the games's PID from wine/wine64 but from wineserver for some # unknown reason. pids = pids | system.get_pids_using_file( os.path.join(os.path.dirname(exe), "wineserver")) return pids
def get_pids(self, wine_path=None): """Return a list of pids of processes using the current wine exe.""" if wine_path: exe = wine_path else: exe = self.get_executable() if not exe.startswith("/"): exe = system.find_executable(exe) pids = system.get_pids_using_file(exe) if self.wine_arch == "win64" and os.path.basename(exe) == "wine": pids = pids | system.get_pids_using_file(exe + "64") # Add wineserver PIDs to the mix (at least one occurence of fuser not # picking the games's PID from wine/wine64 but from wineserver for some # unknown reason. pids = pids | system.get_pids_using_file( os.path.join(os.path.dirname(exe), "wineserver") ) return pids
def get_pids(self): """Return a list of pids of processes using the current wine exe""" exe = self.get_executable() if not exe.startswith('/'): exe = system.find_executable(exe) return system.get_pids_using_file(exe)