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
Running iotop-c as non root results in a ~/.config/iotop
dir.
#63
Comments
Thanks for spotting - iotop-c does not follow the XDG Base Directory Specification and uses a hardcoded path. That will be fixed. About running iotop-c as non-root, it should give a warning+advice:
If you see some kind of error instead of the above, please give more details. |
You scared me with the way that first sentence is written haha. And yes I did have the warning about running it as non root, it was just a mistake I made when first launching it that resulted in the directory being created. |
I have XDG_CONFIG_HOME set to ~/.local/config instead of the default location of ~/.config.
I recently tested iotop -c and made the mistake of trying to run it as non root. After correcting that error I noticed that my home now has a
~/.config/iotop
directory.The directory is being created by iotop-c, likely because it has a hardcoded path to ~/.config instead of checking the xdg enviroment variables.
What's interesting is that iotop can no longer be run as regular user, so this should be easy to fix.
(This issue does not happen with the regular iotop btw).
Edit: The issue is on lines 53 and 23 of
configfile.c
.The text was updated successfully, but these errors were encountered: