Skip to content

Commit ee8801b

Browse files
WM (Linux): fix wl-restart parsing (#1422)
Make the WM name in `wl-restart -n 5 Hyprland` parse as "Hyprland" instead of "-n".
1 parent bbe2396 commit ee8801b

File tree

1 file changed

+1
-1
lines changed
  • src/detection/displayserver/linux/wayland

1 file changed

+1
-1
lines changed

src/detection/displayserver/linux/wayland/wayland.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static bool waylandDetectWM(int fd, FFDisplayServerResult* result)
3939
filename = result->wmProcessName.chars;
4040

4141
if (ffStrEquals(filename, "wl-restart"))
42-
ffStrbufSubstrAfterFirstC(&result->wmProcessName, '\0');
42+
ffStrbufSubstrAfterLastC(&result->wmProcessName, '\0');
4343

4444
ffStrbufSubstrBeforeFirstC(&result->wmProcessName, '\0'); //Trim the arguments
4545
ffStrbufSubstrAfterLastC(&result->wmProcessName, '/'); //Trim the path

0 commit comments

Comments
 (0)