[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xlock-discuss
Subject:    [Xlock-discuss] [patch] DEF_PLAY sound definition
From:       xlock-discuss-admin () tux ! org
Date:       2002-02-27 4:44:46
[Download RAW message or body]

This is "DEF_PLAY and sound resource" fix patch.

This patch repairs DEF_PLAY commandline and sound filename
on resource file to fullpath.

example:

If ./configure option is --enable-def-play=/usr/bin/play ,
DEF_PLAY commandline is:

  ( /usr/bin/playcomplete.au ) 2>&1

and patched DEF_PLAY commandline is:

  ( /usr/bin/play /usr/share/sounds/xlockmore/complete.au ) 2>&1

xlockmore version: 5.03

diff -aurN xlockmore-5.03.orig/xlock/XLock.ad xlockmore-5.03/xlock/XLock.ad
--- xlockmore-5.03.orig/xlock/XLock.ad	Sat Dec 15 01:51:13 2001
+++ xlockmore-5.03/xlock/XLock.ad	Tue Feb 26 23:10:12 2002
@@ -46,10 +46,10 @@
 !XLock.icongeometry: 256x256
 
 ! For sound
-XLock.locksound: complete.au
-XLock.infosound: identify-please.au
-XLock.validsound: thank-you.au
-XLock.invalidsound: not-programmed.au
+XLock.locksound: /usr/share/sounds/xlockmore/thank-you.au
+XLock.infosound: /usr/share/sounds/xlockmore/identify-please.au
+XLock.validsound: /usr/share/sounds/xlockmore/complete.au
+XLock.invalidsound: /usr/share/sounds/xlockmore/not-programmed.au
 
 ! For bouboule, pyro, star, & worm modes
 XLock.use3d: off
diff -aurN xlockmore-5.03.orig/xlock/sound.c xlockmore-5.03/xlock/sound.c
--- xlockmore-5.03.orig/xlock/sound.c	Tue Oct 30 01:29:01 2001
+++ xlockmore-5.03/xlock/sound.c	Tue Feb 26 23:08:58 2002
@@ -145,7 +145,7 @@
 	char        *progrun = NULL;
 
 	if ((progrun = (char *) malloc(strlen(DEF_PLAY) + strlen(filename) + 10)) != NULL) {
-		(void) sprintf(progrun, "( %s%s ) 2>&1", DEF_PLAY, filename);
+		(void) sprintf(progrun, "( %s %s ) 2>&1", DEF_PLAY, filename);
 		/*(void) printf("%s\n", progrun); */
 		(void) system(progrun);
 		(void) free((void *) progrun);

-- 
Shingo YAMAGUCHI <shingo@kip.iis.toyama-u.ac.jp>
Toyama Univ., Japan

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic