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

When Glances is installed via venv, default configuration file is not used #2803

Closed
nicolargo opened this issue May 27, 2024 · 1 comment
Closed

Comments

@nicolargo
Copy link
Owner

If Glances is installed by the foo user via pip install --user glances[all].

Glances searchs in the following folders:

  • /home/foo/.config/glances/glances.conf
  • /etc/glances/glances.conf
  • /usr/share/doc/glances/glances.conf

The default configuration file is here:

$ locate glances.conf
/home/foo/venv/share/doc/glances/glances.conf

In order to take this file into account, the -C option should be set:

/home/foo/venv/bin/glances -C /home/foo/venv/share/doc/glances/glances.conf

Expected behavor: the /home/foo/venv/share/doc/glances/glances.conf folder should be added to the list of default folders.

@nicolargo nicolargo added this to the Glances 4.1.0 milestone May 27, 2024
@nicolargo nicolargo changed the title When Glances is install via venv, default configuration file is not used When Glances is installed via venv, default configuration file is not used May 27, 2024
@nicolargo
Copy link
Owner Author

Done on the develop branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant