sindresorhus / macos-trash

Move files and folders to the trash
MIT License
374 stars 14 forks source link

Use correct trash path with `sudo` #2

Closed kevva closed 8 years ago

kevva commented 9 years ago

https://github.com/sindresorhus/trash/issues/21

sindresorhus commented 9 years ago

And it's not? :p If you sudo you're temporarily the root users, which means it goes to the root users trash.

Though I do agree it's not optimal. I'm honestly not sure how we would fix this as I'm just calling the native trash method.

Suggestions?

kevva commented 9 years ago

Yeah, I haven't been able to test it as sudo but it sounds like the expected behavior for me too.

sindresorhus commented 9 years ago

It's the expected behavior, but not the wanted.