[gnome-games] steam: Replace SteamRunner by CommandRunner
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] steam: Replace SteamRunner by CommandRunner
- Date: Thu, 12 May 2016 10:19:57 +0000 (UTC)
commit 375eeba5c2295ca447ff8bc39c8608789f884140
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu May 12 12:10:53 2016 +0200
steam: Replace SteamRunner by CommandRunner
Remove SteamRunner as Commandrunner can do exactly what it does, using
CommandRunner instead.
This limits code duplication.
Fixes #293
plugins/steam/src/Makefile.am | 1 -
plugins/steam/src/steam-game.vala | 4 ++-
plugins/steam/src/steam-runner.vala | 55 -----------------------------------
3 files changed, 3 insertions(+), 57 deletions(-)
---
diff --git a/plugins/steam/src/Makefile.am b/plugins/steam/src/Makefile.am
index 3f21aff..3a79455 100644
--- a/plugins/steam/src/Makefile.am
+++ b/plugins/steam/src/Makefile.am
@@ -11,7 +11,6 @@ libgames_steam_plugin_la_SOURCES = \
steam-icon.vala \
steam-plugin.vala \
steam-registry.vala \
- steam-runner.vala \
$(NULL)
libgames_steam_plugin_la_VALAFLAGS = \
diff --git a/plugins/steam/src/steam-game.vala b/plugins/steam/src/steam-game.vala
index e8c1a46..7b64869 100644
--- a/plugins/steam/src/steam-game.vala
+++ b/plugins/steam/src/steam-game.vala
@@ -29,7 +29,9 @@ private class Games.SteamGame : Object, Game {
}
public Runner get_runner () throws Error {
- return new SteamRunner (game_id);
+ string[] args = { "steam", @"steam://rungameid/$game_id" };
+
+ return new CommandRunner (args, false);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]