Linux – How to make nm-applet the default network manager instead of knetworkmanager in KDE (Kubuntu)

kdekubuntulinuxnetworkmanager

I'm using the latest version of Kubuntu and need to use nm-applet instead of knetworkmanager due to access issues with my work VPN and also seem to have issues with knetworkmanager forgetting how to connect to wifi (but that's another question altogether). I have installed all the needed packages to run nm-applet (the default Gnome network manager applet that comes in the network-manager-gnome package). Each time I reboot my machine I have to follow these steps:

  1. open terminal and execute: killall knetworkmanager
  2. launch Krunner and run nm-applet
  3. all runs as expected

I'd like to be able to just setup my environment to not launch knetworkmanager and instead launch nm-applet at startup.

How is this accomplished?

Best Answer

Here is what I do to achieve the behavior you want :

  • Do the steps you do describe in your post (kill knetworkmanager and start nm-applet)
  • You should then edit this file

/etc/xdg/autostart/nm-applet.desktop

[Desktop Entry]
Name=Network Manager
Comment=Control your network connections
Icon=nm-device-wireless
Exec=nm-applet --sm-disable
Terminal=false
Type=Application
OnlyShowIn=KDE;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=NetworkManager
X-GNOME-Bugzilla-Component=general
X-GNOME-Autostart-enabled=true
X-Ubuntu-Gettext-Domain=nm-applet
  • Make sure OnlyShowIn contains KDE
  • Uninstall the plasma-widget-network-manager since you are using the gnome applet instead
  • The gnome applet should be executed automatically after a reboot

I am doing this since kubuntu 7.04 because I cannot connect to my company VPN with knetworkmanager using the PPTP plugin. I hope some day I won't need this fix.

Related Question