recipe-robot
recipe-robot copied to clipboard
Mac with configured default RecipeCreateLocation that doesn't exist causes failure
Describe the bug
When a fresh Mac has autopkg & Recipe Robot installed but the default RecipeCreateLocation
directory path does not exist, produces error.
To Reproduce Steps to reproduce the behavior:
- On Mac with autopkg & recipe robot, delete the
RecipeCreateLocation
key from~/Library/Preferences/com.elliotjordan.recipe-robot.plist
- Delete the default folder path from system
- Have Recipe Robot attempt to create recipes for an item
- See error
Expected behavior A message indicates that the folder doesn't exist, or Recipe Robot automatically creates this path for the user.
Screenshots
Desktop (please complete the following information):
- macOS: 10.15.7
- Recipe Robot Version: 2.2.0
-
autopkg version
: 2.2 -
/usr/local/autopkg/python --version
: Python 3.7.5
Hi @apizz - Thanks for reporting this. Could you check the output you get for:
defaults read com.elliotjordan.recipe-robot Initialized
~ > defaults read-type com.elliotjordan.recipe-robot Initialized 255 19:09:25
Type is boolean
~ > defaults read com.elliotjordan.recipe-robot Initialized 19:07:00
1
I did some more testing and confirmed that if RecipeCreateLocation
value is present but folder doesn't exist that it will create the folder.
Error was slightly different in most recent testing.