Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] Error code -60031 with AuthorizationMBS (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Simple GraphicsMagic plugin question...
Next thread: [MBS] Save the dates: Conferences & Meetings this year


[MBS] CURL MissingFUnctionExcpetion   -   Garth Hjelte
  [MBS] Error code -60031 with AuthorizationMBS   -   Marnaud
   Re: [MBS] Error code -60031 with AuthorizationMBS   -   Marnaud

[MBS] Error code -60031 with AuthorizationMBS
Date: 09.01.16 10:40 (Sat, 09 Jan 2016 10:40:42 +0100)
From: Marnaud
Hello,

I'm getting a -60031 error when using the AuthorizationMBS class; unsurprisingly, it's the error which has the less meaning among all of them. However, I don't understand, because everything seems correct. Here's the bit of code:

//f1 is the target folder for the first move (/Library/LaunchAgents)
//f2 is a file written in the temporary folder
dim au as AuthorizationMBS

au=new AuthorizationMBS
if au.SimpleNewAuthorization then
au.SimpleAuthorize
if au.Authorized then
au.Execute("/bin/mv",Array(f2.ShellPath,f1.ShellPath)) //Move the temp file to the LaunchAgents folder

if au.LastError<>0 then
dim e as RuntimeException
e=new RuntimeException
e.ErrorNumber .LastError
e.Message="Authentication not granted."
raise e
end if
f1=SpecialFolder.Library.Child("LaunchAgents").Child(t+".plist") //point f1 to the resulting file; the resulting folderitem is valid, as seen in the IDE (it exists and it the correct one).

au.Execute("/bin/chown",Array("0",f1.ShellPath)) //The file must be owned by root to work with launchd
if au.LastError<>0 then
dim e as RuntimeException
e=new RuntimeException
e.ErrorNumber .LastError
e.Message="Authentication not granted."
raise e
end if

I'm getting the -60031 error code when executing chown. Any idea?
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Error code -60031 with AuthorizationMBS
Date: 09.01.16 10:48 (Sat, 09 Jan 2016 10:48:43 +0100)
From: Marnaud
Ok, I found it. Chmod is located in /usr/sbin… Sorry for the noise.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info