Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move to trash doesn't work at a system secured location... #28

Closed
calc opened this issue Dec 13, 2009 · 6 comments
Closed

move to trash doesn't work at a system secured location... #28

calc opened this issue Dec 13, 2009 · 6 comments

Comments

@calc
Copy link

@calc calc commented Dec 13, 2009

... like from \Library\Widgets. 'Move to' works, though.

@pjrobertson
Copy link
Member

@pjrobertson pjrobertson commented Jan 9, 2010

This is a problem with Apple's NSWorkspaceRecycleOperation method, not QS (which is a first!)

I'll see if there's a work around

@pjrobertson
Copy link
Member

@pjrobertson pjrobertson commented Jan 9, 2010

Could be done with recycleURLSs:NSArray *files completionHandler:(void (^)(NSDictionary *newURLs, NSError *error))handler

but it's 10.6 only :(

I couldn't get it to work - anybody else? ;)

@tiennou
Copy link
Member

@tiennou tiennou commented Feb 13, 2011

Maybe need to be authenticated as an admin in order to remove the source after the move ? If that's the case, switching to 10.6 -recycleURLs: would only give us the benefits of an NSError. I guess we need to add some Authorization Service goodness ;-) !

http://developer.apple.com/library/mac/#DOCUMENTATION/Security/Reference/authorization_ref/Reference/reference.html

@pjrobertson
Copy link
Member

@pjrobertson pjrobertson commented Jan 27, 2013

We now provide an error when this fails, but we'd still need to use Authorization to get this to work. Will it work at all now though, since Apple's deprecated the Auth APIs...?

@keith
Copy link

@keith keith commented Jul 2, 2014

This would be great to have.

@skurfer
Copy link
Member

@skurfer skurfer commented Jul 3, 2014

It’ll be in the next release (1.2.0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants