You are not logged in.

#1 2008-09-13 08:19:34

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

pypanel won't start

I'm using a gnome/openbox combo. I followed the arch wiki for pypanel, and here's my .xinitrc

#!/bin/sh

#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#
 exec pypanel &

export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
scim -d  

# exec xterm
exec gnome-session
# exec startkde
# exec startxfce4
# exec icewm
# exec openbox-session
# exec blackbox
# exec fluxbox
# exec ratpoison
# exec dwm
# ... or any other WM of your choosing ...

and here's my .pypanelrc

#------------------------------------------------------------------------------
#
#                         PyPanel v2.4 Configuration
#
# This configuration file is a Python script that will be executed when
# PyPanel is started.  In order for PyPanel to start properly, make sure that
# this file contains proper Python formatting and no syntax errors.
#------------------------------------------------------------------------------
VERSION         = 2.4           # Config file version

#------------------------------------------------------------------------------
# Colors: Format is hex triplet - 0xrrggbb
#------------------------------------------------------------------------------
BG_COLOR        = "0x000000"    # Panel background and tint (Antique White)
TASK_COLOR      = "0xffffff"    # Normal task name color
FOCUSED_COLOR   = "0xffffff"    # Focused task name color
SHADED_COLOR    = "0x808080"    # Shaded task name color 
MINIMIZED_COLOR = "0x808080"    # Minimized task name color 
DESKTOP_COLOR   = "0xffffff"    # Desktop name color
CLOCK_COLOR     = "0xffffff"    # Clock text color
LINE_COLOR      = "0x606060"    # Vertical line color

# Text Shadow Colors
TASK_SHADOW_COLOR      = "0x000000"
FOCUSED_SHADOW_COLOR   = "0x000000"
SHADED_SHADOW_COLOR    = "0x000000"
MINIMIZED_SHADOW_COLOR = "0x000000" 
DESKTOP_SHADOW_COLOR   = "0x000000"
CLOCK_SHADOW_COLOR     = "0x000000"

#------------------------------------------------------------------------------
# Panel Spacing and Location Options: Measured in pixels
#------------------------------------------------------------------------------
P_LOCATION      = 1             # Panel placement: 0 = top, 1 = bottom
P_WIDTH         = 0             # Panel width: 0 = Use full screen width
P_START         = 0             # Starting X coordinate of the panel
P_SPACER        = 6             # Spacing between panel objects
P_HEIGHT        = 24            # Panel height

#------------------------------------------------------------------------------
# Icon Size Options: Measured in pixels
#------------------------------------------------------------------------------
I_HEIGHT        = 16            # Panel application icon height
I_WIDTH         = 16            # Panel application icon Width 
APPL_I_HEIGHT   = 24            # Application launcher icon height
APPL_I_WIDTH    = 24            # Application launcher icon width
TRAY_I_HEIGHT   = 24            # System tray icon height (usually 16 or 24)
TRAY_I_WIDTH    = 24            # System tray icon width  (usually 16 or 24)
                                # If TRAY_I_WIDTH is set to 0, then the
                                # width specified by the tray app will be used
                                
#------------------------------------------------------------------------------
# Panel Clock Format: 'man strftime' for detailed formatting options and help
#------------------------------------------------------------------------------
CLOCK_FORMAT    = "%Y-%m-%d %H:%M"    # Ex: 2004-09-25 17:45 

#------------------------------------------------------------------------------
# Clock Delay: Seconds between each clock update during periods of inactivity
#------------------------------------------------------------------------------
CLOCK_DELAY     = 20

#------------------------------------------------------------------------------
# Hidden Application List: Apps listed here will not be display on the panel
# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
# Ex: ["xmms", "xine", "gDesklets"]
#------------------------------------------------------------------------------
HIDE_LIST       = ["gnome-panel"]            
                   
#------------------------------------------------------------------------------
# Hidden Panel Size: Size of the panel when it's hidden/minimized
#------------------------------------------------------------------------------
HIDDEN_SIZE     = 2

#------------------------------------------------------------------------------
# Panel Text Font: This option takes either a traditional or Xft font string 
# Ex: "-schumacher-clean-medium-r-normal-*-12-*-*-*-*-*-*-*"
#     "aquafont-8" 
#------------------------------------------------------------------------------
FONT            = "bitstream vera sans-8"

