[UNTESTED] fix linux apps/prefix sync
This commit is contained in:
parent
be47433c32
commit
4680d7f014
6 changed files with 24 additions and 25 deletions
|
|
@ -46,12 +46,6 @@ function prefixLinuxRoot(name) {
|
|||
return path.join(prefixPath(name), LINUX_PFX)
|
||||
}
|
||||
|
||||
// Native Linux app data is machine-local (sockets, caches, machine-id, the
|
||||
// sandbox's home): a sync neither sends it nor deletes it as an extra.
|
||||
function isLocalOnlyRel(rel) {
|
||||
return String(rel || '').split('/').includes(LINUX_PFX)
|
||||
}
|
||||
|
||||
function prefixExists(name) {
|
||||
try {
|
||||
fs.accessSync(prefixPath(name))
|
||||
|
|
@ -188,4 +182,4 @@ function setDefaultPrefix(name) {
|
|||
return { ok: true }
|
||||
}
|
||||
|
||||
module.exports = { isPrefixRel, PREFIX_REL_RE, LINUX_PFX, isLocalOnlyRel, listPrefixes, savePrefixes, createPrefix, deletePrefix, renamePrefix, setDefaultPrefix, prefixPath, prefixLinuxRoot, prefixExists, prefixDriveRoots, isPrefixRoot, healPrefix, ensureUnifiedPrefix, MAIN }
|
||||
module.exports = { isPrefixRel, PREFIX_REL_RE, LINUX_PFX, listPrefixes, savePrefixes, createPrefix, deletePrefix, renamePrefix, setDefaultPrefix, prefixPath, prefixLinuxRoot, prefixExists, prefixDriveRoots, isPrefixRoot, healPrefix, ensureUnifiedPrefix, MAIN }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue