-
Notifications
You must be signed in to change notification settings - Fork 868
User cannot disable or remove stock skills due to permissions #238
Comments
Can you run "ls -la" in the skill-weather directory? Guessing it's owned by someone other than the pi user (probably by the mycroft user) |
Yes, in the picroft image, the stock skills are installed with the mycroft packages.
With current permissions, it would not be enough to add user pi to group mycroft, but maybe that would make sense at some point. The user mycroft is not intended for login, and the mycroft-cli-client is running as user pi. The msm command really should be ferrying requests into a backend, and performing those requested tasks as user mycroft.
I think there needs to be a distinction between "installed" and "activated" for skills. You should be able to turn on and turn off skills without having to delete any files. |
Hi, There current way to disable skills is to blacklist them in the configuration. The default config looks like this "skills": {
...
"blacklisted_skills": ["skill-media", "send_sms", "skill-wolfram-alpha"],
...
} and you can override this list by editing the "skills": {
"blacklisted_skills": ["skill-media", "send_sms", "skill-wolfram-alpha", "skill-stock"]
} The json parser is a bit picky so make sure to add a On a separate note: |
FYI, I added this as a feature request: |
I'm running a Picroft 0.9.16.
The documentation for the Mycroft Skill Manager (msm) lists a number of commands including the remove command. The examples show this tool being run from the login user (e.g., pi) in the login shell (e.g., ssh to bash).
If I try to remove a stock built-in skill that is listed as [installed], many errors are incurred due to lack of permissions to write to various installation paths for the skills. Some configuration items are modified, but the skill is still listed as [installed] and still has partial functionality.
If I try to restore install the functionality completely, it says that the skill already exists.
I say "partial functionality" because I noticed that the constant polling which WeatherSkill performs has dropped from 3 queries per minute down to just 1 query per minute.
Expected behavior:
The text was updated successfully, but these errors were encountered: