two software update tray icons on login (lxde)

Bug #814356 reported by Josh Blair
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
LXDE
Unknown
Unknown
Linux Mint
Fix Committed
Undecided
Unassigned

Bug Description

i am using linux mint 11 lxde and while this may not be a 'problem' in so much that it's more of a nuisance, it is what it is. any time i login for the first time, two software update tray icons appear in the tray. after clicking one (doesn't matter which), i authenticate my password, the software center opens, and one of the icons disappears.

Shiv Manas (shiv-n)
Changed in linuxmint:
status: New → Confirmed
Revision history for this message
Shiv Manas (shiv-n) wrote :

While I've not yet been able to find the exact cause for this, I have devised a workaround which is useful to have for all versions of Mint: modify mintUpdate.pl to ensure that only one instance runs.

This can be done as follows: (sorin, 2009)

sudo apt-get install easy_install
sudo easy_install tendo

Then edit /usr/lib/linuxmint/mintUpdate/mintUpdate.py
and add the following lines somewhere at the top. I added it after the first line.

try:
    from tendo import singleton
    me = singleton.SingleInstance()
except Exception, detail:
    print detail
    pass

-------
References:
Sorin, Python: single instance of program, 2009, URL: http://stackoverflow.com/questions/3801870/python-single-instance-of-program

Revision history for this message
Shiv Manas (shiv-n) wrote :

Actually there is no need to do the above. Infact, after modifying the file I could no longer launch the mintUpdate GUI.

Looking at the code, there is already existing code in place to prevent another instance of mintUpdate running:

try:
    numMintUpdate = commands.getoutput("ps -A | grep mintUpdate | wc -l")
    if (numMintUpdate != "0"):
        if (os.getuid() == 0):
            os.system("killall mintUpdate")
        else:
            print "Another mintUpdate is already running, exiting."
            sys.exit(1)
except Exception, detail:
    print detail

---

No idea why it isn't working as it should; however; I managed to fix the problem by simply reinstalling mintUpdate!

sudo apt-get --reinstall install mintupdate

Revision history for this message
Shiv Manas (shiv-n) wrote :

Update: So reinstalling mintupdate didn't fix it. However I might have found another possible workaround. Edit mintUpdate.py and add the following lines:

from time import sleep
sleep(10)

This seems to have fixed it for me. Rebooted several times so far and I only see one instance of mintUpdate.

Changed in linuxmint:
status: Confirmed → In Progress
assignee: nobody → Gwendal LE BIHAN (gwendal-lebihan-dev)
Revision history for this message
Gwendal LE BIHAN (gwendal-lebihan-dev) wrote :

This bug, or at least part of it, seems to actually be in lxsession : adding lxterminal to the startup applications in /etc/xdg/lxsession/Mint-LXDE/autostart also results in 2 instances of lxterminal being launched.

Here is the link to the LXDE bug report : https://sourceforge.net/tracker/?func=detail&aid=3407493&group_id=180858&atid=894869

I'll keep working on a workaroung to prevent mintupdate to launch twice.

Changed in linuxmint:
status: In Progress → Fix Committed
Changed in linuxmint:
assignee: Gwendal LE BIHAN (gwendal-lebihan-dev) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.