2017-12-01 14:14:54 -06:00
|
|
|
sx <https://github.com/Earnestly/sx>
|
|
|
|
|
|
|
|
INTRODUCTION
|
|
|
|
|
2017-12-07 06:03:43 -06:00
|
|
|
sx is a simple alternative to both xinit(1) and startx(1) for starting
|
|
|
|
an Xorg server.
|
2017-12-01 14:14:54 -06:00
|
|
|
|
|
|
|
It started life as a proof of concept while attempting to learn how both
|
2021-07-04 09:08:20 -05:00
|
|
|
xinit and startx worked while taking up the offer presented in startx:
|
|
|
|
|
|
|
|
> Site administrators are STRONGLY urged to write nicer versions.
|
2017-12-01 14:14:54 -06:00
|
|
|
|
|
|
|
It is not a direct replacement however as it provides a different, more
|
|
|
|
limited, interface.
|
|
|
|
|
2017-12-11 10:47:46 -06:00
|
|
|
Some of these major differences are listed here:
|
2017-12-01 14:14:54 -06:00
|
|
|
|
2018-08-04 09:57:01 -05:00
|
|
|
* The server's command-line is hard coded and not exposed to the user.
|
2017-12-09 17:34:20 -06:00
|
|
|
* The server doesn't listen on anything except unix domain sockets.
|
2018-08-04 09:34:29 -05:00
|
|
|
* The server starts on the same tty the user logged in on.
|
2018-08-04 09:57:01 -05:00
|
|
|
* The first DISPLAY is 1 instead of 0 contrary to what X(7) suggests
|
|
|
|
as it is coupled to the tty number.
|
2017-12-01 14:14:54 -06:00
|
|
|
* xauth entries are overwritten if the displayname is identical.
|
2018-08-04 09:57:01 -05:00
|
|
|
* Corresponding xauth entries are unconditionally removed when the
|
|
|
|
server exits.
|
2017-12-11 10:47:46 -06:00
|
|
|
* The server uses the -noreset flag.
|
2018-08-04 09:57:01 -05:00
|
|
|
* While XAUTHORITY is still honoured, $XDG_DATA_HOME/sx/xauthfile is
|
|
|
|
used by default instead of $HOME/.Xauthority
|
|
|
|
* Very little proxy error checking is used preferring instead to let
|
|
|
|
each tool speak for itself.
|
2017-12-01 14:14:54 -06:00
|
|
|
* None of the typical /etc/X11/xinit infrastructure is directly used.
|
|
|
|
* Neither XINITRC is honoured nor .xinitrc used.
|
|
|
|
* The XDG_CONFIG_HOME/sx/sxrc file is used instead of .xinitrc and is
|
|
|
|
required to be executable.
|
|
|
|
|
2021-07-04 09:08:20 -05:00
|
|
|
For a rationale on why this exists the author invites the reader to
|
2018-08-04 09:57:01 -05:00
|
|
|
look over the source code for both xinit and startx.
|
2017-12-01 14:14:54 -06:00
|
|
|
|
|
|
|
REQUIRES
|
|
|
|
|
2017-12-07 05:58:40 -06:00
|
|
|
* Xorg
|
|
|
|
* xauth
|
2017-12-07 07:06:46 -06:00
|
|
|
* /dev/urandom
|
2017-12-01 14:14:54 -06:00
|
|
|
|
2017-12-07 05:58:40 -06:00
|
|
|
INSTALL
|
2017-12-01 14:14:54 -06:00
|
|
|
|
2021-07-04 09:08:20 -05:00
|
|
|
make PREFIX=/usr install
|