#!/bin/sh # Xsession - runs AS the authenticated user after login (xdm sets # $USER/$HOME/$DISPLAY/$XAUTHORITY). # # Put the Hammerhead desktop config (shipped under /usr/local/etc/xdg) on the # XDG search path so openbox/tint2/conky find the BRANDED config even for a # fresh user with no ~/.config. Exported here so it is inherited by the whole # session tree (including a user's own ~/.xsession, if any). export XDG_CONFIG_DIRS="/usr/local/etc/xdg:${XDG_CONFIG_DIRS:-/etc/xdg}" export XDG_DATA_DIRS="/usr/local/share:${XDG_DATA_DIRS:-/usr/share}" # Seed ~/.config with the Hammerhead desktop defaults if absent, so the # openbox autostart (tint2/conky/wallpaper) fires even for a fresh user. /usr/local/bin/hh-desktop-init # Prefer the user's own ~/.xsession; otherwise the Hammerhead Openbox session. if [ -x "$HOME/.xsession" ]; then exec "$HOME/.xsession" fi exec /usr/local/bin/openbox-session