[Pkg-lxde-maintainers] Bug#607144: libfm0: Problem iterating over the global system directories.

Fernando Lopez soportelihuen at linti.unlp.edu.ar
Tue Dec 14 22:12:32 UTC 2010


Package: libfm0
Version: 0.1.12-1
Severity: important
Tags: squeeze

When looping over the system directories in fm-app-lookup.c the directory
with index 0 is never used.

This causes that when you have only one system dir returned by
g-get-system-config-dirs() the applications cannot find any configuration.

This is a patch that resolves this:
-----------------------------PATCH --------------------------------
diff -Naur libfm-0.1.12.old//src/gio/fm-app-lookup.c libfm-0.1.12/src/gio/fm-app-lookup.c
--- libfm-0.1.12.old//src/gio/fm-app-lookup.c	2010-12-14 18:58:10.000000000 -0300
+++ libfm-0.1.12/src/gio/fm-app-lookup.c	2010-12-14 18:59:16.000000000 -0300
@@ -143,7 +143,7 @@
         if(g_key_file_load_from_file(kf, fname, 0, NULL))
             desktop_id = g_key_file_get_string(kf, "Preferred Applications", key, NULL);
         n = g_strv_length(dirs);
-        for( i = n - 1; i > 0; --i )
+        for( i = n - 1; i >= 0; --i )
         {
             fname = g_build_filename(dirs[i], "libfm/pref-apps.conf", NULL);
             if( g_key_file_load_from_file(kf, fname, 0, NULL) )
---------------------------- END OF PATCH ---------------------------

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-486
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libfm0 depends on:
ii  libc6                         2.11.2-7   Embedded GNU C Library: Shared lib
ii  libglib2.0-0                  2.24.2-1   The GLib library of C routines
ii  libmenu-cache1                0.3.2-2    an implementation of the freedeskt
ii  lxmenu-data                   0.1.1-1    freedesktop.org menu specification

libfm0 recommends no packages.

libfm0 suggests no packages.

-- no debconf information





More information about the Pkg-lxde-maintainers mailing list