diff --git a/src/gnome-shell-plugin.c b/src/gnome-shell-plugin.c index 96075f41f..8d85fa237 100644 --- a/src/gnome-shell-plugin.c +++ b/src/gnome-shell-plugin.c @@ -670,3 +670,17 @@ MetaPluginInfo *gnome_shell_plugin_plugin_info (MetaPlugin *plugin) return &info; } + +#if HAVE_BLUETOOTH +/* HACK: + Add a non-static function that calls into libgnome-bluetooth-applet.so, + to avoid the linker being too smart and removing the dependency. + This function is never actually called. +*/ +extern GType bluetooth_applet_get_type(void); +void _shell_link_to_bluetooth(void); + +void _shell_link_to_bluetooth(void) { + bluetooth_applet_get_type(); +} +#endif