You are not logged in.

#1 2010-06-09 18:04:09

crabmeat
Member
Registered: 2009-08-11
Posts: 16

Starting Programs with X

Hi there,

currently iam trying to start some nice programs, when X11 is launching.

i was not sure how to do this so i append my own stuff to the xinitrc.

My /etc/X11/xinit/xinitrc is looking this way (just the end, everything after startxfce is custom):

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

startxfce4 &


/usr/bin/devilspie ~/.devilspie/DesktopConsole.cs &> /dev/null &
gnome-terminal --window-with-profile=DesktopConsole --title=DesktopConsole3 &
gnome-terminal --window-with-profile=DesktopConsole --title=DesktopConsole &
gnome-terminal --window-with-profile=DesktopConsole2 --title=DesktopConsole2

This isn't really working. Sometimes X crashes with the error message "Resource is busy", sometimes X is launching but the Terminals does not an sometimes everything works fine. (From 10 trys i would say its working 3 times and 5 times crash or so)

I cant see a sense here. Can someone help? Maybe there is a much better sollution to start cusom commands when launching X.

king regards,

crabmeat

Last edited by crabmeat (2010-06-09 18:04:41)

Offline

#2 2010-06-09 18:07:09

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: Starting Programs with X

Start your stuff before you actually start xfce:

(…)
/usr/bin/devilspie ~/.devilspie/DesktopConsole.cs &> /dev/null &
gnome-terminal --window-with-profile=DesktopConsole --title=DesktopConsole3 &
gnome-terminal --window-with-profile=DesktopConsole --title=DesktopConsole &
gnome-terminal --window-with-profile=DesktopConsole2 --title=DesktopConsole2

startxfce4 &

Offline

#3 2010-06-09 18:35:36

crabmeat
Member
Registered: 2009-08-11
Posts: 16

Re: Starting Programs with X

yepp, it's working.

danke für deine hilfe

Offline

#4 2010-06-09 20:41:41

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Starting Programs with X

You should use ~/.xinitrc, not the system one. If you used adduser to create your user account, it will be there already - if not, cp it over from /etc/skel.

Offline

Board footer

Powered by FluxBB