Closing gracefully won't restore settings
Opened this issue · 8 comments
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.
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/
?
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.
Hmm can you try stat /Library/Application Support/BOINC Data/global_prefs_override.xml
to see which user/group owns that file?
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
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.
My user can manually edit /Library/Application Support/BOINC Data/global_prefs_override.xml
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.
What Mac version?