Re: [racket] Username

2011-12-07 Thread Eli Barzilay
9 hours ago, José Lopes wrote: > 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 It doesn't onl

Re: [racket] Username

2011-12-07 Thread David Mitchell
José Lopes writes: > > 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é >

[racket] Username

2011-12-06 Thread José Lopes
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 5