Open MertGunduz opened 11 months ago
pw
. See https://github.com/nomadbsd/nomadbsd-adduser-gui/blob/4e6e52d1c1d32e2514c79c8fdbf7ecfe5ea1b803/nomadbsd-adduser#L266nomad
with the new username in each file. See https://github.com/nomadbsd/nomadbsd-adduser-gui/blob/4e6e52d1c1d32e2514c79c8fdbf7ecfe5ea1b803/nomadbsd-adduser#L529xdg-settings
and xdg-mime
. Create a plank launcher for each (https://github.com/nomadbsd/nomadbsd-adduser-gui/blob/4e6e52d1c1d32e2514c79c8fdbf7ecfe5ea1b803/nomadbsd-adduser#L424), and replace the placeholders EDITOR
, FILEMANAGER
, and EMAILCLIENT
with the corresponding desktop file names in the user's .config/mimeapps.list
. See https://github.com/nomadbsd/nomadbsd-adduser-gui/blob/4e6e52d1c1d32e2514c79c8fdbf7ecfe5ea1b803/nomadbsd-adduser#L399 and https://github.com/nomadbsd/nomadbsd-adduser-gui/blob/4e6e52d1c1d32e2514c79c8fdbf7ecfe5ea1b803/nomadbsd-adduser#L447.login.conf
, and .xinitrc
. See https://github.com/nomadbsd/nomadbsd-adduser-gui/blob/4e6e52d1c1d32e2514c79c8fdbf7ecfe5ea1b803/nomadbsd-adduser#L404.config/ibus.ini
. See https://github.com/nomadbsd/nomadbsd-adduser-gui/blob/4e6e52d1c1d32e2514c79c8fdbf7ecfe5ea1b803/nomadbsd-adduser#L357
- Let root enter the username, full name, the password, and the shell for the new user.
- Let root select the locale for the new user. Set the locale by putting the new user in the corresponding login class.
- Add the new user via
pw
. See https://github.com/nomadbsd/nomadbsd-adduser-gui/blob/4e6e52d1c1d32e2514c79c8fdbf7ecfe5ea1b803/nomadbsd-adduser#L266- Extract the template/dot files into the new user's home directory, and replace the username
nomad
with the new username in each file. See https://github.com/nomadbsd/nomadbsd-adduser-gui/blob/4e6e52d1c1d32e2514c79c8fdbf7ecfe5ea1b803/nomadbsd-adduser#L529- Let root choose the default browser, file manager and mail client for the new user. Set the defaults with
xdg-settings
andxdg-mime
. Create a plank launcher for each (https://github.com/nomadbsd/nomadbsd-adduser-gui/blob/4e6e52d1c1d32e2514c79c8fdbf7ecfe5ea1b803/nomadbsd-adduser#L424), and replace the placeholdersEDITOR
,FILEMANAGER
, andEMAILCLIENT
with the corresponding desktop file names in the user's.config/mimeapps.list
. See https://github.com/nomadbsd/nomadbsd-adduser-gui/blob/4e6e52d1c1d32e2514c79c8fdbf7ecfe5ea1b803/nomadbsd-adduser#L399 and https://github.com/nomadbsd/nomadbsd-adduser-gui/blob/4e6e52d1c1d32e2514c79c8fdbf7ecfe5ea1b803/nomadbsd-adduser#L447- Let root select the default editor for the new user. Set it via the user's
.login.conf
, and.xinitrc
. See https://github.com/nomadbsd/nomadbsd-adduser-gui/blob/4e6e52d1c1d32e2514c79c8fdbf7ecfe5ea1b803/nomadbsd-adduser#L404- Let root choose the keyboard layout and variants. Set them by making entries in the user's
.config/ibus.ini
. See https://github.com/nomadbsd/nomadbsd-adduser-gui/blob/4e6e52d1c1d32e2514c79c8fdbf7ecfe5ea1b803/nomadbsd-adduser#L357
Thanks @mrclksr :-)
Will start to the development this wednesday, looks great. Thanks for the detailed feedback! 🚀
Hello @mrclksr,
I was trying to check how does that work but I couldn't find any and tried to read the PERL code in the GUI but I couldn't.
And since there is no documentation it is really hard to read the code and understand it, could you tell me which specific steps does it take when we use adduser in the system?
Thanks a lot, Mehmet Mert