diff options
Diffstat (limited to 'zen/sys_info.cpp')
-rw-r--r-- | zen/sys_info.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zen/sys_info.cpp b/zen/sys_info.cpp index 54a5ecae..cc852510 100644 --- a/zen/sys_info.cpp +++ b/zen/sys_info.cpp @@ -185,6 +185,8 @@ Zstring getUserDir() //throw FileError return "/root"; else return "/home/" + loginUser; + + //safer? sudo --user $userName sh -c 'echo $HOME' } } |