Skip to content

startx: use uname -n instead of hostname

Rickie Schroeder requested to merge (removed):patch-1 into master

startx calls hostname to obtain the hostname, but this is not defined by POSIX, so not guaranteed to work. The script already does some checks to deal with different hostname implementations on Linux.

Using uname -n instead fixes this in a portable way.

Fixes #18 (closed)

Merge request reports