Warning: THE VOID WIKI IS DEPRECATED. It is no longer being maintained, contains outdated and incorrect information, and will eventually be shut down. Please refer to the Void Handbook, https://docs.voidlinux.org/, for the official documentation. If you can't find the information you're seeking, please raise an issue at https://github.com/void-linux/void-docs/issues


From Void Linux Wiki
Jump to navigation Jump to search

Related articles

autox is a utility that sets up a specified user's environment and then launches the xinit application. This greatly simplifies the process of booting to X11.


Warning: There is currently an issue with autox which means it is not started under a login shell. This can cause issues, as the user's profile scripts are not run and environment variables such as the user's locale are not set. nodm should be used until this is fixed.

Install the autox package.

Create a conf file in /etc/sv/autox and supply the necessary variables:

 # tty7 is the default

Before enabling the service, make sure the user you specified has a .xinitrc that execs an application. For example:

 xset -dpms s off
 xsetroot -solid black
 xhost local:+
 export QT_XFT=1
 exec kodi

Finally, enable the runit service:

 ln -s /etc/sv/autox /var/service/