Stop using mopidy.utils fixes#6

This commit is contained in:
Ander
2015-05-17 11:40:54 +02:00
parent c76337a7f2
commit 2b50c72bda
2 changed files with 3 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ class MenuScreen(BaseScreen):
clicked = self.list.touch_event(event) clicked = self.list.touch_event(event)
if clicked is not None: if clicked is not None:
if clicked == 0: if clicked == 0:
mopidy.utils.process.exit_process() os.system("pkill mopidy")
elif clicked == 1: elif clicked == 1:
if os.system("gksu -- shutdown now -h") != 0: if os.system("gksu -- shutdown now -h") != 0:
os.system("sudo shutdown now -h") os.system("sudo shutdown now -h")

View File

@@ -81,9 +81,9 @@ class TouchScreen(pykka.ThreadingActor, core.CoreListener):
pygame.display.flip() pygame.display.flip()
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == pygame.QUIT: if event.type == pygame.QUIT:
utils.process.exit_process() os.system("pkill mopidy")
elif event.type == pygame.KEYUP and event.key == pygame.K_q: elif event.type == pygame.KEYUP and event.key == pygame.K_q:
utils.process.exit_process() os.system("pkill mopidy")
elif event.type == pygame.VIDEORESIZE: elif event.type == pygame.VIDEORESIZE:
self.get_display_surface(event.size) self.get_display_surface(event.size)
self.screen_manager.resize(event) self.screen_manager.resize(event)