This repository was archived by the owner on Jul 10, 2024. It is now read-only.
This repository was archived by the owner on Jul 10, 2024. It is now read-only.
Error with bash and user without home-directory #72
Open
Description
If you start the script with an user without a home directory e.g. apache an error occur:
File "/usr/local/lib/python3.5/dist-packages/samsungctl/__main__.py", line 97, in main
config = _read_config()
File "/usr/local/lib/python3.5/dist-packages/samsungctl/__main__.py", line 31, in _read_config
directories.append(os.path.join(os.getenv("HOME"), ".config"))
File "/usr/lib/python3.5/posixpath.py", line 89, in join
genericpath._check_arg_types('join', a, *p)
File "/usr/lib/python3.5/genericpath.py", line 143, in _check_arg_types
(funcname, s.__class__.__name__)) from None
A fix is maybe add a argument --noconf
and a real fix would be check if the user has a home directory
Metadata
Metadata
Assignees
Labels
No labels