Allow absolute paths instead of plugin names
If a mutter plugin name (in GConf, or more likely on the command line) looks like an absolute path, use that path directly rather than looking for the plugin in the plugins directory.
This commit is contained in:
parent
1b943f8191
commit
15daecacdc
@ -399,7 +399,10 @@ mutter_plugin_manager_load (MutterPluginManager *plugin_mgr)
|
||||
++params;
|
||||
}
|
||||
|
||||
path = g_strconcat (dpath, plugin_string, ".so", NULL);
|
||||
if (g_path_is_absolute (plugin_string))
|
||||
path = g_strdup (plugin_string);
|
||||
else
|
||||
path = g_strconcat (dpath, plugin_string, ".so", NULL);
|
||||
|
||||
if ((plugin = g_module_open (path, G_MODULE_BIND_LOCAL)))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user