Fix unused result

This commit is contained in:
Michał Janiszewski 2017-11-12 23:56:04 +01:00 committed by Chris Marsh
parent 0ea7ddbd5a
commit a1ab6c96f2

View file

@ -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", "xdg-mime default discord-%s.desktop x-scheme-handler/discord-%s",
applicationId, applicationId,
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) extern "C" void Discord_RegisterSteamGame(const char* applicationId, const char* steamId)