OpenTTD

Tasklist

FS#6077 - Failed to open url

Attached to Project: OpenTTD
Opened by George Koehler (kernigh2) - Tuesday, 05 August 2014, 19:33 GMT
Last edited by Alberth (Alberth) - Saturday, 09 August 2014, 19:39 GMT
Type Bug
Category Core
Status Closed
Assigned To No-one
Operating System *BSD
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When I click a "Visit website" button (when checking online content or setting AIs or NewGRFs), it always fails:

dbg: [misc] Failed to open url: http://dev.openttdcoop.org/projects/opengfx

I find that src/os/unix/unix.cpp wants to run /usr/bin/xdg-open but my OpenBSD system has /usr/local/bin/xdg-open. The simple fix is to use execvp() to search for xdg-open in PATH. I attach a patch for trunk r26720. This is an hg diff, so use patch -p1.
This task depends upon

Closed by  Alberth (Alberth)
Saturday, 09 August 2014, 19:39 GMT
Reason for closing:  Implemented
Additional comments about closing:  in r26724, thanks for the patch.

Loading...