Your message dated Sat, 05 Jul 2014 15:48:47 +0000
with message-id <[email protected]>
and subject line Bug#753664: Removed package(s) from unstable
has caused the Debian Bug report #150705,
regarding [patch] options should be available as config file
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
150705: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=150705
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: hotkeys
Version: N/A; reported 2002-06-23
Severity: wishlist

It would be nice if the "nosplash", "background" and "osd" options were
available as config file options.

The following patch does just that, but does not modify documentation.

I have decided to file this as a wishlist bug, instead of adding it to
the NMU I made, since this is out of the scope of NMU's.

Mike.


-----------[snip]---------------
diff -urN hotkeys-0.5.5.1.orig/src/conf.c hotkeys-0.5.5.1/src/conf.c
--- hotkeys-0.5.5.1.orig/src/conf.c     Sun Jun 23 00:40:16 2002
+++ hotkeys-0.5.5.1/src/conf.c  Sun Jun 23 00:27:32 2002
@@ -41,6 +41,10 @@
     /* CDROM device */
     "CDROM",           "/dev/cdrom",
 
+    /* Options */
+    "daemon",          "False",
+    "no_splash",       "False",
+
     /* general actions */
     "PrevTrack",       "xmms --rew",
     "Play",            "xmms --play",
@@ -73,6 +77,7 @@
 */
     /* xosd stuffs */
 //    "osd_font",        
"-*-lucidatypewriter-bold-r-normal-*-*-250-*-*-*-*-*-*",
+    "osd_enabled",     "False",
     "osd_font",        "lucidasanstypewriter-bold-24",
     "osd_color",       "LawnGreen",
     "osd_timeout",     "3",
@@ -116,6 +121,18 @@
     /* Clear the structures as per db2's documentation */
     memset( &k, 0, sizeof(k) );
     memset( &data, 0, sizeof(data) );
+
+    if (strncasecmp(value, "false", 5) == 0 ||
+        strncasecmp(value, "off", 3) == 0 ||
+        strncasecmp(value, "no", 2) == 0 ||
+        strncasecmp(value, "0", 1) == 0)
+      value = xstrdup("0");
+
+    if (strncasecmp(value, "true", 4) == 0 ||
+        strncasecmp(value, "no", 2) == 0 ||
+        strncasecmp(value, "yes", 3) == 0 ||
+        strncasecmp(value, "1", 1) == 0)
+      value = xstrdup("1");
 
     k.data = xstrdup(key);
     k.size = strlen(key) + 1;
diff -urN hotkeys-0.5.5.1.orig/src/hotkeys.c hotkeys-0.5.5.1/src/hotkeys.c
--- hotkeys-0.5.5.1.orig/src/hotkeys.c  Sun Jun 23 00:40:16 2002
+++ hotkeys-0.5.5.1/src/hotkeys.c       Sun Jun 23 00:36:27 2002
@@ -1472,6 +1472,12 @@
     kbd.noOfCustomCmds = 0;
     kbd.defCmds = XCALLOC( defEntry, NUM_PREDEF_HOTKEYS );
 
+#ifdef HAVE_LIBXOSD
+    if ( getConfig("osd_enabled")[0] == '0' ) { toggleOSD("off"); }
+#endif
+    if ( getConfig("daemon")[0] == '1' ) { background = True; }
+    if ( getConfig("no_splash")[0] == '1' ) { noSplash = True; }
+
     if ( !parseArgs(argc,argv) )
         bailout();
 
@@ -1497,7 +1503,7 @@
     initXOSD();
 #endif
 
-    if ( noSplash )
+    if ( noSplash && !background )
         printf( "%s started successfully.\n", progname );
 
     /* Process the events in a forever loop */
-----------[snip]---------------


-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux relativity 2.4.18 #1 Sun Apr 7 17:54:02 NZST 2002 i686
Locale: LANG=C, LC_CTYPE=C

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 0.5.7.4-0.3+rm

Dear submitter,

as the package hotkeys has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/753664

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to