Skip to content

Commit f93341a

Browse files
committed
TerminalShell: fix terminal name detection on NixOS
oops. No one report that...
1 parent 3e0d97d commit f93341a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/detection/terminalshell/terminalshell_linux.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -361,13 +361,13 @@ const FFTerminalShellResult* ffDetectTerminalShell()
361361
ffStrbufInitS(&result.shellPrettyName, result.shellExeName);
362362
}
363363

364-
if(result.terminalExeName[0] == '.' && ffStrEndsWith(result.terminalExeName, "-wrapper"))
364+
if(result.terminalExeName[0] == '.' && ffStrEndsWith(result.terminalExeName, "-wrapped"))
365365
{
366366
// For NixOS. Ref: #510 and https://github.com/NixOS/nixpkgs/pull/249428
367367
// We use terminalProcessName when detecting version and font, overriding it for simplication
368368
ffStrbufSetNS(
369369
&result.terminalProcessName,
370-
(uint32_t) (strlen(result.terminalExeName) - strlen(".-wrapper")),
370+
(uint32_t) (strlen(result.terminalExeName) - strlen(".-wrapped")),
371371
result.terminalExeName + 1);
372372
}
373373

0 commit comments

Comments
 (0)