LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Running an app on Blackbox login? (https://www.linuxquestions.org/questions/slackware-14/running-an-app-on-blackbox-login-338408/)

JustinCoyan 06-29-2005 11:11 AM

Running an app on Blackbox login?
 
I want an application to start as soon as I login to Blackbox via XDM. Is this possible?

gbonvehi 06-29-2005 11:14 AM

Yeap, just add it in your .xinitrc (or the global /etc/xinit/xinitrc.blackbox) file. Remember to add a & at the end and put the line before starting the window manager.

keefaz 06-29-2005 11:15 AM

Try add it to your ~/.xinitrc, like
Code:

# do no forget the &
xterm &
xclock &

Not sure if kdm will read it though

[edit]
as gbonvehi said :)

JustinCoyan 06-29-2005 11:15 AM

http://blackboxwm.sourceforge.net/Bl...5e338c500db342

That says to use either .xinitrc or .Xsession. I read elsewhere that .xinitrc is used if you're starting X via a command line with 'startx'.

JustinCoyan 06-29-2005 11:18 AM

Where else would the .xinitrc file be? I have no xinit directory under /etc.

keefaz 06-29-2005 11:20 AM

Try put the command in ~/.xprofile

JustinCoyan 06-29-2005 11:21 AM

Doesn't exist.

keefaz 06-29-2005 11:22 AM

create it, then (it is a file, not a directory)

JustinCoyan 06-29-2005 11:22 AM

And do what with it?

keefaz 06-29-2005 11:24 AM

You create the file then you add your command
followed by a & as posted above

JustinCoyan 06-29-2005 11:25 AM

So in that file, I'll only have the command I want to execute, followed by &?

In every other example, the commands you want to execute preceed the execution of whichever window manager you are booting into. Just making sure.

keefaz 06-29-2005 11:26 AM

Yes only your command, and if it is located
in an exotic place like /opt/chaos/bin, add
its complete path to be sure

JustinCoyan 06-29-2005 11:30 AM

Alright...

That worked, but it loaded the app BEFORE Blackbox loaded. After I closed it, then Blackbox loaded.

keefaz 06-29-2005 11:32 AM

That's why the & is important (to put the process in background)

JustinCoyan 06-29-2005 11:44 AM

I'm going to pretend like that never happened. :cool:


All times are GMT -5. The time now is 03:54 AM.