On mac it is
/Volumes/Macintosh HD/Users/shortname/Desktop/
or just
/Users/shortname/Desktop/
Make sure you use the short name though.
Offline
poopo wrote:
TRocket wrote:
poopo wrote:
No drive beginning?no
That's odd Thanks.
Thanks!
Linux and Mac don't have drive letters lol... Instead they have stuff like sda1 etc.
Offline
poopo wrote:
So short name is like the username?
yes but it can't contain spaces
Offline
Yeah, Windows is the only one with drive names at the beginning. Darwin and Linux have them as mounted folders I believe.
Offline
nathanprocks wrote:
poopo wrote:
So short name is like the username?
yes but it can't contain spaces
and capitals
actually you better use ~/Desktop (yes, dsektop capitalized), as ~ is the path to the user's directory
Offline
Could someone with a mac please run this code and report to me the output and your shortname
class test
{
public static void main(String[] args)
{
System.out.println(System.getProperty("user.name"));
}
}It's java btw.
Last edited by poopo (2012-01-31 14:01:59)
Offline
Easiest way to do it is this:
~/Desktop/
On all the *ix's (including Mac), the ~ designates the home folder of the current user.
EDIT: the ~ is not a dash, it is the squiggly thing above tab (it looks similar in the small font)
Last edited by tunasushi (2012-01-31 19:26:24)
Offline
poopo wrote:
TRocket wrote:
on linux i think it is /home/UserName/Desktop
No drive beginning?
Partitions on linux don't need drive names, in fact on linux your dirve has to be the / drive.
Offline
poopo wrote:
Could someone with a mac please run this code and report to me the output and your shortname
Code:
class test { public static void main(String[] args) { System.out.println(System.getProperty("user.name")); } }It's java btw.
Works for me
It echoed the correct shortname.
Also: cool, I just learnt to compile java code! Thanks.
Offline
muppetds wrote:
yeah on mac you can just do ~/Desktop
regardless of where your user data is kept it will still work fine
That's right.
Offline