From 12c9b56dad52af840f9694719e63e69c47930917 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 14 May 2007 21:58:39 +0000 Subject: add openbox-session for gdm, which will run ~/.config/openbox/autostart --- data/xsession/openbox-session.in | 10 ++++++++++ data/xsession/openbox.desktop | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 data/xsession/openbox-session.in (limited to 'data/xsession') diff --git a/data/xsession/openbox-session.in b/data/xsession/openbox-session.in new file mode 100644 index 00000000..e76d3203 --- /dev/null +++ b/data/xsession/openbox-session.in @@ -0,0 +1,10 @@ +#!/bin/sh + +AUTOSTART="$HOME/.config/openbox/autostart" + +if test -e $AUTOSTART; then + # sleep for 1 second so Openbox is there before anything else + (sleep 1 && . $AUTOSTART) & +fi + +exec @bindir@/openbox "$@" diff --git a/data/xsession/openbox.desktop b/data/xsession/openbox.desktop index 77de117a..b162f09e 100644 --- a/data/xsession/openbox.desktop +++ b/data/xsession/openbox.desktop @@ -2,7 +2,7 @@ Encoding=UTF-8 Name=Openbox Comment=Log in using the Openbox window manager (without a session manager) -Exec=openbox -TryExec=openbox +Exec=openbox-session +TryExec=openbox-session Icon=openbox.png Type=XSession -- cgit v1.2.3