diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-08-20 19:49:48 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-08-20 19:49:48 (EDT) |
commit | d22760489c891b6e00b3f40e28ad33fba62de679 (patch) | |
tree | cad5946ba6706010520004bf128276d954b65276 /hosts/alsvid3 | |
parent | 1f256a2394ca13741d8bf18931b11229b3aee4be (diff) | |
download | pc-inst-d22760489c891b6e00b3f40e28ad33fba62de679.zip pc-inst-d22760489c891b6e00b3f40e28ad33fba62de679.tar.gz pc-inst-d22760489c891b6e00b3f40e28ad33fba62de679.tar.bz2 |
alsvid3: Make XDG dirs more simply and portably
Diffstat (limited to 'hosts/alsvid3')
-rw-r--r-- | hosts/alsvid3/postinst | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hosts/alsvid3/postinst b/hosts/alsvid3/postinst index 644afac..6bee149 100644 --- a/hosts/alsvid3/postinst +++ b/hosts/alsvid3/postinst @@ -158,9 +158,7 @@ in_target sudo -u pj /home/pj/bin/dfen claws-mail clipit fluxbox gpicview gimp \ # Create XDG directories. sed 's/#.*$//; /^$/d;' "${target}/home/pj/.config/user-dirs.dirs" | \ while IFS='=' read var val; do - HOME='/home/pj' - eval "mkdir '${target}/'${val}" - eval "chown pj:pj '${target}/'${val}" + in_target sudo -u pj sh -c "HOME='/home/pj'; mkdir \"${val}\"" done # Add empty folder list to prevent Claws Mail wizard from running. |