LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-29-2005, 11:11 AM   #1
JustinCoyan
Member
 
Registered: May 2004
Posts: 76

Rep: Reputation: 15
Running an app on Blackbox login?


I want an application to start as soon as I login to Blackbox via XDM. Is this possible?
 
Old 06-29-2005, 11:14 AM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
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.
 
Old 06-29-2005, 11:15 AM   #3
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,460

Rep: Reputation: 98
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
 
Old 06-29-2005, 11:15 AM   #4
JustinCoyan
Member
 
Registered: May 2004
Posts: 76

Original Poster
Rep: Reputation: 15
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'.
 
Old 06-29-2005, 11:18 AM   #5
JustinCoyan
Member
 
Registered: May 2004
Posts: 76

Original Poster
Rep: Reputation: 15
Where else would the .xinitrc file be? I have no xinit directory under /etc.
 
Old 06-29-2005, 11:20 AM   #6
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,460

Rep: Reputation: 98
Try put the command in ~/.xprofile
 
Old 06-29-2005, 11:21 AM   #7
JustinCoyan
Member
 
Registered: May 2004
Posts: 76

Original Poster
Rep: Reputation: 15
Doesn't exist.
 
Old 06-29-2005, 11:22 AM   #8
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,460

Rep: Reputation: 98
create it, then (it is a file, not a directory)
 
Old 06-29-2005, 11:22 AM   #9
JustinCoyan
Member
 
Registered: May 2004
Posts: 76

Original Poster
Rep: Reputation: 15
And do what with it?
 
Old 06-29-2005, 11:24 AM   #10
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,460

Rep: Reputation: 98
You create the file then you add your command
followed by a & as posted above
 
Old 06-29-2005, 11:25 AM   #11
JustinCoyan
Member
 
Registered: May 2004
Posts: 76

Original Poster
Rep: Reputation: 15
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.
 
Old 06-29-2005, 11:26 AM   #12
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,460

Rep: Reputation: 98
Yes only your command, and if it is located
in an exotic place like /opt/chaos/bin, add
its complete path to be sure
 
Old 06-29-2005, 11:30 AM   #13
JustinCoyan
Member
 
Registered: May 2004
Posts: 76

Original Poster
Rep: Reputation: 15
Alright...

That worked, but it loaded the app BEFORE Blackbox loaded. After I closed it, then Blackbox loaded.
 
Old 06-29-2005, 11:32 AM   #14
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,460

Rep: Reputation: 98
That's why the & is important (to put the process in background)
 
Old 06-29-2005, 11:44 AM   #15
JustinCoyan
Member
 
Registered: May 2004
Posts: 76

Original Poster
Rep: Reputation: 15
I'm going to pretend like that never happened.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check if an app is running and if it's not launch this app Coume Linux - General 3 07-28-2008 02:34 AM
Blackbox Toggle Window Decoration on App Startup TroelsSmit Linux - Software 0 05-22-2004 06:21 AM
automatic slit app start-blackbox -login killer_bunny Linux - Software 1 12-18-2003 05:29 PM
create a icon shortcut for my app in blackbox yenonn Linux - Software 7 08-16-2003 04:30 AM
monitoring app in blackbox mace Linux - General 2 05-15-2002 09:36 PM


All times are GMT -5. The time now is 04:41 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration