Guard qvm-start-daemon with generic 'guivm' or 'audiovm' services
Not a flavor-specific one (guivm-gui-agent). QubesOS/qubes-issues#4186
This commit is contained in:
		
							parent
							
								
									416532ba42
								
							
						
					
					
						commit
						8be74249df
					
				| @ -56,8 +56,8 @@ Options | ||||
| .. option:: --force | ||||
| 
 | ||||
|    Force running, even if this isn't GUI/Audio domain. GUI domain is a domain | ||||
|    with 'guivm-gui-agent' qvm-service enabled. Similarly for Audio domain it is | ||||
|    'audiovm-audio-agent' qvm-service. | ||||
|    with 'guivm' qvm-service enabled. Similarly for Audio domain it is | ||||
|    'audiovm' qvm-service. | ||||
| 
 | ||||
| .. option:: --kde | ||||
| 
 | ||||
|  | ||||
| @ -710,12 +710,12 @@ parser.add_argument('--kde', action='store_true', | ||||
| # Add it for the help only | ||||
| parser.add_argument('--force', action='store_true', default=False, | ||||
|                     help='Force running daemon without enabled services' | ||||
|                          ' \'guivm-gui-agent\' or \'audiovm-audio-agent\'') | ||||
|                          ' \'guivm\' or \'audiovm\'') | ||||
| 
 | ||||
| 
 | ||||
| def main(args=None): | ||||
|     """ Main function of qvm-start-daemon tool""" | ||||
|     only_if_service_enabled = ['guivm-gui-agent', 'audiovm-audio-agent'] | ||||
|     only_if_service_enabled = ['guivm', 'audiovm'] | ||||
|     enabled_services = [service for service in only_if_service_enabled if | ||||
|                         os.path.exists('/var/run/qubes-service/%s' % service)] | ||||
|     if not enabled_services and '--force' not in sys.argv and \ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Marek Marczykowski-Górecki
						Marek Marczykowski-Górecki