andrewringler / git-annex-turtle

git-annex-turtle provides Apple Finder integration for git-annex on macOS, including custom badge icons, contextual menus and a Menubar icon. It is free, open-source and licensed under The MIT License.
MIT License
53 stars 3 forks source link

first time usage experience: app does not open, missing mkdir -p ~/.config/git-annex #3

Open johannesjh opened 5 years ago

johannesjh commented 5 years ago

To improve the first time usage experience (i.e., to ensure the app starts at all), please create the ~/.config-git-annex/ directory if it does not exist yet. In Detail:

Steps to reproduce my first time usage experience:

Analysis of the problem:
Running the git-annex-turtle executable from inside the .app's package contents revealed the problem:

$ /Applications/git-annex-turtle.app/Contents/MacOS/git-annex-turtle ; exit;
2018-12-16 10:13:29.372 git-annex-turtle[25683:1210906] [info] Launching git-annex-turtle @AppDelegate.swift->init() line #29
2018-12-16 10:13:29.409 git-annex-turtle[25683:1210906] [error] Unable to create configuration file at /Users/johannes/.config/git-annex/turtle-monitor @Config.swift->init(dataPath:) line #24
Good morning! And in case I don't see ya, good afternoon, good evening and goodnight.
  --Truman Burbank

[Process completed]

Workaround:

mkdir -p ~/.config/git-annex
andrewringler commented 5 years ago

Thank you for finding the root cause of the issue and filing and detailed bug report. Will fix as soon as possible.

andrewringler commented 5 years ago

Fixed in latest unstable build —0.3-fc37ade. Will be included in the next release.