add support for user runon.default.conf file
This commit is contained in:
		@@ -18,7 +18,13 @@ def natural_sortkey(string):
 | 
				
			|||||||
    return tuple(int(num) if num else alpha for num, alpha in tokenize(string))
 | 
					    return tuple(int(num) if num else alpha for num, alpha in tokenize(string))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def read_ini(user_confname, osname=''):
 | 
					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 = {
 | 
					    defaults = {
 | 
				
			||||||
        'osname': osname,
 | 
					        'osname': osname,
 | 
				
			||||||
        'user': getpass.getuser()
 | 
					        'user': getpass.getuser()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user