-
Notifications
You must be signed in to change notification settings - Fork 22
State service doesn't catch permission errors in XDG_RUNTIME_DIR #869
Copy link
Copy link
Open
Labels
Description
What needs to get done
If access to XDG_RUNTIME_DIR fails with a permission error, the state service should either raise a user-friendly error and recommend using CRAFT_STATE_DIR or fall back to util.get_home_temporary_directory().
Why it needs to get done
Craft application raises an internal error when it fails to create a directory here:
craft-application/craft_application/services/state.py
Lines 298 to 300 in e0438e9
| state_dir = platformdirs.user_runtime_path( | |
| str(os.getpid()), ensure_exists=True | |
| ) |
source:
Reactions are currently unavailable