[Gambas-user] User.Name vs Human username behavior?

PICCORO McKAY Lenz mckaygerhard at ...626...
Fri Oct 25 16:49:48 CEST 2013


For USer.Name usage behavior: its the correct behavior or i must
obtain Human user name? the documentation are not clear about that!!!

In folowing code, i tried to see if User.Name return session name of user:

Public Sub Main()
    Print "user name  " & User.Name
    Print "user home  " & User.Home
End

When runnig obtain session name and not human name, this its correct?

usuario at ...3205...:~$ ./Pruebas
user name  usuario
user home  /home/usuario
usuario at ...3205...:~$

Filter /etc/passwd :

usuario at ...3205...:~$ cat /etc/passwd | grep usuario
usuario:x:1003:1003:UsuarioNuevo,,,:/home/usuario:/bin/bash
usuario at ...3205...:~$

Human name are "UsuarioNuevo"
Session name are: "usuario"

-- 
Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com




More information about the User mailing list