You are not logged in.

#1 2012-03-23 04:37:17

aaronkai
Member
Registered: 2011-10-21
Posts: 4

[solved]Problems with .xinitrc and openbox

I am having trouble getting openbox and .xinitrc to work together to launch my screensaver daemon and wallpaper. It must work to some extent because it is launching openbox, but neither nitrogen nor xscreensaver seem to be launching.  Here is my .xinitrc file. Please tell me where else I can look to find the answer to this problem.

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

exec openbox-session 
#xrdb -merge ~/.Xresources
nitrogen --restore &
xscreensaver -no-splash &

Last edited by aaronkai (2012-03-23 23:43:54)

Offline

#2 2012-03-23 04:49:17

w0ng
Member
From: Australia
Registered: 2009-06-04
Posts: 88
Website

Re: [solved]Problems with .xinitrc and openbox

try putting exec openbox-session on the last line

Offline

#3 2012-03-23 04:54:23

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,583

Re: [solved]Problems with .xinitrc and openbox

... Or put an ampersand after exec openbox-session


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2012-03-23 06:10:36

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [solved]Problems with .xinitrc and openbox

...or start that stuff in the aptly named autostart file.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2012-03-23 23:41:17

aaronkai
Member
Registered: 2011-10-21
Posts: 4

Re: [solved]Problems with .xinitrc and openbox

[solved]

I put it in the autostart file.

For other noobuses out there, that would be in .config/openbox/autostart.

Thanks guys.

Offline

#6 2012-03-24 02:01:02

FlyingHappy
Member
From: Cincinnati, OH
Registered: 2011-04-18
Posts: 192

Re: [solved]Problems with .xinitrc and openbox

Actually, it would be ~/.config/openbox/autostart

Not to be nit-picky  big_smile

Last edited by FlyingHappy (2012-03-24 02:01:26)

Offline

Board footer

Powered by FluxBB