I’m using abrt-cli to report crashes from command line, but since the requirement to use a Bugzilla API key, abrt-cli (and report-cli) ask each time for the API key. I would like to know where to store the API key for abrt-cli to use it.
It should be noted that the abrt’s GUI knows to use the Bugzilla API key defined in its configuration.
But abrt-cli doesn’t seems to use the GUI’s configuration (or there’s a bug).
Thanks for the links. With this help, I was able to confirm there’s a bug somewhere in abrt / libreport: reporter-bugzilla -v shows the configuration file is not searched in $HOME/.config/libreport/bugzilla.conf
Loading settings from ‘/.config/libreport/bugzilla.conf’
Loaded ‘/.config/libreport/bugzilla.conf’
Ok.
Good catch. /usr/bin/reporter-bugzilla is a Python script. If you have some basic knowledge of it, you could explore the issue and report the bug (or also submit a patch!). I suspect that there is an issue at line 459 with the os.path.join method and the content of const.USER_HOME_CONFIG_PATH.
@alciregi you found the culprit: const.USER_HOME_CONFIG_PATH starts with a slash, so os.path.join assumes the path is absolute, and discard the home path …