LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-08-2006, 03:17 PM   #1
tazmad78
LQ Newbie
 
Registered: Oct 2005
Location: London
Distribution: Fedora Core 4
Posts: 3

Rep: Reputation: 0
Angry How to I start programs automatically?


Hi All,

I hate clutter on my desktop and was pleaseed when I found the ksmoothdock (similar to the dock on a MAC) but the problem is whenever I start KDE I have to start the ksmoothdock manually? Is there any way I can set this to start automatically?

I use runlevel 3 by default and get the GUI's by running "startx".

Thanks
 
Old 02-08-2006, 03:25 PM   #2
accessrichard
Member
 
Registered: Apr 2005
Distribution: Fedora Core (latest version)
Posts: 156

Rep: Reputation: 30
If you put the command to start a program in the

~/.kde/Autostart

folder it should start on KDE startup.

But it would be easiest to go to the KDE control panel and find the session management controls and choose restart automatically saved sessions. Then in the K-menu (e.g. start menu in windows), click on the save session option. Then log out and log in and it should work.
 
Old 02-08-2006, 03:40 PM   #3
tazmad78
LQ Newbie
 
Registered: Oct 2005
Location: London
Distribution: Fedora Core 4
Posts: 3

Original Poster
Rep: Reputation: 0
one quick question

Do i just create a shell script that will point to this application and place that script in the Autostart folder?

(Sorry am complete newbie when it comes to stuff like this.

thanks
 
Old 02-08-2006, 06:39 PM   #4
accessrichard
Member
 
Registered: Apr 2005
Distribution: Fedora Core (latest version)
Posts: 156

Rep: Reputation: 30
In the Autostart folder, create a file like so ..

Code:
#!/bin/sh
/path/to/ksmoothdock
I also believe that if you put a link to the application in the Autostart folder this would also work and probably be better than creating a short script.

I have never tried this but to do this just do a

Code:
ln -s /path/to/ksmoothdock ~/.kde/Autostart/ksmoothdock

Last edited by accessrichard; 02-08-2006 at 06:47 PM.
 
Old 02-09-2006, 11:01 AM   #5
tazmad78
LQ Newbie
 
Registered: Oct 2005
Location: London
Distribution: Fedora Core 4
Posts: 3

Original Poster
Rep: Reputation: 0
I created the link and it worked. I had tried to save the session andset kde to remember the last session, but for some reason that hadnt worked. Thanks for the help!
 
Old 02-10-2006, 01:57 PM   #6
tonyfreeman
Member
 
Registered: Sep 2003
Location: Fort worth, TX
Distribution: Debian testing 64bit at home, EL5 32/64bit at work.
Posts: 196

Rep: Reputation: 30
Startup Program in GNOME

Great tip ... now how can one start up programs like this in GNOME?
 
Old 02-10-2006, 10:26 PM   #7
accessrichard
Member
 
Registered: Apr 2005
Distribution: Fedora Core (latest version)
Posts: 156

Rep: Reputation: 30
I know there is a way in one of the Gnome setup panels, a quick search led to this


http://gentoo-wiki.com/HOWTO_Autostart_Programs

hope this helps
 
Old 02-13-2006, 02:42 AM   #8
Mad_C
Member
 
Registered: Dec 2002
Location: Austria
Distribution: Slax, ccux-Linux, coLinux
Posts: 49

Rep: Reputation: 15
Make apps start on specific desktops

I need to have a couple of apps start at KDE startup, each on it's own desktop, so that I can switch between them with CTRL-F1, CTRL-F2, etc.

Does anyone know how to do this?

Thanks,

Christian
 
Old 02-13-2006, 04:20 AM   #9
Mad_C
Member
 
Registered: Dec 2002
Location: Austria
Distribution: Slax, ccux-Linux, coLinux
Posts: 49

Rep: Reputation: 15
Found it:

http://docs.kde.org/development/en/k...html#id2552978

Quote:
6.5.

How do I launch applications in a particular desktop?


KDE comes with a program called kstart. To start an xterm on the second desktop and then activate it use: kstart --desktop 2 --activate --window "xterm" xterm.

Note that the --window option is important. It takes an argument which is a regular expression matching the title of the window to apply the settings to.

Please read kstart --help-all for more magic available with kstart (and there is an abundance).
Any comments are warmly welcome, though ..
 
Old 03-09-2006, 06:57 AM   #10
WeatherMan89
LQ Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
Question Need more information about using kstart

Hi,

I have read the instructions that come with kstart (kstart --help-all). However, I have not been able to get it to work as I thought it would.

I am trying to run the "xterm" program in the third vitual workspace. As long as the workspace is named xterm, it seems to work correctly

kstart --desktop 3 --activate --window "xterm" xterm

If the third workspace is called "Three", the xterm window opens in workpace one.

kstart --desktop 3 --activate --window "Three" xterm

Am I doing anything wrong?

Jeffrey Hovis
 
Old 03-09-2006, 07:22 AM   #11
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
Quote:
Originally Posted by tonyfreeman
Great tip ... now how can one start up programs like this in GNOME?
gnome>desktop>preferences>more preferences>sessions>startup programs

i've found that it's better to use a script as opposed to a command, especially, of course, if the command usually runs in a terminal.

cheers,
 
  


Reply



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
automatically launching programs during start up nanjil Linux - Newbie 2 08-09-2005 11:17 PM
Start programs automatically for xfce4 laiboonh Linux - Newbie 2 01-03-2005 09:59 PM
How do I start programs automatically with boot up? Kasperisa Linux - Newbie 6 07-15-2004 03:29 PM
Programs Automatically Start When I log In To KDE deft Linux - Software 4 04-06-2004 07:54 PM
How to start programs automatically at boot? onchiman Linux - Hardware 2 03-18-2003 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:31 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