Click to See Complete Forum and Search --> : launching programs after logging in


ciphrix
08-14-2002, 10:41 PM
Alright, first of all, I know this has been discussed quite a few times before and I did a search (here and at the fluxbox forums) but I'm not having any luck so maybe someone can help me...

I'm trying to launch gkrellm once I've logged into fluxbox. I have read about editing the .xinitrc file in your home directory and all but that's not working. I tried creating the .xinitrc file in my home directory (because it didn't exist) with the following command:


#!/bin/sh

exec gkrellm -w &


and then I chmod 777 .xinitrc (I'm not sure what the number is to make a file only executable to the owner so I just did 777 so I knew it'd be executable... I know this isn't the safest thing to do with files :-)

Anyway, I've tried editing various other files too but I can't get it to execute upon logging in.

Any help?

Hayl
08-14-2002, 10:46 PM
mine works fine but i use .bash_profile

rapture
08-14-2002, 10:54 PM
In your .xinitrc just put this:

gkrellm -w &

exec fluxbox

Then just startx. And you don't have to make that file executable.

JohnT
08-14-2002, 10:55 PM
Won't putting it in your autostart folder work?

ciphrix
08-14-2002, 11:00 PM
Originally posted by Cybr099
mine works fine but i use .bash_profile

I didn't even think of editing .bash_profile but that did the trick.

Now here's another similar question...

When I run aterm I run it like:


$ aterm -tr -trsb -tint blue -fg white


...but I'm tired of typing that each time I open the terminal. Is there a way to set that so it would automatically use those parameters when I click "Aterm" from the menu? I know I can configure it to run like that at login (now that I know how to run apps after login) but I only want it to open when I select it from the menu.

rapture
08-15-2002, 02:18 AM
Well edit your flux menu and put this line in there:

[exec] (Aterm) {aterm -tr -trsb -tint blue -fg white}

Save and then reconfigure. That's it.

ciphrix
08-15-2002, 07:37 AM
Cool, thanks for the help guys.