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
|
.. option:: --force
|
||||||
|
|
||||||
Force running, even if this isn't GUI/Audio domain. GUI domain is a domain
|
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
|
with 'guivm' qvm-service enabled. Similarly for Audio domain it is
|
||||||
'audiovm-audio-agent' qvm-service.
|
'audiovm' qvm-service.
|
||||||
|
|
||||||
.. option:: --kde
|
.. option:: --kde
|
||||||
|
|
||||||
|
@ -710,12 +710,12 @@ parser.add_argument('--kde', action='store_true',
|
|||||||
# Add it for the help only
|
# Add it for the help only
|
||||||
parser.add_argument('--force', action='store_true', default=False,
|
parser.add_argument('--force', action='store_true', default=False,
|
||||||
help='Force running daemon without enabled services'
|
help='Force running daemon without enabled services'
|
||||||
' \'guivm-gui-agent\' or \'audiovm-audio-agent\'')
|
' \'guivm\' or \'audiovm\'')
|
||||||
|
|
||||||
|
|
||||||
def main(args=None):
|
def main(args=None):
|
||||||
""" Main function of qvm-start-daemon tool"""
|
""" 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
|
enabled_services = [service for service in only_if_service_enabled if
|
||||||
os.path.exists('/var/run/qubes-service/%s' % service)]
|
os.path.exists('/var/run/qubes-service/%s' % service)]
|
||||||
if not enabled_services and '--force' not in sys.argv and \
|
if not enabled_services and '--force' not in sys.argv and \
|
||||||
|
Loading…
Reference in New Issue
Block a user