Giter VIP home page Giter VIP logo

Comments (5)

grischard avatar grischard commented on May 26, 2024 1

Indeed! I should have checked how old the link was - no idea where it came from. I've been dragging this user profile from Mac to Mac since forever, so maybe this is ruins from an ancient civilisation of developers or something.

The installer could detect if /Library/Mail/Bundles is a dangling symlink, and auto-fix it? -L means it's a link, ! -e means does not exist.

if [[ -L "$targetDir" ]] && [[ ! -e "$targetDir" ]]; then
  rm "$targetDir"
  mkdir "$targetDir"
fi

The test could also use -w instead or on top of -e to see if we can write to the target.

from mailtrackerblocker.

grischard avatar grischard commented on May 26, 2024

Workaround:

This was caused by /Library/Mail/Bundles being a symlink to /System/Volumes/Data/MailBundles/Library/Mail/Bundles which did not exist (and wouldn't be writable anyway).

One workaround is to:

rm /Library/Mail/Bundles
mkdir /Library/Mail/Bundles

from mailtrackerblocker.

apparition47 avatar apparition47 commented on May 26, 2024

@grischard Thank you for the detailed report (and for solving your own issue?๐Ÿ˜…).

This seems to be the same as #27. I'm not sure why some users have this symlink to begin with. This makes me a bit iffy about touching it through the postinstall script.

from mailtrackerblocker.

apparition47 avatar apparition47 commented on May 26, 2024

Thanks for the insight.

I have a clean Big Sur setup (i.e. no prior migrations) and it doesn't have this issue. But I might end up doing your suggestion since this doesn't seem to be an isolated case. Lots of users end up inheriting odd settings like this for every macOS update.

from mailtrackerblocker.

grischard avatar grischard commented on May 26, 2024

We can close this then. Thank you very much!

Clean Big Sur setup? I envy you :)

from mailtrackerblocker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.