self.set_heading(_("Dbus service is disabled or unresponsive."))
self.set_body(_("It is needed for modules that require root permissions.\nDo you want to try to turn on the service?\nTune It will restart after enabling the service."))
self.add_response("yes",_("Yes"))
self.add_response("no",_("No"))
self.connect('response',self.on_response)
defon_response(self,dialog,response):
ifresponse=="yes":
self.service_enable_with_restart()
elifresponsein("no","close"):
dialog.close()
defservice_status(self):
try:
# Запускаем команду systemctl is-active <service_name>