Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to run some program at awesomewm startup. I have in my .xinitrc this line:

exec awesome

It works. Then I added this:

exec guake

I got errors. So I did this:

guake

I put each of these lines separately before "exec awesome", after it. It does not work. I tried the same with other programs. The result was the same. I don't want to rely on awesomewm capabilities to start programs, I know about them. I want to make it in .xintirc. How to launch a program at awesomewm startup?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You have to run all processes except the last in in the background by adding & to them. So your file should look like

guake &
some other program &
exec awesome

exec replaces the batch you are running, so any execs after the first won't work.

If you don't send the programs into the background, some other program would only start when guake ends and so on...

share|improve this answer
    
"If you don't send the programs into the background, some other program would only start when guake ends and so on" - so, why my xinitrc started awesomewm when I wrote: guake exec awesome. From your words, awesomewm should not be started, before guake finishes its work. –  user14416 Jul 22 '12 at 19:42
    
It may be that guake returns after sending itdelf into the background. I don't know guake. You were a bit short in your question: "I got errors" - so I had to guess... –  ohno Jul 22 '12 at 22:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.