openbsd-ports/games/dopewars/patches/patch-src_dopewars_c
sthen 8fbf011a61 use .desktop files, don't hardcode /usr/bin/mozilla to open URLs in
x11 version (use xdg-open instead + add run dep), sync PLIST and use a
nicer DESCR from the installed docs.
2012-12-23 14:23:13 +00:00

22 lines
863 B
Plaintext

$OpenBSD: patch-src_dopewars_c,v 1.4 2012/12/23 14:23:13 sthen Exp $
--- src/dopewars.c.orig Fri Dec 30 21:26:13 2005
+++ src/dopewars.c Sun Dec 23 14:14:41 2012
@@ -2356,7 +2356,7 @@ gchar *GetDocRoot(void)
path = g_strdup_printf("file://%s\\", bindir);
g_free(bindir);
#else
- path = g_strdup_printf("file://%s/doc/%s-%s/", DPDATADIR, PACKAGE, VERSION);
+ path = g_strdup_printf("file://%s/doc/%s/", DPDATADIR, PACKAGE);
#endif
return path;
}
@@ -2443,7 +2443,7 @@ static void SetupParameters(GSList *extraconfigs, gboo
AssignName(&ServerName, "localhost");
AssignName(&ServerMOTD, "");
AssignName(&BindAddress, "");
- AssignName(&WebBrowser, "/usr/bin/mozilla");
+ AssignName(&WebBrowser, "/usr/local/bin/xdg-open");
AssignName(&Sounds.FightHit, SNDPATH"colt.wav");
AssignName(&Sounds.EnemyBitchKilled, SNDPATH"shotdown.wav");