summaryrefslogtreecommitdiff
path: root/lua_scripts/pathmaps/emulate/00_default.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua_scripts/pathmaps/emulate/00_default.lua')
-rw-r--r--lua_scripts/pathmaps/emulate/00_default.lua13
1 files changed, 4 insertions, 9 deletions
diff --git a/lua_scripts/pathmaps/emulate/00_default.lua b/lua_scripts/pathmaps/emulate/00_default.lua
index 20fedb0..85211e3 100644
--- a/lua_scripts/pathmaps/emulate/00_default.lua
+++ b/lua_scripts/pathmaps/emulate/00_default.lua
@@ -3,11 +3,6 @@
sb1_compat_dir = sbox_target_root .. "/scratchbox1-compat"
-sb2_session_dir = os.getenv("SBOX_SESSION_DIR")
-if (not sb2_session_dir) then
- sb2_session_dir = "/tmp"
-end
-
mapall_chain = {
next_chain = nil,
binary = nil,
@@ -23,16 +18,16 @@ mapall_chain = {
map_to = sb1_compat_dir },
--
- {prefix = sb2_session_dir, use_orig_path = true},
- {prefix = "/tmp", map_to = sb2_session_dir},
+ {prefix = session_dir, use_orig_path = true},
+ {prefix = "/tmp", map_to = session_dir},
--
{prefix = "/dev", use_orig_path = true},
{prefix = "/proc", use_orig_path = true},
{prefix = "/sys", use_orig_path = true},
- {prefix = os.getenv("HOME") .. "/.scratchbox2",
+ {prefix = sbox_user_home_dir .. "/.scratchbox2",
use_orig_path = true},
- {prefix = os.getenv("SBOX_DIR") .. "/share/scratchbox2",
+ {prefix = sbox_dir .. "/share/scratchbox2",
use_orig_path = true},
{prefix = "/etc/resolv.conf", use_orig_path = true},