-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate installed skills file to XDG Base Directory #88
Conversation
I also noticed that the pyxdg is only in requirements and not in setup.py |
Suggested fix for the mocking issue: https://github.com/forslund/mycroft-skills-manager/tree/PureTryOut-xdg-config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed a tiny change to get it working, but apart from the comments it seems to work well.
Combined with MycroftAI/mycroft-core#2578 ~/.mycroft/skills.json is now migrated to follow the XDG Base Directory specification. This means it'll be installed to $XDG_DATA_HOME/mycroft/skills.json, or $HOME/.local/share/mycroft/skills.json if $XDG_DATA_HOME is unset The file is migrated from the old location if it still exists there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's all I had, looks great now!
Description
Combined with MycroftAI/mycroft-core#2578
~/.mycroft/skills.json
is now migrated to follow the XDG Base Directoryspecification.
This means it'll be installed to
$XDG_DATA_HOME/mycroft/skills.json
,or
$HOME/.local/share/mycroft/skills.json
if$XDG_DATA_HOME
is unsetThe file is migrated from the old location if it still exists there
Type of PR
Testing
Run MSM at least once without this PR and without MycroftAI/mycroft-core#2578 and make sure
~/.mycroft/skills.json
exists.Then run MyCroft and MSM with MycroftAI/mycroft-core#2578 and this PR, and verify that
~/.mycroft/skills.json
has been moved to~/.local/share/mycroft/skills.json
(assuming you haven't changed$XDG_DATA_HOME
) and that everything still works correctly as before.Documentation
No documentation updates are needed