r473 - trunk
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Jan 25 06:09:26 EST 2008
Author: icculus
Date: 2008-01-25 06:09:16 -0500 (Fri, 25 Jan 2008)
New Revision: 473
Modified:
trunk/platform_unix.c
Log:
More Unix browser launch fixes.
Modified: trunk/platform_unix.c
===================================================================
--- trunk/platform_unix.c 2008-01-25 11:01:41 UTC (rev 472)
+++ trunk/platform_unix.c 2008-01-25 11:09:16 UTC (rev 473)
@@ -1070,10 +1070,11 @@
boolean retval = false;
char *escapedurl = shellEscape(url);
char *cmd = format("xdg-open %0 >/dev/null 2>&1", escapedurl);
- int rc = system(cmd);
+
+ retval = (system(cmd) == 0);
free(cmd);
- if (rc != 0)
+ if (!retval)
{
// no xdg-open in the $PATH, or it failed. Try to do it ourselves...
const UnixDesktopType desktop = getDesktopType();
More information about the mojosetup-commits
mailing list