Not sure if anyone has proposed updated ways to do it, but I made a minimal
patch that implements it
with fallback to legacy config. It's not trying to move anything, just
using XDG base dir if it's a new installation
and picking legacy config if it already exists. It allows to start using it
for fresh installs and not breaking it for old
ones which is a simple temporary compromise.

See attached.

Regards,
Shmerl.
--- a/reportbug/utils.py
+++ b/reportbug/utils.py
@@ -1421,6 +1421,10 @@
 
 
 USERFILE = os.path.expanduser('~/.reportbugrc')
+# Use XDG base directory compliant config file and support legacy one if it already exists.
+if not os.path.isfile(USERFILE):
+    USERFILE = (os.environ.get('XDG_CONFIG_HOME') or os.environ.get('HOME') + '/.config') + '/reportbugrc'
+
 FILES = ('/etc/reportbug.conf', USERFILE)
 
 CONFIG_ARGS = (

Reply via email to