Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • X xinit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 17
    • Issues 17
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorg
  • app
  • xinit
  • Issues
  • #18

Closed
Open
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