1

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?

  • Did you ever find a workaround for this? – Barjavel Aug 6 '13 at 11:02
  • @Barjavel I ended up creating installer and generating the link with postflight script as geekosaur suggested bellow in comments. As long as I remember it didn't work out with just copying. – m0s Aug 6 '13 at 17:56
1

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

  • 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
  • 2
    Per this Package Maker HOWTO, you can use a postinstall or postflight script. – geekosaur Apr 1 '11 at 20:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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