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

Closing gracefully won't restore settings #22

Open
ghost opened this issue May 30, 2023 · 8 comments
Open

Closing gracefully won't restore settings #22

ghost opened this issue May 30, 2023 · 8 comments

Comments

@ghost
Copy link

ghost commented May 30, 2023

On my two Mac's the settings aren't restored when exiting gracefully. Have added my user to the boinc_master group but still not working.

Getting the following error:

Restoring original preferences...
Permission error restoring original BOINC preferences [Errno 1] Operation not permitted: '/Library/Application Support/BOINC Data/global_prefs_override.xml'
Be sure you have permission to edit this file
Linux users try  'sudo usermod -aG boinc your_username_here' to fix this error
Note that you will need to restart your machine for these changes to take effect

If I launch the script with sudo python3 main.py it works as intended.

@makeasnek
Copy link
Owner

makeasnek commented May 30, 2023

Thank you for the bug report! Did you try the sudo usermod -aG boinc your_username_here command and restarting your machine afterwards? Is your BOINC directory /Library/Application Support/BOINC Data/?

@ghost
Copy link
Author

ghost commented May 30, 2023

usermod is not a valid command on macOS, dseditgroup is the version of the command on macOS.
I have checked and my user are part of the boinc_master group.

Yes I have a standard installation location for the Boinc data folder.

@makeasnek
Copy link
Owner

makeasnek commented Jun 1, 2023

Hmm can you try stat /Library/Application Support/BOINC Data/global_prefs_override.xml to see which user/group owns that file?

@ghost
Copy link
Author

ghost commented Jun 1, 2023

16777232 552893 -rw-rw-rw- 1 boinc_master boinc_master 0 1986 "May 31 01:41:30 2023" "May 30 23:56:11 2023" "May 30 23:56:11 2023" "Mar 25 19:40:10 2021" 4096 8 0 /Library/Application Support/BOINC Data/global_prefs_override.xml

@HeyMerlin
Copy link
Contributor

As the user you launch main.py with, can you manually edit the file /Library/Application Support/BOINC Data/global_prefs_override.xml... Basically confirm that you can write to the file as that user.

@ghost
Copy link
Author

ghost commented Jun 26, 2023

My user can manually edit /Library/Application Support/BOINC Data/global_prefs_override.xml

@makeasnek
Copy link
Owner

Having looked into this a little further, I don't know what a good fix for it is. I think we'll just have to leave this issue open until somebody finds a fix for it, I lack the right Mac hardware to really test out options.

@Frigyes06
Copy link
Contributor

What Mac version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants