-
-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable blueman-applet autostart in Gnome #2102
Comments
Gnome seems to use an application called Tweaks to manage "Startup Applications". You should find and have an option to disable blueman there. Could you elaborate on " |
It is not in tweaks nor in any of the directories for autostart (~/.config/autostart $XDG_CONFIG_HOME/autostart $XDG_CONFIG_DIRS/autostart /usr/share/gnome/autostart )
I just restarted my laptop so I can share the output in the terminal. I have pasted some relevant information bellow. After reboot due to disabling bluetooth on boot I use blueman applet to enable it. For some reason I had totally forgotten about
I want to turn on bluetooth to connect to my headset. Should I use |
I don't exactly know about the Fedora package, but generally blueman ships a desktop file, usually installed to If a killswitch is enabled, |
Indeed this file exists. However there are also other dekstop files in that directory, e.g. nm-applet.desktop, that do not start automatically. Just to clarify, the only program that appears in gnome-tweaks autostart is dropbox, which I added manually. |
|
I moved it to {file}.bak in the same dir and rebooted. As expected, the applet didn't start. @cschramm Thanks for the help.
Maybe the same should be done for blueman and gnome? It can be added in tweaks for users who want to use it in Gnome. Gnome tweaks ignores .desktop items in that directory so it's hard to figure out how it starts. Also /autostart directories are usually not used by WM users. Curiously, my second issue with Edit: blueman-applet appeared out of nowhere. I checked my dotfiles and scripts. I don't have blueman in any keybind/script. |
I do not really get the use case, to be honest. Why would a Gnome user even install blueman if he does not intend to use it? The killswitch behavior makes sense. blueman-applet actually has a "KillSwitch" plugin that does exactly that
|
On my main laptop I have been using Swaywm for more than a year, but I will be using Gnome for some time. Thus I need blueman installed for sway, but not running when I use gnome. Also, on our share system I use Sway and my gf uses Gnome. I don't share my main laptop, but not all systems are used by a single user. It should be possible for each user do choose his/her autostart-applications.
Is it the same as using
Does that reduce power consumption? |
That sounds rather specific and arbitrary. One could also want to start blueman on Gnome (his primary desktop) but not on another (secondary) desktop. I don't see why we should exclude it from autostart in Gnome and think autostart for all systems (that do support /etc/xdg/autostart) is a sane default. I'm sure there is a way to configure autostart on current Gnome like on any other system, although I do not see it.
Basically yes. It blocks the kill switch when Bluetooth is powered off and unblocks it when it's powered on. ("Bluetooth is powered" is a little bit misleading as it's actually per adapter, but let's assume just a single one.)
I would not expect it to have a relevant impact. I guess the motivation for the plugin was mostly to reduce rfkill and the concept of powering adapters to just a single Bluetooth on / off state. |
Most Sway users I know switch to Gnome when they want to game, as there significant performance gains for many games. But that is not the most important reason.
|
That's not an argument for excluding Gnome, you're arguing for not shipping an autostart desktop file at all. The standard way to disable the system-wide default is to place a user-specific file that overrides it. That'd typically go to |
I am not sure what should happen because this is the first time I'm dealing with something like that. Is that directory in
If you keep things as is I will solve my issue by adding the file you suggest in My opinion is that the desktop file should be removed from If it was present in the autostart list and you could disable it in the GUI
I should note that birdtray, which is a similar type of utility does not ship a .desktop icon and enabling it in the autostart menu is pretty intuitive. Sure, tweaks is not shipped by default, but neither do tray icons. |
Does it allow you to disable the service if you add
To |
I don't think the service is enabled. We figured out it was the .desktop file in |
I'm not so sure Gnome uses it at all. But you're welcome to ignore the suggestion and I'll be happy to close the issue as solved. |
After adding
I checked the status.
If you are referring to |
Yes. We assume that users want to use blueman if it's installed and blueman-applet is vital for that, especially as it acts as the agent to BlueZ. It thus needs to get auto-started and the Desktop Application Autostart Specification is the absolute standard way to achieve that and supported by most desktop environments.
blueman-applet is not about a tray icon. I agree that blueman is redundant for Gnome as typically gnome-bluetooth is in place and there is a chance that users of multiple desktop environments do not want to use blueman on Gnome, but there is just no If distributions or administrators decide to change defaults, they can always just remove or override the file, e.g. distributors might know that Gnome is not their default and thus probably not the only DE and opt in to
I'm surprised that Gnome seems to have dropped their autostart configuration completely (while still supporting |
Anyway, the rest is up to you. I don't know how other desktops work. I barely know how gnome works since it does things in a way I cannot understand. I'm just in general someone who strongly believes in minimal system-wide configurations and easy (gui) ways to configure things for each user (on the same system) individually. Sane defaults are great, as long as they are easily configured on a per-user basis. I don't want to have to manage multiple accounts on shared computers. |
My gues is that it completely relies on systemd for this. There is a
Now, with the below unit file I am able to control blueman-applet through
|
There's also no GUI for configuring the units, is there? But yes, that eases it from files to |
Plasma has it's own service things which seems unrelated to systemd but it also does not have a UI for managing this afaics. I just made a draft PR adding the bits above to the blueman-applet unit file #2105. |
This has been the most constructive conversation I've had about a problem for months. Thank you for engaging. Tag me if you want me to test something. |
I wanted to have a look at how birdtray implements autostart, however it does not seem to provide any such configuration. 🤔 It does ship a desktop file, typically to /use/share/applications. Possibly some configuration tools pick that up and offer to set up an autostart for it. An easy configuration solution could be to add and remove a link to such an application file in the autostart directory. |
If it is in the home directory it would be even better. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
blueman: blueman.x86_64 -- 1:2.3.5-3.fc38
BlueZ: bluez.x86_64 -- 5.68-1.fc38
Distribution: Fedora 38
Desktop environment: Gnome / Swaywm
I use Blueman in Sway and I start it in the config file. However, when using Gnome, blueman applet auto-starts and I can't find a way to disable it. In case it is relevant, here is the output of
systemctl --user list-units | grep blue
Thank you for your time.
P.S. I have disabled bluetooth on boot and I can't figure out how to enable using a key-bind.
bluetoothctl power on
works only after I first enable bluetooth using blueman or gnome settings. I would appreciate it if you could point me to the right direction.The text was updated successfully, but these errors were encountered: