Thanks for your
kindly help.
Your support
gives me great confidence to solve it, although it seems not a big problem.
I have solved
this problem like this:
My $USER = getlogin();
Sudo �Cu $USER defaults write com.apple.dock @@@@@@@@;
So, you had
better point out the current user clearly. The it can work.
Thanks very much.
(
p: +86
Best wishes,
Andrew Li, Marvell Technology (Shanghai) Ltd
( p: +86
21 6165 5305 | 7 f: +86 21 5027 0219 | *email@hidden
From:
Bryan S. Lee [mailto:email@hidden]
Sent: 2008年6月20日
22:04
To: Andrew Li;
email@hidden
Subject: Re: Add app icon to Dock
How are you running the
script? As a postinstall? You could add a line to the script to create a file
on the desktop so that you can see if it is engaging.
I’ve had a script that engaged but not work properly because I needed it
to run as the user and left PackageMaker set to run with admin authentication
on, which then ran the script as root. Had to turn admin auth off.
--
Bryan S. Lee
Information Resource Consultant II
Computer Support Services
Clemson Computing and Information Technology
Clemson University
email@hidden
ACHDS 10.4, MCP NTS/NTW
From: Andrew
Li <email@hidden>
Date: Fri, 20 Jun 2008 04:25:27
-0400
To: <email@hidden>
Subject: Add app icon to Dock
Hello, My
question seems to be related to the PackageMaker tool, but I am not very sure
about it.
When I use the PackageMaker to make an installer for my application, I also
want to add the application’s icon to Dock. So, in order to implement
this feature, I write a Perl script that using “defaults write
com.apple.dock ……….” When I run the perl in Terminal
for testing, it is workable. But after I put it to installer, when run the
installer, the statement “defaults write com.apple.dock” seems not
workable, I am sure that the perl script have been executed.
And I have set the permissions correctly to this script. But I still have no
idea about this issue.
Thanks.
Andrew Li/Shanghai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden