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

Feature Request: Modify rcon.yaml Reading Method #45

Open
patrick-csliu opened this issue Feb 20, 2024 · 1 comment
Open

Feature Request: Modify rcon.yaml Reading Method #45

patrick-csliu opened this issue Feb 20, 2024 · 1 comment

Comments

@patrick-csliu
Copy link

In Linux, I would like to place rcon in /usr/local/bin and call it as a comand, but it throws an error when the rcon.yaml file is missing in the current directory.

Here is my suggestion: allow rcon.yaml to be optional if not found. When searching for rcon.yaml, I recommend that it first searches the current folder. If not found, it should then search the user's home folder. If still not found, it should proceed to search the /etc folder. If not found in any of these locations, the rcon.yaml file can be skipped.

@samvv
Copy link

samvv commented Sep 11, 2024

rcon could follow the classic structure defined by freedesktop.org: $XDG_HOME_DIR and $HOME/.config if it does not exist, e.g. $HOME/.config/rcon-cli/rcon.yaml

Many applications use the same file structure for their configuration files.

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