New user directory skeleton
I managed today to get pmOS going in a QEMU instance and noticed that pmOS defaults to the normal Alpine behavior of not setting up a basic directory skeleton for user accounts. See user-oriented Linuxen (Ubuntu, Manjaro, Fedora, etc.) for examples.
Anyway, under plasma-mobile, several of the applications expected a (XDG?) default userdir skeleton and threw errors when those dirs were not discovered. Phosh didn't consider this a problem, but phosh had other issues (in QEMU.)
I'd like to suggest the following dirtree for new user accounts, including the first user:
/home/$USERNAME # eg: $HOME or ~/
/home/$USERNAME/Documents/
/home/$USERNAME/Downloads/
/home/$USERNAME/Music/ # or Audio or similar
/home/$USERNAME/Pictures/ # or Photos or similar
/home/$USERNAME/Videos/ # or Movies or similar
/home/$USERNAME/.config/
/home/$USERNAME/.local/
Also, I think the following environment variables could reasonably set, but I will make no argument about what they should be set to:
$EDITOR
$VISUAL
$XDG_CONFIG_HOME
$XDG_HOME
I didn't note which shell was running by default but a sensible starting config should also be created and populated into $HOME.
I believe most of this can be automagically done for you if all user accounts are created with useradd
or adduser
utilities (I forget which is which. Check the man pages?) commonly found in other, less bare-bones than Alpine, distros.
I totally understand why the basis on Alpine. But, also, the mighty Alpine must be tamed and taught new tricks to make a great user-experience oriented distribution.