• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: need to run a ln command for every boot
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: need to run a ln command for every boot


  • Subject: Re: need to run a ln command for every boot
  • From: kiran kumar <email@hidden>
  • Date: Wed, 05 Oct 2011 14:23:41 +0530

thanks for u r reply Conrad Shultz

i am using this below script for creating a shortcut icon for my test application on my desktop, when i install my package.

#!/bin/sh
`chmod -R 777 /Applications/test.app`
`ln -s /Applications/test.app ~/Desktop/`

First time when i install my package it creates a shortcut icon on desktop ,when i uninstall and install again (second time)
there is no shortcut icon on my desktop.

Regards,
Kiran

On Oct 5, 2011, at 1:44 PM, Conrad Shultz wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/5/11 12:16 AM, kiran kumar wrote:
Hi All,

I need to run this  ln -s /Applications/test.app ~/Desktop/  command for every boot on Mac OS 10.6.
Please can any one suggest me how to do this  .

1) This has nothing to do with Cocoa.

2) Symlinking at every boot between two fixed paths seems really unusual
(unless ~/Desktop is getting wiped every time for some reason).  It
should also be noted that ~ doesn't mean a whole lot at boot time since
it is determined by the logged-in user.  My first guess is that you are
using autologin to a guest account of some sort that does not persist
files, in which case there are likely better ways to accomplish whatever
result is intended from your question.

3) If you are interested in the general topic of automated execution,
Google "login items" (for an easy user-configurable method) or "launchd"
(OS X's full-featured Swiss army knife of automated execution, roughly a
replacement for the System V init/cron scripts and more).

- --
Conrad Shultz

Synthetiq Solutions
www.synthetiqsolutions.com<http://www.synthetiqsolutions.com>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6MEeYACgkQaOlrz5+0JdWRkgCdFYLARGwbGAHkf3hWhWLcpxAg
1igAn1ULFrirdhH8lfb8hpnwo2bKTvlQ
=bfv3
-----END PGP SIGNATURE-----


________________________________
The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: need to run a ln command for every boot
      • From: Fritz Anderson <email@hidden>
References: 
 >need to run a ln command for every boot (From: kiran kumar <email@hidden>)
 >Re: need to run a ln command for every boot (From: Conrad Shultz <email@hidden>)

  • Prev by Date: Re: need to run a ln command for every boot
  • Next by Date: Re: PDF viewing
  • Previous by thread: Re: need to run a ln command for every boot
  • Next by thread: Re: need to run a ln command for every boot
  • Index(es):
    • Date
    • Thread