add support for user runon.default.conf file
This commit is contained in:
parent
ef6c079a09
commit
1447b62755
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user