Skip to content
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

Make the combo lock handle multiple users #1828

Merged
merged 2 commits into from
Oct 1, 2018

Conversation

forslund
Copy link
Collaborator

@forslund forslund commented Oct 1, 2018

Description

On the Mark-1 the locking would fail since the first time the lock is
accessed the process is run under root (script checking the enclosure
version). This caused the locking to fail since the normal mycroft
processes got an access error (lock-file owned by root)

This change creates lock-files and sets the permissions to 0o777
if the file doesn't exist so it's accessible for all users

How to test

Install the change on a mark-1, reboot and verify that all the processes starts correctly.

Contributor license agreement signed?

CLA [Yes]

@forslund forslund added Type: Bug - complex CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) labels Oct 1, 2018
@forslund forslund requested a review from penrods October 1, 2018 08:17
@pep8speaks
Copy link

Hello @forslund! Thanks for submitting the PR.

On the Mark-1 the locking would fail since the first time the lock is
accessed the process is run under root (script checking the enclosure
version). This caused the locking to fail since the normal mycroft
processes got an access error (lock-file owned by root)

This change creates lock-files and sets the permissions to 0o777
if the file doesn't exist so it's accessible for all users
@forslund forslund changed the title Make the combo lock differentiate between users Make the combo lock handle multiple users Oct 1, 2018
@forslund
Copy link
Collaborator Author

forslund commented Oct 1, 2018

Hold on on this one a bit longer, I'm rechecking some things. (It suddently stopped working again)

@forslund
Copy link
Collaborator Author

forslund commented Oct 1, 2018

False alarm, it was my half done pulse changes that made the skill loading halt when getting to the volume control

Copy link
Contributor

@penrods penrods left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@penrods
Copy link
Contributor

penrods commented Oct 1, 2018

I'm assuming Codacy is stuck on something else. I'm ignoring the "Pending".

Add Apache license header
@penrods penrods merged commit 9f4a3c2 into MycroftAI:dev Oct 1, 2018
@forslund forslund deleted the bugfix/mark-1-locking branch February 18, 2019 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) Type: Bug - complex
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants