Changeset 5dbf66e for protocols/purple


Ignore:
Timestamp:
2016-06-13T00:55:26Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
ad5a907
Parents:
135271c
Message:

purple: add $plugindir/purple to the plugin search path

This allows adding bitlbee-specific purple plugins in a directory
controlled by the user who starts bitlbee (as it can be defined in
bitlbee.conf, PluginDir).

Pidgin and finch have something similar allowing users to place plugins
in ~/.purple/plugins:

path = g_build_filename(purple_user_dir(), "plugins", NULL);

The direct equivalent would be to use our config dir, but i'd rather not
put executable modules there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/purple/purple.c

    r135271c r5dbf66e  
    14521452        dir = g_strdup_printf("%s/purple", global.conf->configdir);
    14531453        purple_util_set_user_dir(dir);
     1454        g_free(dir);
     1455
     1456        dir = g_strdup_printf("%s/purple", global.conf->plugindir);
     1457        purple_plugins_add_search_path(dir);
    14541458        g_free(dir);
    14551459
Note: See TracChangeset for help on using the changeset viewer.