Skip to main content
Topic: what starts nm-applet in cinnamon desktop? (Read 666 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

what starts nm-applet in cinnamon desktop?

I'm running connman-gtk and don't need nm-applet but I can't permanently get rid of it. Cinnamon DE wants it installed so I can't just uninstall it.

I looked in Cinnamon Settings, but it is off.
I looked in /etc/xdg/autostart but it is not there.

connman-gtk is in ~/.config/autostart but there isn't a .desktop for nm-applet.

For now, I just killed nm-applet and moved /usr/bin/nm-applet to /usr/bin/nm-applet.disabled.

Re: what starts nm-applet in cinnamon desktop?

Reply #1
I don't use any network manager so may be off the mark but can't you just uninstall nm-applet and ideally NetworkManger as well ?
If you use connman you don't need them AFAIK

Re: what starts nm-applet in cinnamon desktop?

Reply #2
There is a desktop file in "/etc/xdg/autostart/nm-applet.desktop" by which it is probably started.
So I would copy this file to "~/.config/autostart/nm-applet.desktop" and added a line like this:
Code: [Select]
Hidden=true

Re: what starts nm-applet in cinnamon desktop?

Reply #3
Did you guys read the original post. I'll repeat for convenience:

To Reply #1: pacman won't let me uninstall NetworkManager because cinnamon needs.

To Reply #2: No, there isn't. At least not on my computer.

Re: what starts nm-applet in cinnamon desktop?

Reply #4
Ok I hold my hands up. I didn't read it properly.

Opened a can of worms for me. I was thinking "why is network manager being forced on users who aren't using it.
Checked my system and found I have networkmanager installed. I don't want it as I don't use it to manage my network (though do my screen apparently?). I hadn't even noticed it was installed  :o

For me networkmanager-qt is the culprit
Code: [Select]
 ❯ pacman -Qi networkmanager-qt
Name            : networkmanager-qt
Version         : 5.98.0-1
Description     : Qt wrapper for NetworkManager API
Architecture    : x86_64
URL             : https://community.kde.org/Frameworks
Licenses        : LGPL
Groups          : kf5
Provides        : None
Depends On      : networkmanager  qt5-base
Optional Deps   : None
Required By     : plasma-nm  plasma-vault  powerdevil
Optional For    : ksystemstats  plasma-workspace
Conflicts With  : None
Replaces        : None
Installed Size  : 3.66 MiB
Packager        : Artix Build Bot <[email protected]>
Build Date      : Mon 12 Sep 2022 11:27:46 BST
Install Date    : Tue 13 Sep 2022 10:22:04 BST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature
Required By     : plasma-nm  plasma-vault  powerdevil
So I don't use any of those except powerdevil.
I need networkmanager installed to be able to switch off my screen after 10 minutes automatically. Seems perverse ?

Anyway I can and have (as an experiment) purged networkmanager by building and installing the following PKGBUILD
Code: [Select]
pkgname='myprovides'
pkgver=1
pkgrel=1
arch=(any)
provides=(networkmanager-qt)
Then removed networkmanager-qt and dependencies
Code: [Select]
❯ sudo pacman -Rns networkmanager-qt
checking dependencies...
:: firedragon optionally requires networkmanager: Location detection via available WiFi networks
:: firefox optionally requires networkmanager: Location detection via available WiFi networks
:: ksystemstats optionally requires networkmanager-qt: network usage monitor
:: libproxy optionally requires networkmanager: NetworkManager configuration module
:: plasma-workspace optionally requires networkmanager-qt: IP based geolocation

Packages (6) libndp-1.8-1  libnewt-0.52.21-8  libnm-1.40.0-1  libteam-1.31-5  networkmanager-1.40.0-1  networkmanager-qt-5.98.0-1

Total Removed Size:  31.41 MiB

:: Do you want to remove these packages? [Y/n] y
:: Processing package changes...
(1/6) removing networkmanager-qt                                                       [##################################################] 100%
(2/6) removing networkmanager                                                          [##################################################] 100%
(3/6) removing libteam                                                                 [##################################################] 100%
(4/6) removing libnm                                                                   [##################################################] 100%
(5/6) removing libnewt                                                                 [##################################################] 100%
(6/6) removing libndp                                                                  [##################################################] 100%
:: Running post-transaction hooks...
(1/2) Reloading device manager configuration...
(2/2) Reloading system bus configuration...
 * Reloading D-BUS messagebus config ... [ ok ]
Though the powerdevil applet does not work (as expected)
I'm going to look for another solution to that. If I can't find one I expect I'll end up with networkmanager again!
(Found already, powerdevil-light from the AUR)

Your solution will work but need repeating after the package updates, though you could add it to the ignored packages in /etc/pacman.conf

My solution is a hack and may be frowned upon ?