mirror of
https://github.com/morluto/rea.git
synced 2026-11-12 17:59:08 +00:00
fix(setup): recognize inherited owned launcher
This commit is contained in:
1 parent
f2277454b8
commit
d2da713859
3 files changed
+128
-1
No files matched your search
@@ -705,7 +705,17 @@ const registrationOwnershipBlocker = (
|
||||
value: effective.servers[name],
|
||||
paths: client.configPaths ?? [client.configPath],
|
||||
});
|
||||
if (Object.hasOwn(parsed.servers, name))
|
||||
const fragment = parsed.servers[name];
|
||||
// A layered policy fragment inherits its launcher. Classify the effective
|
||||
// launcher above, but also admit any explicit command this write replaces.
|
||||
const inheritsLauncher =
|
||||
effective !== undefined &&
|
||||
effective !== parsed &&
|
||||
typeof fragment === "object" &&
|
||||
fragment !== null &&
|
||||
!Array.isArray(fragment) &&
|
||||
!Object.hasOwn(fragment, "command");
|
||||
if (Object.hasOwn(parsed.servers, name) && !inheritsLauncher)
|
||||
entries.push({ value: parsed.servers[name], paths: [client.configPath] });
|
||||
if (legacyClientServerPath(parsed, name) !== undefined) {
|
||||
entries.push({
|
||||
|
||||
Reference in new issue
Block a user