Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Conversation

@jtojnar
Copy link
Contributor

@jtojnar jtojnar commented Oct 1, 2017

Previously, the connectors would only be looked for in a single directory, specified during compilation. This patch allows to traverse a list of directories provided by an environment variable.

We need it for NixOS where packages are installed into read-only tree so the different connectors cannot be placed into a single directory.

Previously, the connectors would only be looked for in a single
directory, specified during compilation. This patch allows to
traverse a list of directories provided by an environment variable.
@georgen117
Copy link

georgen117 commented Oct 2, 2017

From what I can see even if the environment variable DLYNA_CONNECTOR_PATH is not set the code still uses the original behavior so I don't see a problem with this commit.

@bb010g
Copy link

bb010g commented Apr 26, 2019

Is there anything blocking this?

@georgen117
Copy link

@bb010g Thanks for bringing this to my attention. I don't know if anything is blocking this change. I will contact the project maintainers in person and see if I can get some feed back. It looks to me that this commit may have just been forgotten about.

connector_path_list = g_strsplit (connector_path, G_SEARCHPATH_SEPARATOR_S, 0);

for (i = 0; connector_path_list[i]; i++) {
path = g_strdup_printf("%s/%s%s.so", connector_path_list[i],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For maximum compatibility you could probably use g_module_build_path here but that's minor and would also probably need a change for DLEYNA_CONNECTOR_LIB_PATTERN

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants