Hello everyone,

How do I get the username of the person who is logged in the system?

At the moment I am doing this, but it looks terrible...

(define (current-user)
  (path->string (file-name-from-path (find-system-path 'home-dir))))

Regards,
José

--
José António Branquinho de Oliveira Lopes
58612 - MEIC-A
jose.lo...@ist.utl.pt

_________________________________________________
 For list-related administrative tasks:
 http://lists.racket-lang.org/listinfo/users

Reply via email to