If I create a symbolic link or alias pointing to $HOME/Desktop and place it in a .dmg disk image, then distribute the dmg, will the link still point to the Desktop for the end user?

link|improve this question

71% accept rate
feedback

migrated from stackoverflow.com Apr 1 '11 at 23:58

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 1 down vote accepted

No, since the environment variable will be replaced when the link is created. Using ~ will not work either, for the same reason.

link|improve this answer
Thanks Ignacio. I am hopelessly trying to solve the problem described in my following question stackoverflow.com/questions/5505442/… Maybe you have some idea how could I create a link to an application on desktop after installation? – m0s Apr 1 '11 at 19:28
Nope. I don't actually know anything about the high-level Mac stuff, sorry. – Ignacio Vazquez-Abrams Apr 1 '11 at 19:46
1  
Per this Package Maker HOWTO, you can use a postinstall or postflight script. – geekosaur Apr 1 '11 at 20:52
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.