Ajatt-Tools / gd-tools

🍣 A set of tools to enhance GoldenDict.
https://tatsumoto.neocities.org/blog/setting-up-goldendict#gd-tools
GNU General Public License v3.0
31 stars 5 forks source link

non-root install #10

Closed KonstantinDjairo closed 1 year ago

KonstantinDjairo commented 1 year ago

this fixes some permission bugs in gentoo, but it might fix some bugs in other distros as well

i think that there's no need to run gd-tools as root

since the files on the res folder are supposed to be installed on root directories, i manually copied them, but you could make a conditional to copy the files to some non-root directory (maybe under ~/.local/share/)

tatsumoto-ren commented 1 year ago

Todo: if the program is installed to ~/.local/, the files in /usr/share/gd-tools will be in ~/.local/share/gd-tools, and the program has to be able to find them there.

i think that there's no need to run gd-tools as root

Only the installer is run as root, similarly to how you run make install.

this fixes some permission bugs in gentoo, but it might fix some bugs in other distros as well

If you set up the sudoers file, the bug should go away. I assume most people have sudo working correctly.

KonstantinDjairo commented 1 year ago

Todo: if the program is installed to ~/.local/, the files in /usr/share/gd-tools will be in ~/.local/share/gd-tools, and the program has to be able to find them there.

i think that there's no need to run gd-tools as root

Only the installer is run as root, similarly to how you run make install.

this fixes some permission bugs in gentoo, but it might fix some bugs in other distros as well

If you set up the sudoers file, the bug should go away. I assume most people have sudo working correctly.

has been some years since i don't use sudo, i use doas instead. So to make it more compatible with others OS's , like BSD's or other unix systems , it's good to keep the choice in the user's hands