launch path not accessible (relaunch)

Asked by Tanaris

As the title says, I just checked out from github and Sparkle properly replaces the binary, but when it runs the NSTask to launch relaunch, it errors out saying:

launch path not accessible

Even if I run it from the command line, it just hangs, and I have no idea why (if I kill the app manually while I'm waiting for the command to execute, then it will relaunch the other app).

Question information

Language:
English Edit question
Status:
Expired
For:
Sparkle Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Tanaris (tanaris4) said :
#1

So if I copy relaunch to my desktop, then hard code the path in SUBasicUpdateDriver.m to run relaunch from the desktop, it works fine. I'm really confused as to why I can't execute it from the temporary directory it's copied to.

Any ideas?

Revision history for this message
Andy Matuschak (andymatuschak) said :
#2

Does your temporary directory have strange permissions, perhaps?

Revision history for this message
Tanaris (tanaris4) said :
#3

That's what I thought, I ended up doing like chmod +x -r thedir

And even chmod 777, but nothing would end up working. I even removed the entire temp directory. I ultimately ended up having Sparkle copy it to my app's log folder, then removing the relaunch file the next time my app started. Kind of a hack, but it ended up working.

Revision history for this message
Andy Matuschak (andymatuschak) said :
#4

Is the relaunch binary inside the Sparkle.framework in your app? In the Resources folder?

Revision history for this message
Tanaris (tanaris4) said :
#5

Yes it is, right now I just copy it to a different directory (edited the sparkle source) and it's working fine.

So strange

Revision history for this message
Launchpad Janitor (janitor) said :
#6

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.