Re: [gtk+-2.6.7] configure problem

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

 



> ...
> 
> 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


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux