1

In more recent macOS's (such as Mojave), dragging the ~/.Trash folder to the Finder Sidebar does not work properly anymore. When you do that, the sidebar text displays a ? instead of Trash.

The ? still works temporarily, but after you reboot or run killall Finder, and try to open ? in the sidebar, you get the error "?" can't be opened because the original item can't be found.

Is there a way to add the Trash folder to the Finder Sidebar anymore? This used to work perfectly in Sierra and before.


Note: This is not a duplicate of How can I add Trash icon to the sidebar in Mac OS X Lion? . That solution does not work anymore.

Related links: https://discussions.apple.com/thread/8498936

| improve this question | | | | |
  • 2
    Can I question the premise? Why do you need a Trash icon in the side bar? Isn't Cmd/backspace quicker than dragging? – Tetsujin Sep 6 '19 at 18:20
  • 1
    1. I mainly use it for checking what's in the Trash. 2. If I find something in the Trash, I can easily drag it out to a folder/sidebar. 3. Sure, if I'm using keyboard navigation, then cmd+backspace is faster. But if I'm using the trackpad, then dragging is only 2" roundtrip movement. Reaching for backspace is 12" roundtrip. – wisbucky Sep 7 '19 at 0:42
2

Several of us over on MacAdmins pulled this issue apart earlier this year when a user complained that their Sidebar not only wouldn't hold his Trash icon, but kept resetting back to default settings-and-layout on a very regular basis.

The Trash folder complex (and it is complex) has to track files from multiple volumes and from multiple users across those volumes, and several changes they made to the Trash 'engine' to work with APFS affected other parts of the OS.

Sidebar reset has been a minor nagging issue for many years, though, but the cause wasn't figured out until recently: Static user Sidebar items (the things you add to Favourites, etc) are linked to their target by the Finder itself, using an always-running subset of the code that drives 'Folder Actions'. Unfortunately, if a previously-specified target isn't where the Sidebar link code says it thinks it is, it updates its cache with zeros, which causes the Sidebar panel's .plist to reset. The Trash, because of its be-many-things-but-appear-in-one-place nature, cannot maintain a static reference, so the Sidebar goes "ptui!"

Anything that can change its reference - or even disappears and reappears of its own accord, like a network share - should never be put into the Sidebar.

The Sidebar is happy as long as things don't go missing, so how can we make transitory objects like the Trash and network shares appear to always be there? The solution is rather obvious in hindsight:

Aliases.

Make an alias of the item you want in the Sidebar, and add the alias itself to the Sidebar. Aliases are files with their own target references, so they just sit there acting as a middle-man twixt Sidebar and targets.

Make a new folder in your ~/ as a repository for the aliases you want Sidebar favourites for.

| improve this answer | | | | |
  • Finder Alias works great for all folders except ~/.Trash. When I right clicked on my Trash folder in Finder and selected Make Alias, it created a Trash alias. However, if you try to open Trash alias, it gives the error The alias "Trash alias" can't be opened because the original item can't be found. If you click "Fix Alias", and then it will work. You can even drag it to the sidebar. But, if you do killall Finder or reboot, it will be broken again. Well, at least with an alias, I can rename it in the sidebar instead of ?, so I'll give you a upvote for that improvement! – wisbucky Sep 9 '19 at 18:53
0

You can have/use it only if you have set invisible files in Finder. In Finder with invisible files visible: select your Home folder, find Trash, drag it to the sidebar. BUT: as soon as you go out of invisible files there is a ? mark in the sidebar and the Trash is not found.

| improve this answer | | | | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .