請問有關KDE 3.2的KDM的問題

有關於X 環境當中所遇到的問題

Moderator: Forums Team

scsi
Posts: 1326
Joined: Tue Oct 14, 2003 7:49 am
Contact:

Post by scsi »

我終於給他找到原因了
因為我的 profile 裡有去 source 一支 shell
這支shell是我用來設定alias用的
但是這shell的最後面有這樣的東西

Code: Select all

                                                                                                                                                                                                                               
function pps()
{
     if [ "$1" = "-p" ]; then
       ps ax|grep $2|grep -v pps|grep -v grep|awk '{print $1}'                                                                             
   else                                                                                                                                  
       if [ "$1" = "-u" ]; then                                                                                        
         ps aux|grep $2|grep -v grep                                           
       else 
         ps ax|grep $1|grep -v pps|grep -v grep                                                           
       fi
   fi                                                                                                                        
}                                                                                                                                                                                                                                                            

set dspmbyte="0000000000000000000000000000000000000000000000000000000000000000222222222222222222222222222222222222222222222222222222222222222223333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333330"
這些code似乎會造成之後的 $1 的參數會改成

Code: Select all

dspmbyte="0000000000000000000000000000000000000000000000000000000000000000222222222222222222222222222222222222222222222222222222222222222223333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333330"
也就是這樣而造成kdm執行到的東西就不是我要執行的startkde了

我後來是在一個偶然的機會從 ~/.xsession-errors發現到這個問題的
至於為什麼我要加那上面有問題的code呢?
原因是一段code是我從redhat放在/etc/profile.d裡的一支設alias的script抄過來的,一直沒有發生問題,直到最近

仍然感謝曾經幫助過我的人
:D
Last edited by scsi on Sat Mar 27, 2004 12:12 pm, edited 1 time in total.
世界再大,不過是妳我之間的事
:111.gif: 欲使用GOT的ebuild請看Gentoo 台灣中文 Ebuild 使用指南
Image  我的部落格
Si
Posts: 333
Joined: Sun Apr 20, 2003 12:15 pm
Location: New Zealand

Post by Si »

恭喜啦!總算弄好了。 :D
Post Reply