numixproject / numix-folders

Alternate folders for use with our base icon theme.
GNU General Public License v3.0
151 stars 26 forks source link

get real home directory #171

Closed morph027 closed 7 years ago

morph027 commented 7 years ago

We are running workstations with powerbroker active directory integration, where the home directory is somehing like /home/local/$DOMAIN_REALM/$USERNAME, so the scripted version throws errors due to nonexistent default home dirs.

palob commented 7 years ago

But the path is still $HOME, right?

morph027 commented 7 years ago

This happens for root (in scripted apt context), see #101

touch: cannot touch '/home//.config/numix-folders': No such file or directory
gtk-update-icon-cache: Cache file created successfully.
gtk-update-icon-cache: Cache file created successfully.
Folder change complete!
./numix-folders: line 321: /home//.config/numix-folders: No such file or directory
chown: cannot access '/home//.config/numix-folders': No such file or directory
morph027 commented 7 years ago

:heart: Thanks!

Output now is fine:

...
Unpacking numix-icon-theme-circle (2.0.3+14~201704051631~ubuntu16.04.1) over (2.0.3+13~201611240401~ubuntu16.04.1) ...
...
restoring Numix icons (Style: 6, Color: blue)
gtk-update-icon-cache: Cache file created successfully.
gtk-update-icon-cache: Cache file created successfully.
Folder change complete!