zed icon indicating copy to clipboard operation
zed copied to clipboard

Zed putting volume drive shortcuts on desktop MacOS

Open spaceunifyfifty opened this issue 1 year ago • 4 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

After a few hours of working in Zed I will find that my desktop is suddenly riddled with several weird ejectable drive shortcuts titled Zed and untitled folders. example

I suspect I am accidentally causing this through some keyboard shortcut that I am not aware of. I have the vscode keymap turned on.

To get rid of them, I have to option click on each of the icons and press Eject. But more show up again every day.

What is causing this and how can I disable it?

Environment

Zed: v0.125.3 (Zed) OS: macOS 14.2.1 Memory: 8 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

spaceunifyfifty avatar Apr 19 '24 15:04 spaceunifyfifty

Hey @spaceunifyfifty - how are you launching the Zed app? Have you copied it over to your /applications directory? Are you launching the app from the disk image?

JosephTLyons avatar Apr 19 '24 20:04 JosephTLyons

Hey @spaceunifyfifty - how are you launching the Zed app? Have you copied it over to your /applications directory? Are you launching the app from the disk image?

I installed zed via brew install --cask zed, so it is in my /Applications automatically. When I open zed, it is either through Spotlight search "zed", or a terminal where I open zed on specific directories like cd project && zed .

spaceunifyfifty avatar Apr 19 '24 21:04 spaceunifyfifty

Something that might be playing a role here: I switch between MacOS user logins frequently, and use Zed on both accounts. I typically only notice more of these desktop shortcuts pop up after I go back and forth between accounts.

spaceunifyfifty avatar Apr 20 '24 12:04 spaceunifyfifty

it has only been 2 days... Whatever I am doing to trigger it, I must be doing very frequently. image

spaceunifyfifty avatar Apr 22 '24 00:04 spaceunifyfifty

Same issue here. Don't see them on my desktop, but running diskutil list currently shows me several hundred mounted Zed volumes:

/dev/disk326 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        +230.6 MB   disk326
   1:                 Apple_APFS Container disk327       230.5 MB   disk326s1

/dev/disk327 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +230.5 MB   disk327
                                 Physical Store disk326s1
   1:                APFS Volume Zed                     199.6 MB   disk327s1

OS: MacOS 14.5 Zed version: Not sure, uninstalled it before writing this comment. Probaby0.140.5 (current version on Homebrew).

lsgng avatar Jun 25 '24 15:06 lsgng

i have the same issue. I also have two accounts, one of which i use zed with. When i switch back to the account i dont use zed with i notice the plethora of drives mounted MacOS 14.1

tristonarmstrong avatar Jul 25 '24 20:07 tristonarmstrong

It seems that the install_release_macos function can leave a dangling mounted disk image in the macOS if something goes wrong during the auto-update process. This happens because in that function the unmount code executed at the end of this function. I will create a PR to fix that.

vitallium avatar Aug 28 '24 19:08 vitallium