> ... > > The output is just the 3 lines of shell names in /etc/shells. So I gather that it can't be used to determine the current shell one is using. > > But your advice of looking into the file /etc/passwd is good and useful. > > Thank you very much, > > Regards, > Xu Qiang > > MMmm ... you are right, getusershell() will not give you the shell you are using ... In this case, you should check "man getpwnam". This API will parse /etc/passwd for you. Regards, KC kccheng@xxxxxxxxxxxxxxxxx _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list