Apt package installation querying of dispatcher
[hcoop/domtool2.git] / src / main-client.sml
index c70dfb8..57500c5 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  *)
 
-(* Driver for server *)
+(* Driver for configuration requests *)
 
 fun domtoolRoot () =
     let
        val uid = Posix.ProcEnv.getuid ()
-       val home = Posix.SysDB.Passwd.home (Posix.SysDB.getpwuid uid)
+       val uname = Posix.SysDB.Passwd.name (Posix.SysDB.getpwuid uid)
+       val dname = OS.Path.joinDirFile {dir = Config.homeBase,
+                                        file = uname}
     in
-       OS.Path.joinDirFile {dir = home,
+       OS.Path.joinDirFile {dir = dname,
                             file = "domtool"}
     end