fix(linux): use correct setap command in logs (#2400)

This commit is contained in:
ReenigneArcher 2024-04-10 18:12:03 -04:00 committed by GitHub
parent 7602fa110c
commit ad5b816261
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1675,7 +1675,7 @@ namespace platf {
if (!fb->handles[0]) {
BOOST_LOG(error) << "Couldn't get handle for DRM Framebuffer ["sv << plane->fb_id << "]: Probably not permitted"sv;
BOOST_LOG((window_system != window_system_e::X11 || config::video.capture == "kms") ? fatal : error)
<< "You must run [sudo setcap cap_sys_admin+p $(readlink -f sunshine)] for KMS display capture to work!"sv;
<< "You must run [sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine))] for KMS display capture to work!"sv;
break;
}