mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
first commit
This commit is contained in:
commit
f1bdec484e
165 changed files with 20993 additions and 0 deletions
12
src/main/helpers/ps.ts
Normal file
12
src/main/helpers/ps.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import psList from "ps-list";
|
||||
import { tasklist } from "tasklist";
|
||||
|
||||
export const getProcesses = async () => {
|
||||
if (process.platform === "win32") {
|
||||
return tasklist().then((tasks) =>
|
||||
tasks.map((task) => ({ ...task, name: task.imageName }))
|
||||
);
|
||||
}
|
||||
|
||||
return psList();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue