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

[Linux] PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.9/site-packages/FoxDot/lib/Settings/conf.txt' #248

Open
funcrab opened this issue Sep 19, 2021 · 2 comments

Comments

@funcrab
Copy link

funcrab commented Sep 19, 2021

Hello. Thanks for the fun tools.

Environment

  • Arch Linux (Manjaro-sway)
  • Kernel: 5.10.18-zen-1-zen-lts510-g513e3c94a40f
  • python 3.9.7-1
  • tk 8.6.11.1-1
  • supercollider 3.12.1-1

Reproduction Procedure

  1. start FoxDot in console
  2. open the menu Help & Settings -> Open config file (advanced)
  3. press Save Changes
    -> conf.txt cannot be saved.

The following error occurs in the console

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python3.9/tkinter/__init__.py", line 1892, in __call__
    return self.func(*args)
  File "/usr/lib/python3.9/site-packages/FoxDot/lib/Workspace/ConfigFile.py", line 74, in save_changes
    f = open(self.filepath, "w") # writing a file
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.9/site-packages/FoxDot/lib/Settings/conf.txt'
@Qirky
Copy link
Owner

Qirky commented Oct 30, 2021

Does sudo work at all? I think that might be a temporary workaround, other than editing the config file itself manually, but there might be some better way to manage local storage for these files tbh

@funcrab
Copy link
Author

funcrab commented Oct 31, 2021

When I run the following, I can save the configuration file

  • sudo FoxDot

I dealt with this by changing the permissions of the corresponding file in the following way.

  • chmod 666 /usr/lib/python3.9/site-packages/FoxDot/lib/Settings/conf.txt

I don't think this is a high priority issue, but it would be better if the configuration files were created for each user in the following location to avoid sharing them whole the machine

  • $XDG_CONFIG_HOME/foxdot/conf.txt

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

2 participants