mirror of
https://github.com/gryf/gryf-overlay.git
synced 2026-04-04 12:53:31 +02:00
initial import
This commit is contained in:
1
x11-plugins/wmxmms/files/digest-wmxmms-0.1.4
Normal file
1
x11-plugins/wmxmms/files/digest-wmxmms-0.1.4
Normal file
@@ -0,0 +1 @@
|
||||
MD5 b7fc2b01340f267b7f29b608d3f63a98 WMxmms-0.1.4.tar.gz 269610
|
||||
1
x11-plugins/wmxmms/files/digest-wmxmms-0.1.4-r1
Normal file
1
x11-plugins/wmxmms/files/digest-wmxmms-0.1.4-r1
Normal file
@@ -0,0 +1 @@
|
||||
MD5 b7fc2b01340f267b7f29b608d3f63a98 WMxmms-0.1.4.tar.gz 269610
|
||||
50
x11-plugins/wmxmms/files/wmxmms-middle-click.patch
Normal file
50
x11-plugins/wmxmms/files/wmxmms-middle-click.patch
Normal file
@@ -0,0 +1,50 @@
|
||||
Common subdirectories: ../WMxmms-0.1.4.orig/src/.xvpics and src/.xvpics
|
||||
diff -u ../WMxmms-0.1.4.orig/src/xmms_func.c src/xmms_func.c
|
||||
--- ../WMxmms-0.1.4.orig/src/xmms_func.c 2003-03-31 10:40:23.000000000 -0700
|
||||
+++ src/xmms_func.c 2005-04-28 15:55:08.000000000 -0600
|
||||
@@ -110,17 +110,39 @@
|
||||
{
|
||||
char *command;
|
||||
int status;
|
||||
+ int count = 0;
|
||||
+
|
||||
+ if( xmms_remote_is_running(xmms_session) )
|
||||
+ {
|
||||
+ fprintf(stderr, "XMMS is already running...");
|
||||
+ return;
|
||||
+ }
|
||||
|
||||
command=malloc(strlen(xmms_cmd)+5);
|
||||
sprintf(command, "%s &", xmms_cmd);
|
||||
+
|
||||
status = system(command);
|
||||
- if (status)
|
||||
- {
|
||||
- fprintf(stderr, "XMMS can't be launched, exiting...");
|
||||
- exit(1);
|
||||
- }
|
||||
- while (!xmms_remote_is_running(xmms_session))
|
||||
+
|
||||
+ while (!xmms_remote_is_running(xmms_session) && count < 1800) {
|
||||
usleep(10000L);
|
||||
+ count++;
|
||||
+ if( (count % 60) == 0 )
|
||||
+ {
|
||||
+ fprintf(stderr,
|
||||
+ "There may be a problem starting XMMS, or the "
|
||||
+ "XMMS remote is not running. Sleeping for 5 "
|
||||
+ "seconds and checking for the remote again.\n");
|
||||
+ sleep(5);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ if( (count == 1800) && status){
|
||||
+ fprintf(stderr,
|
||||
+ "status(%d) XMMS can't be launched, exiting...\n",
|
||||
+ status);
|
||||
+ exit(1);
|
||||
+ }
|
||||
+
|
||||
free(command);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user