From 2b50c72bda40132dbb87d4534cd6aae0fd62e7f2 Mon Sep 17 00:00:00 2001 From: Ander <9and3r@gmail.com> Date: Sun, 17 May 2015 11:40:54 +0200 Subject: [PATCH] Stop using mopidy.utils fixes#6 --- mopidy_touchscreen/screens/menu_screen.py | 2 +- mopidy_touchscreen/touch_screen.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mopidy_touchscreen/screens/menu_screen.py b/mopidy_touchscreen/screens/menu_screen.py index 65f583b..d40e957 100644 --- a/mopidy_touchscreen/screens/menu_screen.py +++ b/mopidy_touchscreen/screens/menu_screen.py @@ -25,7 +25,7 @@ class MenuScreen(BaseScreen): clicked = self.list.touch_event(event) if clicked is not None: if clicked == 0: - mopidy.utils.process.exit_process() + os.system("pkill mopidy") elif clicked == 1: if os.system("gksu -- shutdown now -h") != 0: os.system("sudo shutdown now -h") diff --git a/mopidy_touchscreen/touch_screen.py b/mopidy_touchscreen/touch_screen.py index adb4783..1e1d53c 100644 --- a/mopidy_touchscreen/touch_screen.py +++ b/mopidy_touchscreen/touch_screen.py @@ -81,9 +81,9 @@ class TouchScreen(pykka.ThreadingActor, core.CoreListener): pygame.display.flip() for event in pygame.event.get(): if event.type == pygame.QUIT: - utils.process.exit_process() + os.system("pkill mopidy") elif event.type == pygame.KEYUP and event.key == pygame.K_q: - utils.process.exit_process() + os.system("pkill mopidy") elif event.type == pygame.VIDEORESIZE: self.get_display_surface(event.size) self.screen_manager.resize(event)