Linuxlore

Probably more than just Linux

  • Home
  • About

nm-applet problems with (X)Ubuntu 7.04

Author: Paul Tansom

avatar

Following on from the fun I’ve been having getting wireless cards working under Ubuntu (or Linux in general for that matter) I found a bit of a glitch in the 7.04 install I’m running on my laptop. So a matter of days before the release of 7.10 I’m beating 7.04 into submission! The story goes a little like this:

After using a pretty standard Ubuntu install with Gnome for a while I decided to switch back to my preferred XFCE desktop. This was fairly straightforward, although the xubuntu-desktop package pulled in a few things I didn’t want, so I used it to populate the new install list (in Synaptic) and then trimmed the packages I didn’t want (mainly the office applications since I prefer to stick with OpenOffice). One thing I noted after making the switch back was that there was no Network Manager applet running, and a quick check of the package details seemed to indicate that it was part of Gnome, so I decided to look elsewhere for an equivalent. I experimented briefly with Wicd, but whilst doing that I found out that, although Network Manager is part of Gnome it is pretty free of Gnome dependencies and is largely independent, so I decided to switch back. Having done that I needed to look for a way of getting the applet running. This seemed simple enough, I just needed to add an entry into the Autostarted applications list as accessed from Applications -> Settings. Having done this all seemed well until, after a few reboots I noticed that I had multiple copies of the nm-applet in the panel – oops!

After a bit of digging around my file system in directories like /etc and ~/.config with the grep command I finally came up with some likely files, mainly /etc/xdg/autostart/nm-applet.desktop. Then with a bit of help from Google I came up with a couple of good references, mainly a bug report for Ubuntu [1], a reference on the Ubuntu forums [2] and another discussion linked from there [3]. With the aid of those and a bit of experimentation I came up with the following fix:

  1. First off I got rid of all the nm-applet instances running with pkill nm-applet
  2. Next I got rid of my hand installed autostart entry for the nm-applet, so to do this I deleted the file ~/.config/autostart/nm-applet.desktop
  3. Then I made an edit to the system wide autostart entry for nm-applet, for this I need to change a line in the /etc/xdg/autostart/nm-applet.desktop
    file from OnlyShowIn=GNOME; to OnlyShowIn=GNOME;XFCE;. This lets the nm-applet configuration show in the Autostarted applications utility when you’re running XFCE.
  4. Finally I needed to clear out any information relating to nm-applet in the cached sessions. This was a case of editing two files in the ~/.cache/sessions/ directory.
    • These were xfce4-session-dusky:0 and xfce4-session-dusky:0.bak dusky is the name of my machine, so your files will have your machine name instead).
    • These files have a number of lines, the majority of which are grouped with the prefix Client0, Client1, etc., so I looked for the groups with an entry for CloneCommand of nm-applet and removed the groups.
    • I then had to renumber the Client groups so they were consecutive again starting at 0 and amend the Count entry towards the end of the file to match the number of groups I had (so one more than the last number used, remembering that you started at 0!).
  5. After the editing I could perform a reboot to confirm that all was well. I actually did a few of these, firstly with the Save session for future logins disabled to ensure that any cache information was completely clear. Next was another with the session disabled, just to be sure, and then one with
    it enabled again.

All now appears fine with just a single nm-applet on my panel.

[1] https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/95064
[2] http://ubuntuforums.org/archive/index.php/t-191708.html
[3] http://www.nabble.com/Multiple-Instances-of-nm-applet-t4114321.html

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Tags: Gnome, Linux, network manager, Ubuntu, wicd, XFCE

This entry was posted on Monday, October 15th, 2007 at 1:41 pm and is filed under Linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

  • Categories

    • Computers (38)
      • Linux (14)
        • Ubuntu (6)
      • Microsoft (13)
        • Windows (12)
          • Windows 7 (3)
      • Retro (3)
      • Web (8)
    • Family (1)
    • General (9)
    • Sailing (4)
    • Theatre (1)
  • What I'm Doing...

    • @e_nation @dpoyser Good point, I hadn't thought of that, possibly not for just contact details & standard regs for anything else at a guess. 5 days ago
    • Hmm, lost the #watercoolermoment for a bit then as Hootsuite threw a wobbly :( 5 days ago
    • VOIP is a good cost effective way to get a landline number without the overhead of a new phone line #watercoolermoment 5 days ago
    • More updates...
  • Tags

    ADSL Amiga Amstrad Arnor Atom Blosxom Commodore CPC Debian dual screen Firefox HantsLUG HP HTML Inland Revenue Langstone Linux mail monitor office OpenOffice OS/2 Planet printers process Protext reorganisation Retro Rombo RSS sail sci-fi seal Sinclair Spectrum time management Tudor Ubuntu USB Vista wiki Windows wireless XP ZX81
  • Categories

  • Links

    • /aptanet/
    • PLSA
    • Sailsite Forums
    • Son's site – Aaron
    • Son's site – Scott
    • Tudor SC
    • Wild Langstone
Avatars by Sterling Adventures

Copyright © 2012 - Linuxlore | Entries (RSS) | Comments (RSS)

WordPress theme designed by web design