After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 626108 - Defining XDG_DATA_DIRS prevents backends from being loaded
Defining XDG_DATA_DIRS prevents backends from being loaded
Status: RESOLVED FIXED
Product: folks
Classification: Platform
Component: libfolks
0.1.x
Other Linux
: Normal normal
: gnome-2.32
Assigned To: folks-maint
folks-maint
Depends on:
Blocks:
 
 
Reported: 2010-08-05 13:34 UTC by Philip Withnall
Modified: 2010-08-05 13:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
strace log (771.83 KB, text/plain)
2010-08-05 13:36 UTC, Guillaume Desmottes
Details

Description Philip Withnall 2010-08-05 13:34:58 UTC
+++ This bug was initially created as a clone of Bug #625815 +++

Oh I got it! My test user as this env variable defined:
XDG_DATA_DIRS=/home/cassidy/usr/share

When unsetting it, Folks actually find the TP backend:

(empathy:15519): Core-DEBUG: Using built-in backend dir
'/usr/lib/folks/11/backends' (override with environment variable
FOLKS_BACKEND_DIR)
(empathy:15519): Core-DEBUG: backend-store.vala:133: Searching for modules in
folder '/usr/lib/folks/11/backends' ..
(empathy:15519): Core-DEBUG: backend-store.vala:133: Searching for modules in
folder '/usr/lib/folks/11/backends/telepathy' ..
(empathy:15519): Core-DEBUG: backend-store.vala:179: Finished searching for
modules in folder '/usr/lib/folks/11/backends'
(empathy:15519): Core-DEBUG: backend-store.vala:105: New backend 'telepathy'
available
(empathy:15519): Core-DEBUG: backend-store.vala:221: Loaded module source:
'/usr/lib/folks/11/backends/telepathy/libfolks-backend-telepathy.so'
(empathy:15519): Core-DEBUG: backend-store.vala:179: Finished searching for
modules in folder '/usr/lib/folks/11/backends/telepathy'


But there is obivoulsy something wrong as having this var defined doesn't
affect the paths displayed in the debug logs.
Comment 1 Guillaume Desmottes 2010-08-05 13:36:43 UTC
Created attachment 167191 [details]
strace log
Comment 2 Philip Withnall 2010-08-05 13:43:53 UTC
commit bd0f324e0e3e747842ccadea165439bf6b666a3f
Author: Philip Withnall <philip.withnall@collabora.co.uk>
Date:   Thu Aug 5 14:42:22 2010 +0100

    Warn if the MIME type of a potential backend couldn't be determined
    
    This prevents backends silently not being loaded if shared-mime-info wasn't
    installed. Closes: bgo#626108

 folks/backend-store.vala |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)