I didn't realise you needed the computer's name to get to the desktop, 
what OS are you using?

On Windows I just use
ENV['HOME'] + '/Desktop'

-- 
Posted via http://www.ruby-forum.com/.