In a previous message, Anders Johansson wrote:
I would probably change this to
<code> #!/bin/bash if [ $# -ne "1" ] then file='XF86Config-normal' else file='XF86Config-3d' fi
startx -- -xf86config $file </code>
since you probably don't want to open /etc/X11 for writing by regular user, and you probably also don't want to run as root
Indeed - I prefer this option, I think, because it will also be less likely to foul things up for other users of the box. I also don't want to set the default boot level to 3 - for most users, 5 is best as they can happily use the 2D version for large screenmodes. How would I cause a script to run automatically on login for a certain user, before X has started, to control which XF86Config file is used? It seems best to me to have a separate user for playing games - no need to run certain apps for gaming that I keep running when working and fewer possible problems for my work identity. Thanks, John -- John Pettigrew Headstrong Games john@headstrong-games.co.uk Fun : Strategy : Price http://www.headstrong-games.co.uk/ Board games that won't break the bank Valley of the Kings: ransack an ancient Egyptian tomb but beware of mummies!