applications-menu icon indicating copy to clipboard operation
applications-menu copied to clipboard

Slinshot view interferes with bluetooth plug

Open jeremypw opened this issue 7 years ago • 4 comments
trafficstars

When the bluetooth switchboard plug is shown and bluetooth powered on, the discoverability oscillates on and off. By a process of elimination, this was tracked down to the application launcher in wingpanel. If (and only if) this is disabled then bluetooth is stable.

jeremypw avatar Apr 04 '18 10:04 jeremypw

I had some left over debug statements in the bluetooth plug and noticed while developing on the applications menu those statements where consistently called when opening the applications menu. Maybe because the switchboard-plugin in the application menu uses the bluetooth plug something is called and that causes interference?

peteruithoven avatar Sep 27 '18 20:09 peteruithoven

@peteruithoven I'm almost sure that this is probably those lines: https://github.com/elementary/switchboard-plug-bluetooth/blob/master/src/Plug.vala#L34

This shouldn't happen in the constructor at all, or at least should be initialized statically. A problem here will be that this code has to be there for plug to be dynamically shown in Switchboard.

donadigo avatar Sep 27 '18 20:09 donadigo

Maybe the plug could receive some kind of argument, so it doesn't initialize the manager for the application-menu?

peteruithoven avatar Sep 27 '18 20:09 peteruithoven

@peteruithoven the problem with this is that plug construction definition is fixed, you can't add new arguments to the constructor, ATM I can't think of how I would approach this.

donadigo avatar Sep 27 '18 20:09 donadigo