On 02/21/2012 09:05 PM, yudi v wrote:
The OP didn't, I think, specify that he wants two X sessions with the
same user.

Yes that is exactly right, I an trying to use two X sessions under one user.


You might want something like this...

In my .bashrcx()

x()
{
      D=x
for i in `seq 0 4`;do if [ ! -f /tmp/.X${i}-lock ]; then D=$i; break; fi; done
      if [ "${D}" = "x" ]; then
        echo "No free virtual terminal"
      else
        if [ $# -lt 1 ];
then /usr/bin/startx -- :${D} -depth 24 -dpi 96 2> ~/.X.err > ~/.X.out & else /usr/bin/startx -- :${D} -depth $1 -dpi 96 2> ~/.X.err > ~/.X.out &
        fi;
      fi
}

Modify to suit your needs.

WT



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f45083b.1080...@gmail.com

Reply via email to