Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • X xinit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 16
    • Issues 16
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorgxorg
  • app
  • xinit
  • Issues
  • #18
Closed
Open
Issue created Aug 26, 2020 by Geert Hendrickx@ghen

portability: use `uname -n` instead of `hostname`

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. Patch: startx-uname.diff

See also https://unix.stackexchange.com/questions/199698/uname-n-vs-hostname

Assignee
Assign to
Time tracking