From a1ab6c96f2ff9c76df2a418c72f5b9d94fc6e7a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sun, 12 Nov 2017 23:56:04 +0100 Subject: [PATCH] Fix unused result --- src/discord_register_linux.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/discord_register_linux.cpp b/src/discord_register_linux.cpp index bb100b1..a696ac2 100644 --- a/src/discord_register_linux.cpp +++ b/src/discord_register_linux.cpp @@ -85,7 +85,9 @@ extern "C" void Discord_Register(const char* applicationId, const char* command) "xdg-mime default discord-%s.desktop x-scheme-handler/discord-%s", applicationId, applicationId); - system(xdgMimeCommand); + if (system(xdgMimeCommand) < 0) { + fprintf(stderr, "Failed to register mime handler\n"); + } } extern "C" void Discord_RegisterSteamGame(const char* applicationId, const char* steamId)