[SOLVED] mintupdate-launcher fails

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
jens55

[SOLVED] mintupdate-launcher fails

Post by jens55 »

Hello,

a few days ago I noticed that the mintupdate notification icon is missing from my panel after booting up. Manually launching it works just fine, it shows the available updates and I can install them. It is just a bit annoying that it does not start up automatically.

The problem seems to be with the mintupdate-launcher script:

Code: Select all

$ sudo mintupdate-launcher 
[sudo] password for jens: 
-- Exception occured in the refresh thread: 'NoneType' object has no attribute 'set_cursor'
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/linuxmint/mintUpdate/mintUpdate.py", line 683, in run
    self.wTree.get_widget("window1").window.set_cursor(None)
AttributeError: 'NoneType' object has no attribute 'set_cursor'
I am running Linux Mint 13 Mate on a 64-bit machine.

Any ideas or hints?

Jens
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: mintupdate-launcher fails

Post by Monsta »

Hmm, but mintupdate-launcher isn't supposed to run as root. (Even if it was so, running a GUI tool with sudo instead of gksu requires additional work.)
If you run mate-session-properties and look at the "mintUpdate" item, you'll see there's no gksu or anything like that.

Check this thread and this bug report comment, maybe they will help.
jens55

Re: mintupdate-launcher fails

Post by jens55 »

Hmm, but mintupdate-launcher isn't supposed to run as root.
Thanks a lot Monsta, this pointed me in the right direction to fix it!

I thought mintupdate-launcher has to be run with root permissions because I got

Code: Select all

$ mintupdate-launcher
[Errno 13] No permission: '/etc/linuxmint/mintUpdate.conf'
This was due to only root having access on the mintUpdate.conf and mintupdate.ignored files:

Code: Select all

$ ls -l /etc/linuxmint/
insgesamt 24
drwxr-xr-x 2 root root 4096 Nov  2 12:42 adjustments
-rw-r--r-- 1 root root  329 Mai  2  2012 info
-rw-r--r-- 1 root root   70 Nov  9 09:52 mintSystem.conf
-rw------- 1 root root  745 Nov  9 10:45 mintUpdate.conf
-rw------- 1 root root    0 Nov  5 09:50 mintupdate.ignored
drwxr-xr-x 3 root root 4096 Mai  3  2012 mintUpload
-rw-r--r-- 1 root root  377 Mär 22  2012 mintUpload.conf
After I did

Code: Select all

$ sudo chmod a+r /etc/linuxmint/mintUpdate.conf
$ sudo chmod a+r /etc/linuxmint/mintupdate.ignored
mintupdate-launcher works like charm again, and the update notification icon appears again automatically when starting a session.

I still have no idea though what caused the problem in the first place.
Locked

Return to “Software & Applications”