From 1447b6275538cf46c08c4ccea73a2a51b9ab44e8 Mon Sep 17 00:00:00 2001 From: Gilles Grandou Date: Mon, 4 Dec 2023 22:25:22 +0100 Subject: [PATCH] add support for user runon.default.conf file --- runon/runon.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/runon/runon.py b/runon/runon.py index b30a72c..76d73f6 100755 --- a/runon/runon.py +++ b/runon/runon.py @@ -18,7 +18,13 @@ def natural_sortkey(string): return tuple(int(num) if num else alpha for num, alpha in tokenize(string)) def read_ini(user_confname, osname=''): - ini_list = [ 'runon.conf', '.runon.conf', os.path.join(xdg.BaseDirectory.xdg_config_home, 'runon', 'runon.conf'), '/etc/runon/runon.conf' ] + ini_list = [ + 'runon.conf', + '.runon.conf', + os.path.join(xdg.BaseDirectory.xdg_config_home, 'runon', 'runon.conf'), + os.path.join(xdg.BaseDirectory.xdg_config_home, 'runon', 'runon.default.conf'), + '/etc/runon/runon.conf', + ] defaults = { 'osname': osname, 'user': getpass.getuser()