package com.faforever.client.legacy;

import com.faforever.client.os.OsUtils;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;

import java.nio.file.Path;


@Lazy
@Service
@Profile({"unix", "mac"})
public class UnixUidService implements UidService {

  @Override
  public String generate(String sessionId, Path logFile) {
    String uidDir = System.getProperty("uid.dir", "lib");
    return OsUtils.execAndGetOutput(String.format("%s/uid %s", uidDir, sessionId));
  }
}

@@ -285,11 +285,12 @@
 e(%7B%22
-uni
+linu
 x%22, 

Fix UidService not loaded on linux