#------------------------------------------------------------------------------
# Show All Applications: Show apps from all desktops or just the current
# 0: Disabled - Only applications on the current desktop will be displayed
# 1: Enabled  - Selected apps are moved to the current desktop
# 2: Enabled  - Current desktop is changed to the selected apps desktop
#------------------------------------------------------------------------------
SHOWALL         = 2             # 0, 1 or 2 - see descriptions above

#------------------------------------------------------------------------------
# Show Minimized/Iconified Applications: Show only minimized apps or all apps
# 0: Disabled - Show all applications on the panel
# 1: Enabled  - Show only minimized apps on the panel
#------------------------------------------------------------------------------
SHOWMINIMIZED   = 0

#------------------------------------------------------------------------------
# Application Icon List: List of custom icons for specific applications
# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
#
# The "default" entry is used for applications with no icon.  If left "",
# PyPanel will use the default icon distributed with the source.
#
# Add entries using the following format -
#     "<application name>" : "<full path to icon>",
#------------------------------------------------------------------------------
ICON_LIST       = {
                   "default" : "",
                   "example" : "/usr/share/imlib2/data/images/audio.png",
                  }
                  
#------------------------------------------------------------------------------
# Application Launch List: Ordered list of icons and applications for the
#                          application launcher.
# 
# Add entries using the following format -
#     ("<executable>", "<full path to icon>")
#------------------------------------------------------------------------------
LAUNCH_LIST     = [
                   ("gimp-2.2", "/usr/share/imlib2/data/images/paper.png"), 
                  ]

#------------------------------------------------------------------------------
# Background Alpha/Shade Level: 0 (Fully Translucent) -> 255 (Fully Opaque)
# BG_COLOR is used for tinting
#------------------------------------------------------------------------------
SHADE           = 150

#------------------------------------------------------------------------------
# Misc. Options: 1 = Enabled/Yes, 0 = Disabled/No
#------------------------------------------------------------------------------
ABOVE           = 1             # Panel is always above other apps
APPICONS        = 1             # Show application icons
AUTOHIDE        = 0             # Autohide uses the CLOCK_DELAY timer above
SHADOWS         = 1             # Show text shadows
SHOWLINES       = 0             # Show object separation lines
SHOWBORDER      = 1             # Show a border around the panel

#------------------------------------------------------------------------------
# Desktop Names: Configure the names of your desktops
# If the option is [], PyPanel will attempt to use the desktop name specified
# by the XServer, if that fails it will use the desktop number as its name
# Ex. ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight"]
#------------------------------------------------------------------------------
DESKTOP_NAMES   = []

#------------------------------------------------------------------------------
# Panel Layout:       -----------------------------------
#                     [  1  ][  2  ][  3  ][  4  ][  5  ]
#                     -----------------------------------
#
# The panel layout is split into 5 sections numbered 1, 2, 3, 4 or 5 as shown
# in the diagram above.  Each of the following objects can be enabled by
# assigning it a section number or disabled by assigning it 0:
#------------------------------------------------------------------------------
DESKTOP         = 3             # Desktop name section
TASKS           = 1             # Task names section 
TRAY            = 4             # System tray section
CLOCK           = 5             # Clock section
LAUNCHER        = 0             # Application launcher section

#------------------------------------------------------------------------------
#                       Button Event Function Definitions
#------------------------------------------------------------------------------
# Left click   - button 1 
# Middle click - button 2
# Right click  - button 3
# Wheel up     - button 4
# Wheel down   - button 5 
#
# changeDesktop(x)
# - Change Desktop: Increase or decrease the current desktop by 'x' amount
# 
# toggleShade(task)
# - Shade or Unshade an application
#
# toggleHidden()
# - Minimize the panel to the top or bottom depending on its start location
#
# toggleMinimize(task, traise=1)
# - Minimize or Unminimize an application and optionally raise it
#
# taskRaise(task, focus=1)
# - Raise an application to the top of the window list and optionally focus it 
#
# taskLower(task, focus=0)
# - Lower an app to the bottom of the window list and optionally focus it
#
# taskFocus(task)
# - Give focus to the selected application, if it has focus then minimize it
#
# showDesktop()
# - Toggle between hiding and unhiding ALL applications
#------------------------------------------------------------------------------

#----------------------------------
def desktopButtonEvent(pp, button):
#----------------------------------
    """ Button event handler for the panel's desktop object """
        
    if button == 1:
        pp.changeDesktop(-1)
    elif button == 2:
        pp.changeDesktop(2)
    elif button == 3:
        pp.changeDesktop(1)
    elif button == 4:
        pp.changeDesktop(1)
    elif button == 5:
        pp.changeDesktop(-1)
        
