lockPathFor static method
Where the lock lives for appId: the session's runtime directory
where there is one, else the temp directory.
Implementation
static String lockPathFor(String appId) {
final String base =
Platform.environment['XDG_RUNTIME_DIR'] ?? Directory.systemTemp.path;
return '$base/dartvel-$appId.lock';
}