[SOLVED] mintupdate-launcher fails

Questions about mintUpdate
Forum rules
Before you post please read this

[SOLVED] mintupdate-launcher fails

Postby jens55 on Fri Nov 09, 2012 5:16 am

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 jens55 on Fri Nov 09, 2012 6:13 am, edited 1 time in total.
jens55
Level 1
Level 1
 
Posts: 2
Joined: Fri Nov 09, 2012 5:07 am

Linux Mint is funded by ads and donations.
 

Re: mintupdate-launcher fails

Postby Monsta on Fri Nov 09, 2012 5:38 am

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.
Monsta
Level 8
Level 8
 
Posts: 2018
Joined: Fri Aug 19, 2011 3:46 am

Re: mintupdate-launcher fails

Postby jens55 on Fri Nov 09, 2012 6:12 am

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.
jens55
Level 1
Level 1
 
Posts: 2
Joined: Fri Nov 09, 2012 5:07 am


Return to mintUpdate

Who is online

Users browsing this forum: No registered users and 1 guest