LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-03-2003, 11:24 AM   #1
hayduke
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake 9.0
Posts: 2

Rep: Reputation: 0
Question Stupid script problems


I'm using 9.0 and am still trying to figure out how to do one simple thing: automatically start an app after login. Should be simple but it isn't. I want to auto-login to KDE 3.0 then start my SETI program. I read somewhere that KDE refuses to run local scripts. Is this really the case? I also tried saving the current session hoping SETI would start automatically with the next login. It doesn't.
I tried editing the .bash_profile script but the profile never completely loads if I append any app to the end. I tried using a .local_bash_profile and KDE doesn't see it. I also eventually want this to work with Blackbox because it's faster.

So what's the secret here? This can't be that difficult! All I want is something similar to Windows Startup folder or System.ini. Exactly what script do I need to create and where does it go? I assume it's in my /home/username directory?
 
Old 10-03-2003, 11:49 AM   #2
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
Check this link out...
setiathome.ssl.berkeley.edu/README.unix.txt
Find the section called RUNNING SETIATHOME
 
Old 10-03-2003, 12:34 PM   #3
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Use .bashrc instead of .bash_profile, this will run any programs located there
 
Old 10-03-2003, 04:15 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 3,018

Rep: Reputation: 400Reputation: 400Reputation: 400Reputation: 400Reputation: 400
For kde it's pretty easy. Put the script in ~/.kde/Autostart.
Making the script is easy too. Create an empty text file in the Autostart directory and insert this text:

#!/bin/bash
<insert path to app>

Navigate to the directory where the script is located in a console and run this as root:

# cd ~/.kde/Autostart
# chmod a+x name_of _textfile

It's necessary to do the above to make the script executable.

Not sure about blackbox but assume it is similar to fluxbox. In ~/.fluxbox there is a configuration file called "startup". It has pretty good comments re how to edit. Somewhere above the last line which is "exec fluxbox" you just type the path to the app you want to start followed by a "&"(very important to put this in)eg:

/usr/bin/bash &

Note the "." before a file or dir indicates its hidden in linux. To view in konqueror, go to "View" and tick the view hidden files option.

Last edited by kilgoretrout; 10-03-2003 at 04:25 PM.
 
Old 10-03-2003, 09:29 PM   #5
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
.......... adding to kilgoretrout

Quote:
I'm using 9.0 and am still trying to figure out how to do one simple thing: automatically start an app after login
As a general point, put a symlink from an actual application into ~/.kde/Autostart - for example

ln -s /usr/bin/kspread ~/.kde/Autostart

starts kspread automatically after kde has loaded.
 
  


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
Stupid, stupid question; I lost Klaptop. :( Surfrider Slackware 2 08-31-2005 09:12 PM
bash script - even more stupid question than last time. webamoeba Linux - Newbie 2 02-12-2004 03:03 AM
stupid stupid newb ? what to use instead of xconfigurator h00ligan Fedora 3 01-25-2004 09:51 PM
I'm a stupid newbie with proftpd problems majorcompugeek Linux - Networking 2 09-29-2003 04:46 PM
Stupid Email Problems bespinct Linux - Newbie 2 06-04-2003 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:25 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration