drm: fix epic string parsing fail

This commit is contained in:
Vaxry 2024-07-07 23:19:00 +02:00
parent a473c5313d
commit dc1181a65e

View file

@ -131,7 +131,7 @@ static std::vector<SP<CSessionDevice>> scanGPUs(SP<CBackend> backend) {
auto explicitGpus = getenv("AQ_DRM_DEVICES"); auto explicitGpus = getenv("AQ_DRM_DEVICES");
if (explicitGpus) { if (explicitGpus) {
backend->log(AQ_LOG_DEBUG, std::format("drm: Explicit device list {}", explicitGpus)); backend->log(AQ_LOG_DEBUG, std::format("drm: Explicit device list {}", explicitGpus));
Hyprutils::String::CVarList explicitDevices(explicitGpus, ':', true); Hyprutils::String::CVarList explicitDevices(explicitGpus, 0, ':', true);
for (auto& d : explicitDevices) { for (auto& d : explicitDevices) {
bool found = false; bool found = false;