PDA

View Full Version : [ubuntu] [SOLVED] Panel error on glipper start



vlc
June 29th, 2008, 05:02 PM
Hi *,

I added the glipper clipboard manager to the gnome panel and now I get sometimes after gnome start the following error message:

The panel encountered a problem while loading "OAFIID:Glipper".

Then I have to add the glipper manually to the panel.

Does anyone have an idea what could cause this error?

Thank you very much in advance!

cpetercarter
June 29th, 2008, 10:39 PM
No idea - I have the problem too, but I find that if I just click on the error message box, Glipper installs anyway.

kbuel
June 30th, 2008, 01:48 PM
I'm getting this error also. Is there a place where these errors would be logged that we could look at it?

vlc
June 30th, 2008, 07:53 PM
I think I found a workaround in the launchpad (https://bugs.launchpad.net/ubuntu/hardy/+source/glipper/+bug/213494):


I have a temporary fix for this problem. The fact that it happens sometimes led me to believe that apparently there is some daemon or environment that has not been started yet at the moment that Glipper loads (so, Glipper is "too fast" with starting). So I added a wait period in the starting of Glipper, and that fixed the problem. The time-out is in itself not a problem, I don't mind that Glipper starts for instance half a minute later, as long as I do not have to re-add it every time I boot my laptop.

So what to do: Look up Glipper and add a wait statement:

sudo gedit /usr/lib/glipper/glipper

Make sure the code in the beginning looks like this:

#!/usr/bin/env python

# Glipper - Clipboardmanager for GNOME
# Copyright (C) 2007 Glipper Team
# bla bla bla
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#

import time # <-- This line is new
time.sleep(8) # <-- This line is new. Change the 8 to for instance 30 if it did not help

import gobject
gobject.threads_init()

import gtk, gnomeapplet, gnome
import getopt, sys
from os.path import *


It seems to be working for me.