replugged-org/replugged

Bad config folder perms on linux install

SomeAspy opened this issue · 4 comments

Describe the bug

Perms are incorrect on the default .config/replugged folder install.
the folder is owned by root instead of the user that owns .config/
image
This breaks automatic plugin/theme installation via links inside discord.

Reproduction steps

  1. Install Replugged
  2. ls -l ~/.config
  3. Observe incorrect permissions for current user.

Expected behavior

permissions should be owned by the current user

Actual behavior

folder is owned by root.

Additional information

No response

Please confirm the following

  • I made sure this is not related to an external plugin or a theme
  • I checked if Discord and Replugged are up to date
  • I searched the issues to make sure this bug has not been reported before.

This is a known issue on Linux in general and can be fixed by CHOWNing the folder.

momu54 commented

Screenshot_20230610-210121.png

Maybe we can add chown there after mkdir?
If I really understand the codes.

...no, that mkdir is completely unrelated.

momu54 commented

Ok, I'll research the code deeply tomorrow if I don't forget
And I'll try to help that if I can