Skip to content

Commit 1610282

Browse files
authored
[FIX] Kill epic game with appName pattern in Mac too (#4858)
1 parent 1c4d27d commit 1610282

File tree

1 file changed

+2
-7
lines changed
  • src/backend/storeManagers/legendary

1 file changed

+2
-7
lines changed

src/backend/storeManagers/legendary/games.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,7 @@ import { Path } from 'backend/schemas'
8181
import { mkdirSync } from 'fs'
8282
import { configStore } from 'backend/constants/key_value_stores'
8383
import { epicRedistPath, legendaryInstalled } from './constants'
84-
import {
85-
isCLINoGui,
86-
isLinux,
87-
isMac,
88-
isWindows
89-
} from 'backend/constants/environment'
84+
import { isCLINoGui, isMac, isWindows } from 'backend/constants/environment'
9085
import { fakeEpicExePath } from 'backend/constants/paths'
9186

9287
import type LogWriter from 'backend/logger/log_writer'
@@ -1049,7 +1044,7 @@ export async function stop(appName: string, stopWine = true) {
10491044
// not a perfect solution but it's the only choice for now
10501045

10511046
// @adityaruplaha: this is kinda arbitary and I don't understand it.
1052-
const pattern = isLinux ? appName : 'legendary'
1047+
const pattern = isWindows ? 'legendary' : appName
10531048
killPattern(pattern)
10541049

10551050
if (stopWine && !isNative(appName)) {

0 commit comments

Comments
 (0)