add support for user runon.default.conf file

This commit is contained in:
Gilles Grandou 2023-12-04 22:25:22 +01:00
parent ef6c079a09
commit 1447b62755
1 changed files with 7 additions and 1 deletions

View File

@ -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()