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

nixos/transmission: fix from where service loads config #76701

Merged
merged 1 commit into from Dec 31, 2019
Merged

nixos/transmission: fix from where service loads config #76701

merged 1 commit into from Dec 31, 2019

Conversation

jakubgs
Copy link
Contributor

@jakubgs jakubgs commented Dec 30, 2019

Why

Currently if you specify home to be someplace else than ~/ for user then Transmissions always attempts to load the config from the default location which is $HOME/.config/transmission-daemon based on documentation:
https://github.com/transmission/transmission/wiki/Configuration-Files

Which means that the changes done to the config under settingsDir in ExecPreStart have no effect because they are modifying a file that is never loaded.

Changes

I've added an explicit --config-dir ${settingsDir} to make sure that Transmission loads the correct config file even when home is changed.

Notify maintainers

cc @edolstra @bjornfor @thoughtpolice @coreyoconnor

@bjornfor
Copy link
Contributor

Please document the "why" part of this change also in the commit message, not only the PR message. And prefix the commit subject with "nixos/transmission: [...]".

Currently if you specify home to be someplace else than ~/ for user
then Transmissions always attempts to load the config from the
default location which is $HOME/.config/transmission-daemon based on documentation:
https://github.com/transmission/transmission/wiki/Configuration-Files

Which means that the changes done to the config under settingsDir in
ExecPreStart have no effect because they are modifying a file that is never loaded.

I've added an explicit --config-dir ${settingsDir} to make sure
that Transmission loads the correct config file even when home is changed.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
@jakubgs
Copy link
Contributor Author

jakubgs commented Dec 30, 2019

Updated commit.

@bjornfor bjornfor changed the title fix from where transmission service loads config nixos/transmission: fix from where service loads config Dec 30, 2019
@bjornfor bjornfor merged commit 3238bea into NixOS:master Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants