Hi, Mikko Thanks for your feedback. The context is: currently Tizen ConnMan is multiuser compliant, when system boots up, ConnMan will check whether the user has permission to auto connect wifi service which has been connected before. If ConnMan can’t get the user name or user id, it can’t decide whether to permit the user for the operation. In current Tizen IVI, if systemd does not write utmp entries for logged users, is there any way to get the related user info(user name or user id) from ConnMan side? Besides, the way should be compliant with Tizen Common too.
Thanks, Zhang Zhengguang From: Ylinen, Mikko [mailto:[email protected]] Sent: Friday, December 5, 2014 3:55 PM To: Zhang, Zhengguang; [email protected]; [email protected] Subject: Re: [Dev] A question about tizen IVI boot user name Hi, On Fri, Dec 5, 2014 at 8:01 AM, Zhang, Zhengguang <[email protected]<mailto:[email protected]>> wrote: Hi, All I have a question about tizen IVI boot user name, in current IVI image, when system boots up, the default login user should be “app”, but when I try to get the user name by the following code: Struct utmpx *utmp; setutxent(); utmp = getutxent(); printf(“user name: %s”, utmp->ut_user); endutxent(); I get the user name “reboot” instead of “app”, can anybody help me to clarify what’s wrong with the code above or how to get the user name “app”? Who is the “reboot” user? Please explain the context you're in. But I can tell that code won't work: - it just reads the top entry of the utmp file - as far as I can see systemd does not write utmp entries for logged users -- Mikko
_______________________________________________ IVI mailing list [email protected] https://lists.tizen.org/listinfo/ivi
