Set hostname according to full name
Solves #4. This code will set the hostname according the full name of the user. For example, if your name is "John Doe", the hostname will be set to "John's Computer [johns-computer]." The hostname is changed on the user creation screen when the 'next' button is pressed.
Example:
My code may not be great as I am not native in C, so feel free to make improvements as you see fit.
Edit: I basically copied the code responsible for setting the hostname in gnome-control-center and just re-adapted it to fit this codebase. "hostname-helper.c" and "hostname-helper.h" were copied directly from gnome-control-center.
Edited by mawi