Difference between revisions of "Talk:Start X at login"

From ArchWiki
Jump to navigation Jump to search
(zsh response)
Line 8: Line 8:
  
 
The example .bash_profile code doesn't work with .zsh though the article says that it would. --[[User:Samebchase|Samebchase]], 8 Aug 2011
 
The example .bash_profile code doesn't work with .zsh though the article says that it would. --[[User:Samebchase|Samebchase]], 8 Aug 2011
 +
 +
This works fine for me in zprofile:
 +
 +
<pre>
 +
if [[ -z $DISPLAY && $(tty) = /dev/tty2 ]]; then
 +
    exec xinit ~/.config/xinitrc -- /usr/bin/X -nolisten tcp vt07 &>/dev/null
 +
fi
 +
</pre>
 +
 +
[[User:Thestinger|thestinger]] 23:11, 8 August 2011 (EDT)

Revision as of 03:11, 9 August 2011

The section on using Template:Filename, the note about not getting the right privileges and session recording. If the .xinitrc for PREFERRED_USER has a line like Template:File then everything RE reboot should be okay? --VitaminJ 10:17, 6 February 2011 (EST)


exec xinit -- /usr/bin/X -nolisten tcp vt7

The vt7 part always starts X on tty7, thus providing a consistent experience. Gdm does this by default too. --Wooptoo 16:05, 30 March 2011 (EDT)

The example .bash_profile code doesn't work with .zsh though the article says that it would. --Samebchase, 8 Aug 2011

This works fine for me in zprofile:

if [[ -z $DISPLAY && $(tty) = /dev/tty2 ]]; then
    exec xinit ~/.config/xinitrc -- /usr/bin/X -nolisten tcp vt07 &>/dev/null
fi

thestinger 23:11, 8 August 2011 (EDT)