Changeset 34d16d5


Ignore:
Timestamp:
2015-09-06T02:26:41Z (5 years ago)
Author:
anderspapitto <anderspapitto@…>
Branches:
master
Children:
0ef1c92
Parents:
f5bbaba
Message:

Allow setting the plugin dir at runtime

This enables the use of bitlbee plugins in scenarios where there is no write access to the bitlbee lib/ directory.

One example is the NixOS linux distribution (which I'm currently packaging a bitlbee plugin for), where post-installation modification of a package (e.g. bitlbee) by another package (e.g. bitlbee-facebook) is not possible.

Another example would be a user without root access building and using a plugin with a system-provided (i.e. installed by root) bitlbee.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • conf.c

    rf5bbaba r34d16d5  
    248248                                g_free(conf->configdir);
    249249                                conf->configdir = g_strdup(ini->value);
     250                        } else if (g_strcasecmp(ini->key, "plugindir") == 0) {
     251                                g_free(conf->plugindir);
     252                                conf->plugindir = g_strdup(ini->value);
    250253                        } else if (g_strcasecmp(ini->key, "motdfile") == 0) {
    251254                                g_free(conf->motdfile);
Note: See TracChangeset for help on using the changeset viewer.