#--------------------------------
def clockButtonEvent(pp, button):
#--------------------------------
    """ Button event handler for the panel's clock object """
    
    if button == 1:
        os.system("xclock &")
    elif button == 2:
        pass
    elif button == 3:
        pp.toggleHidden()  
    elif button == 4:
        pp.showDesktop()
    elif button == 5:
        pp.showDesktop()
        
#--------------------------------
def panelButtonEvent(pp, button):
#--------------------------------
    """ Button event handler for the panel with no active tasks """
    
    if button == 1:
        pass
    elif button == 2:
        pass
    elif button == 3:
        pass
    elif button == 4:
        pass
    elif button == 5:
        pass
        
#-------------------------------------
def taskButtonEvent(pp, button, task):
#-------------------------------------
    """ Button event handler for the panel's tasks """
    
    if button == 1:
        pp.taskFocus(task)
    elif button == 2:
        # Destroy the application
        task.obj.destroy()
    elif button == 3:
        # Ex. - XMMS doesn't shade, so we want to minimize it instead and
        #       still use button 3 to shade other applications
        #       task.tclass is the tasks class name (WM_CLASS)
        if "xmms" in task.tclass:
            pp.toggleMinimize(task)
        else:
            pp.toggleShade(task)
    elif button == 4:
        pp.taskRaise(task, focus=1)
    elif button == 5:
        pp.taskLower(task, focus=0)

If I run it from the terminal, pypanel opens without errors, but there is nothing in the system tray except for scim. If I add

pypanel &

to Sessions, it opens but flickers constantly. I have removed the Sessions entry.

Is there something that I'm missing here? Do I have to use a script to delay pypanel for x seconds?

Last edited by zephyrus17 (2008-09-13 08:21:00)

Offline

#2 2008-09-13 16:50:28

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: pypanel won't start

Remove the 'exec' from the front of pypanel in ~/.xinitrc (but leave it for gnome-session).


thayer williams ~ cinderwick.ca

Offline

#3 2008-09-14 02:46:06

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: pypanel won't start

should I have an entry in Sessions as well?

Offline

#4 2008-09-14 03:47:23

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: pypanel won't start

zephyrus17 wrote:

should I have an entry in Sessions as well?

You should only need one or the other, but not both.


thayer williams ~ cinderwick.ca

Offline

#5 2008-09-14 04:02:36

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: pypanel won't start

Having

pypanel &

in .xinitrc only didn't work.

It only works with

pypanel

in Sessions.

Is this supposed to happen? Because the Arch wiki made no mention of the Sessions entry

Offline

#6 2008-09-14 04:07:11

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: pypanel won't start

zephyrus17 wrote:

Having

pypanel &

in .xinitrc only didn't work.

It only works with

pypanel

in Sessions.

Is this supposed to happen? Because the Arch wiki made no mention of the Sessions entry

I can't say for sure--it's been a long while since I last used GNOME.  If you're going to run a full GNOME session though, it does make sense to use GNOME's built-in session manager instead of xinitrc.


thayer williams ~ cinderwick.ca

Offline

#7 2008-09-14 04:56:50

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: pypanel won't start

However, I'm running Gnome/Openbox. So both of them somehow overlap? I guess I won't bother about it too much, then. If it works in Sessions, I'm not complaining. Thanks for your help, thayer.

Offline

#8 2008-09-14 05:06:56

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: pypanel won't start

No worries, I'm digging around for fixes to my own problem at the moment, so I might as well help. 

If you're running Openbox/GNOME shouldn't you be using exec openbox-gnome-session, or are you loading openbox within your Sessions? Have you had a look at the Openbox wiki?


thayer williams ~ cinderwick.ca

Offline

#9 2008-09-14 05:24:35

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: pypanel won't start

Hmm... that's very true. All along I've just been loading gdm, then at the sign in screen chose Gnome/Openbox, then made in my default. But I've set it to login automatically.

Is "exec openbox-gnome-session" faster than this?

Offline

#10 2008-09-14 05:38:32

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: pypanel won't start

Hah, well that explains why pypanel isn't loading when you place it in ~/.xinitrc.  That file is ignored when you use GDM.

Choosing GNOME/Openbox in the sessions menu is more or less equivalent to running openbox-gnome-session from xinitrc.  The primary difference is that GDM loads X before you log in.  There's also the added advantage of choosing your session on the fly.


