|
|
hi every
maybe after every upgrade, happens always some problem...
I have typed some codes in my .profile to let X start automatic, when i loggin in tty.- ### if X dosenot exist, then startx.
- if !([[ `pgrep -x X` ]]); then
- startx
- fi
复制代码 It worked fine for a long time.
But today it happens in tty:- -bash: Desktop: command not funden
复制代码 where does command "Desktop" from?
Then i checked where happened it.- ### if X dosenot exist, then startx.
- echo step 1 ok.
- if !([[ `pgrep -x X`]]); then
- echo step 2 ok.
- startx
- echo step 3 ok.
- fi
复制代码 In tty show only step 1 ok. that means "if ... then" may have some problem~ but it worked fine before today.
when i manually startx, andit works..
Can someone help me? i'm real noob
Thank you! |
|