tools/bluetooth-player: Return exit status for non-interactive
diff --git a/tools/bluetooth-player.c b/tools/bluetooth-player.c
index 441a934..ccb0b5e 100644
--- a/tools/bluetooth-player.c
+++ b/tools/bluetooth-player.c
@@ -1119,6 +1119,7 @@
int main(int argc, char *argv[])
{
GDBusClient *client;
+ int status;
bt_shell_init(argc, argv, NULL);
bt_shell_set_menu(&main_menu);
@@ -1134,11 +1135,11 @@
g_dbus_client_set_proxy_handlers(client, proxy_added, proxy_removed,
property_changed, NULL);
- bt_shell_run();
+ status = bt_shell_run();
g_dbus_client_unref(client);
dbus_connection_unref(dbus_conn);
- return 0;
+ return status;
}