thayer williams ~ cinderwick.ca

Offline

#11 2008-09-14 05:41:23

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: pypanel won't start

Whereas openbox-gnome-session loads X after I log in?

There's no speed difference, right?

Offline

#12 2008-09-14 06:02:31

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: pypanel won't start

zephyrus17 wrote:

Whereas openbox-gnome-session loads X after I log in?

There's no speed difference, right?

Close...running 'startx' after you login loads X, parsing ~/.xinitrc and launching any applications you have specified within it.

Speed is relative.  You may consider it faster to have your GUI come up automatically, or you may find it faster to be greeted with a console login (non-GUI), giving you the option to NOT run X if desired.

One method loads the GUI before you log in, the other after.  If all you want is a GUI desktop when you turn on your computer then the first method is probably faster, but if you want to boot into the console without loading X, then the second method can shave 3-10 seconds off the process (because X doesn't have to startup, which means GNOME, pypanel and everything don't load either.)  Make sense?

Last edited by thayer (2008-09-14 06:03:21)


thayer williams ~ cinderwick.ca

Offline

#13 2008-09-14 07:45:04

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: pypanel won't start

The 'first method' in which you're refering to is.. openbox-gnome-sessions?

Offline

#14 2008-09-14 07:55:51

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: pypanel won't start

zephyrus17 wrote:

The 'first method' in which you're refering to is.. openbox-gnome-sessions?

When you choose GNOME/Openbox in GDM it actually executes openbox-gnome-session.
You can check by looking into the /etc/X11/sessions or /usr/share/xsessions and there you will find the .desktop files GDM loads. You can customize them if you wish.

Either way, you're gonna have to use gnome's session management to autostart your apps.

Last edited by moljac024 (2008-09-14 07:57:20)


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#15 2008-09-14 08:24:46

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: pypanel won't start

Ohh.. That's clears things up a bit. I thought they conflicted. Thanks.

Offline

#16 2008-09-15 02:20:22

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: pypanel won't start

Darn. After a night and a shutdown, pypanel won't start up with the boot. Either when I do

exec gnome-session

and add pypanel to Sessions, or when I do

pypanel &
exec openbox-gnome-session

However, when I run it from terminal or Alt F2, no error messages appear.

Last edited by zephyrus17 (2008-09-15 02:21:06)

Offline

#17 2008-09-15 03:12:39

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: pypanel won't start

If you are using GDM then there is no point in adding anything at all to your ~/.xinitrc because it will not be used.  Does pypanel still load when you launch it from a terminal?


thayer williams ~ cinderwick.ca

Offline

#18 2008-09-15 03:19:39

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: pypanel won't start

It does. I've commented out the entry in .xinitrc

But after that, if I logout/in again, sometimes it doesn't show, sometimes it shows but flickers, sometimes it shows and has nothing in it's systray portion except for scim. Which coincidentally(?) has an entry in .xinitrc

export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
scim -d

Offline

#19 2008-09-15 04:03:02

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: pypanel won't start

I'd have a look at these--they outline how you should be autostarting applications via GDM and in particular how to configure SCIM for GDM/GNOME.  I have no experience with scim unfortunately, so I can't be of much help. It sounds like pypanel is being executed twice, but it's hard to say because your startup files don't seem quite right.

GDM (GNOME Display Manager)
http://wiki.archlinux.org/index.php/Gno … Manager.29

SCIM Steps for KDE/GNOME with kdm/gdm
http://wiki.archlinux.org/index.php/Sci … _kdm.2Fgdm

Once that's all straightened out, try adding this to the bottom of ~/.xprofile:

(sleep 5 && pypanel) &

...and make sure pypanel isn't listed in your GNOME Sessions settings.

Last edited by thayer (2008-09-15 04:09:05)


thayer williams ~ cinderwick.ca

Offline

#20 2008-09-15 04:32:54

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: pypanel won't start

I know. I'm pretty confused about this stuff. And it seems that something's conflicting. Mixing Gnome and Openbox is rather quite tedious.

I followed the two links (as far as i could to my knowledge), and entered the sleep thing. Still no go.

I just don't really understand how I can run it from terminal or Alt F2 file with all the open windows and systray showing, but not get it to autostart.

Last edited by zephyrus17 (2008-09-15 04:53:44)

Offline

Board footer

Powered by FluxBB