[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Benefits (and risks) of using Sid



On Sun, Aug 10, 2008 at 12:46:51PM +0300, Andrei Popescu wrote:
> On Sat,09.Aug.08, 17:04:47, Ron Johnson wrote:
> >>> I put this at the bottom of my family members' .bashrc files.  Works like 
> >>> a charm.
> >>>
> >>> if [ "$TERM" == "linux" ]; then
> >>>      startx
> >>>      exit
> >>> fi
 
> If I try to run startx with X already active I get:
> 
> Fatal server error:
> Server is already active for display 0
> 	If this server is no longer running remove /tmp/.X0-lock
> 	and try again
> 
> And eventually it will return the prompt. I think most cases will be 
> covered by something like:
> 
> ,----
> | if [ "$TERM" = "linux" ]; then
..cough..        ^


> | 	if [ ! -f /tmp/X0-lock ]; then
> | 		startx
> | 		exit
> | 	fi
> | fi
> `----


-- 
Chris.
======
I contend that we are both atheists. I just believe in one fewer god
than you do. When you understand why you dismiss all the other
possible gods, you will understand why I dismiss yours.
                                           -- Sir Stephen Henry Roberts


Reply to: