Summary: | Search path on Windows for .manager files | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Sunil Mohan Adapa <sunil> |
Component: | tp-glib | Assignee: | Telepathy bugs list <telepathy-bugs> |
Status: | RESOLVED INVALID | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Windows (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Sunil Mohan Adapa
2009-01-08 06:12:41 UTC
We currently look in g_get_user_data_dir() and then g_get_system_data_dirs(), which have platform-specific results that are meant to be appropriate. I'd really rather not introduce Windows #ifdefs when GLib is already meant to do this for us! On Windows, the documentation mentions that this looks in "the "share" subfolder in the installation folder for the package containing the DLL that calls this function, if it can be determined" and in "the "share" subfolder in the installation folder for GLib, and in the installation folder for the package the application's .exe file belongs to" (quoting from devhelp). Hopefully one of those locations is suitable for your needs? For instance, if your main executable is either C:\Program Files\Spicebird\bin\spicebird.exe or C:\Program Files\Spicebird\spicebird.exe, you should be able to put .manager files in C:\Program Files\Spicebird\share\telepathy\managers. Installing on Unix as a monolithic tarball containing all the dependencies is frowned upon (in particular, distro security teams absolutely hate it); I'd rather have telepathy-glib used "correctly", e.g. via distro packaging. In any case, the data search path on Unix is well-defined, and references the XDG base directory specification. If you need to manipulate the search path, you can do so by appending to the environment variable $XDG_DATA_DIRS in some sort of launcher script. (In reply to comment #1) [...] > On Windows, the documentation mentions that this looks in "the "share" > subfolder in the installation folder for the package containing the DLL that [...] > directory specification. If you need to manipulate the search path, you can do > so by appending to the environment variable $XDG_DATA_DIRS in some sort of > launcher script. > Ahh! I missed both the ways and stupidly patched the tp_connection_manager_find_manager_file function. What you said should surely work and looks good too. I shall give it a try. Sorry for raising this bug. Marking as invalid since you seem to agree. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.