Guest User

Untitled

a guest
Jan 19th, 2011
51
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # This shell script is run before Openbox launches.
  2. # Environment variables set here are passed to the Openbox session.
  3.  
  4. # Set a background color
  5. BG=""
  6. if which hsetroot >/dev/null 2>&1; then
  7.     BG=hsetroot
  8. else
  9.     if which esetroot >/dev/null 2>&1; then
  10.     BG=esetroot
  11.     else
  12.     if which xsetroot >/dev/null 2>&1; then
  13.         BG=xsetroot
  14.     fi
  15.     fi
  16. fi
  17. test -z $BG || $BG -solid "#303030"
  18.  
  19. # D-bus
  20. #if which dbus-launch >/dev/null 2>&1 && test -z
  21. "$DBUS_SESSION_BUS_ADDRESS"; then
  22.        eval `dbus-launch --sh-syntax --exit-with-session`
  23. #fi
  24.  
  25. # Make GTK apps look and behave how they were set up in the gnome config tools
  26. if test -x /usr/libexec/gnome-settings-daemon >/dev/null; then
  27.   /usr/libexec/gnome-settings-daemon &
  28. elif which gnome-settings-daemon >/dev/null 2>&1; then
  29.   gnome-settings-daemon &
  30. fi
  31. Make GTK apps look and behave how they were set up in the XFCE config tools
  32. elif which xfce-mcs-manager >/dev/null 2>&1; then
  33.   xfce-mcs-manager n &
  34. fi
  35.  
  36. # Preload stuff for KDE apps
  37. if which start_kdeinit >/dev/null 2>&1; then
  38.   LD_BIND_NOW=true start_kdeinit --new-startup +kcminit_startup &
  39. fi
  40.  
  41. # Run XDG autostart things.  By default don't run anything desktop-specific
  42. # See xdg-autostart --help more info
  43. DESKTOP_ENV="OPENBOX"
  44. if which /usr/lib/openbox/xdg-autostart >/dev/null 2>&1; then
  45.   /usr/lib/openbox/xdg-autostart $DESKTOP_ENV
  46. fi
  47.  
  48. (sleep 2s && tint2) &
  49. stalonetray &
  50. nm-applet &
RAW Paste Data