[linux apps] fix hostname bind
This commit is contained in:
parent
d21b873327
commit
d58967237c
2 changed files with 7 additions and 4 deletions
|
|
@ -146,9 +146,6 @@ function buildBwrapArgs({
|
|||
...(urlOpener && urlOpener.shim ? ['--ro-bind', urlOpener.shim, urlOpener.target] : []),
|
||||
// hard profile: nothing of anybody's /home is even readable
|
||||
...(hideHome ? ['--tmpfs', '/home', '--tmpfs', '/root', '--tmpfs', '/mnt', '--tmpfs', '/media'] : []),
|
||||
// the app's own folder stays writable (portable apps keep logs/data next
|
||||
// to themselves); the rest of the read-only root does not
|
||||
...(appDir ? ['--bind', appDir, appDir] : []),
|
||||
// --- app data (host paths bound to a fresh HOME) ---
|
||||
'--bind', path.join(dataRoot, 'home'), home,
|
||||
'--bind', path.join(dataRoot, 'config'), xdgDir('.config'),
|
||||
|
|
@ -158,6 +155,11 @@ function buildBwrapArgs({
|
|||
// Wayland, PipeWire, PulseAudio and the session bus all live here
|
||||
...(runUser ? ['--bind', runUser, runUser] : []),
|
||||
...(etcRoot ? ['--bind', etcRoot, '/etc'] : []),
|
||||
// the app's own folder stays writable (portable apps keep logs/data next
|
||||
// to themselves). Last, because an imported app lives under the host's home
|
||||
// and the home bind above would otherwise mount over and hide it - bwrap
|
||||
// then fails with "execvp <app>: No such file or directory".
|
||||
...(appDir ? ['--bind', appDir, appDir] : []),
|
||||
// --- environment ---
|
||||
'--setenv', 'HOME', home,
|
||||
'--setenv', 'XDG_CONFIG_HOME', xdgDir('.config'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue