You are not logged in.

#1 2008-05-23 22:18:11

Yes
Member
Registered: 2008-03-29
Posts: 163

Pypanel crashes on startup after opening .pypanelrc

Whenever I modify .pypanelrc I can restart pypanel fine, but when try logging out and back into Openbox it crashes with these errors:

Traceback (most recent call last):
  File "/usr/bin/pypanel", line 957 in <module>
    PyPanel(display.Display())
  File "/usr/bin/pypanel", line 94 in __init__
    self.getDesktopNames()
  File "/usr/bin/pypanel", line 360, in getDesktopNames()
    desktop.total = self.root.get_full_property (self_.DESKTOP_COUNT)
AttributeError: 'NoneType' object has no attribute value

When I open and save .pypanel again in Awesome I can log back into Openbox.  Can anyone help?

Thanks!

Last edited by Yes (2008-05-23 22:18:28)

Offline

#2 2008-05-23 22:26:26

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: Pypanel crashes on startup after opening .pypanelrc

Sounds like pypanel is being started before Openbox. Replace the line that runs pypanel in your xinitrc with something like this:

(sleep 3 ; pypanel) &

Offline

#3 2008-05-23 22:31:08

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: Pypanel crashes on startup after opening .pypanelrc

I had these lines in there to make sure that pypanel would start last:

if pgrep pypanel
then exec openbox
else pypanel && exec openbox
fi

I didn't write them though, so I dunno if there's something wrong with them.  I've added the sleep line, so I'll see if it happens again.

Offline

#4 2008-05-24 00:52:52

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: Pypanel crashes on startup after opening .pypanelrc

Nope, I just logged into Awesome for a minute and when I tried logging back in to Openbox I got the same error.  That was with the sleep line.

Offline

Board footer

Powered by FluxBB