[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#529172: fails to load icons



Package: gapcmon
Version: 0.8.9-2
Severity: normal
Tags: patch


It looks like the package is looking in the wrong directory as a result of a
distro patch (debian/patches/01-icondir.patch). I've attached a replacement
patch which should do the trick.

-- System Information:
Debian Release: squeeze/sid
  APT prefers maverick-updates
  APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500, 'maverick-backports'), (500, 'maverick'), (400, 'maverick-proposed')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-ck1-hyper1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_SG.utf8, LC_CTYPE=en_SG.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Author: Daniel Baumann <daniel@debian.org>
Description: Moving icons to private directory.

Index: gapcmon-0.8.9/src/gapcmon.c
===================================================================
--- gapcmon-0.8.9.orig/src/gapcmon.c	2008-07-14 09:40:45.000000000 +0800
+++ gapcmon-0.8.9/src/gapcmon.c	2011-01-12 21:07:53.422750267 +0800
@@ -4123,7 +4123,7 @@
    g_return_val_if_fail(pcfg != NULL, FALSE);
 
    /* build system path for icons */
-   pch_4 = g_strconcat (ICON_DIR, "/share/pixmaps/", NULL);
+   pch_4 = "/usr/share/icons/gapcmon";
 
    i_x = 0;
    while (i_x == 0) {
@@ -4156,7 +4156,6 @@
    if (i_x == 0) {
       gapc_util_log_app_msg("gapc_util_load_icons", "Unable to find icons",
          "--load failed!");
-      g_free (pch_4);
       return FALSE;
    }
 
@@ -4198,7 +4197,6 @@
       }
    }
 
-   g_free (pch_4);
    return b_rc;
 }
 

Reply to: