mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 00:20:05 +01:00
Properly look for run pid
This commit is contained in:
parent
c637b1fa7d
commit
aa30cf7e4b
|
|
@ -169,12 +169,15 @@ const Run: FC<ComponentProcessProps> = ({ id }) => {
|
|||
([processName]) =>
|
||||
processName.toLowerCase() ===
|
||||
(
|
||||
resourceAliasMap[resourcePath.toLowerCase()] || resourcePath
|
||||
resourceAliasMap[resourcePid.toLowerCase()] || resourcePid
|
||||
).toLowerCase()
|
||||
) || [];
|
||||
|
||||
if (pid) {
|
||||
open(pid);
|
||||
open(
|
||||
pid,
|
||||
resourcePath === resourcePid ? undefined : { url: resourcePath }
|
||||
);
|
||||
addRunHistoryEntry();
|
||||
} else if (utilCommandMap[resource.toLowerCase()]) {
|
||||
utilCommandMap[resource.toLowerCase()]();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user