Symbolic link refresh issue in 10.5
Symbolic link refresh issue in 10.5
- Subject: Symbolic link refresh issue in 10.5
- From: Sravana Kumar <email@hidden>
- Date: Mon, 10 May 2010 21:19:08 +0530
Hi all,
I am facing some weird refresh issue with Symbolic links. My application 'A'
is supposed to create/repair a shortcut in /Applications folder. This app
should be launched in elevated mode using 'AuthorizationCreate' and
launching the same process 'A' with this token (the shortcut is created in
authorized mode only).
During the execution of process A, it launches another process 'B' (in the
elevated mode only) which creates some folders (.app) at '/Library'. Once
the process B completes .app copy, process A creates shortcuts to that
.app.
In reinstall mode, process B will backup(rename) the parent folder of .app
and create a fresh folder and copies the new .app and delete the backup
folder. Process A will remove the existing shortcut and create the new one
with the .app path as destination.
In the first time (fresh install) shortcut is proper. In second time
(reinstalling) shortcut file says seems broken, but its a refresh problem.
If i try double clicking symbolic list a broken shortcut dialog is shown.
I checked the shortcut info thru terminal, the target looks proper.
If I forcibly relaunch the finder, the shortcut works fine.
If I lunch the actual application once and double click symbolic link then
also symbolic works fine.
This problem is occurring in 10.5.6/10.5.8 but it seems fine in 10.6.2.
Seems like a Apple Mac OS issue :-(.
I also tried to notify finder and syncronize file system for both symlink
and actual app using the following...
1) NSWorkspace's noteFileSystemChanged, and noteFileSystemChanged:
2) fsync, sync system commands.
3) LSRegisterFSRef
3) FSGetCatalogInfo method.
But it didn't helped.
I am missing any thing here ?
Thanks,
-Sra1
_______________________________________________
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