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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-08-2006, 04:17 PM
|
#1
|
LQ Newbie
Registered: Oct 2005
Location: London
Distribution: Fedora Core 4
Posts: 3
Rep:
|
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
|
|
|
02-08-2006, 04:25 PM
|
#2
|
Member
Registered: Apr 2005
Distribution: Fedora Core (latest version)
Posts: 156
Rep:
|
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.
|
|
|
02-08-2006, 04:40 PM
|
#3
|
LQ Newbie
Registered: Oct 2005
Location: London
Distribution: Fedora Core 4
Posts: 3
Original Poster
Rep:
|
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
|
|
|
02-08-2006, 07:39 PM
|
#4
|
Member
Registered: Apr 2005
Distribution: Fedora Core (latest version)
Posts: 156
Rep:
|
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 07:47 PM.
|
|
|
02-09-2006, 12:01 PM
|
#5
|
LQ Newbie
Registered: Oct 2005
Location: London
Distribution: Fedora Core 4
Posts: 3
Original Poster
Rep:
|
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!
|
|
|
02-10-2006, 02:57 PM
|
#6
|
Member
Registered: Sep 2003
Location: Fort worth, TX
Distribution: Debian testing 64bit at home, EL5 32/64bit at work.
Posts: 196
Rep:
|
Startup Program in GNOME
Great tip ... now how can one start up programs like this in GNOME?
|
|
|
02-10-2006, 11:26 PM
|
#7
|
Member
Registered: Apr 2005
Distribution: Fedora Core (latest version)
Posts: 156
Rep:
|
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
|
|
|
02-13-2006, 03:42 AM
|
#8
|
Member
Registered: Dec 2002
Location: Austria
Distribution: Slax, ccux-Linux, coLinux
Posts: 49
Rep:
|
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
|
|
|
02-13-2006, 05:20 AM
|
#9
|
Member
Registered: Dec 2002
Location: Austria
Distribution: Slax, ccux-Linux, coLinux
Posts: 49
Rep:
|
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 .. 
|
|
|
03-09-2006, 07:57 AM
|
#10
|
LQ Newbie
Registered: Mar 2006
Posts: 1
Rep:
|
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
|
|
|
03-09-2006, 08:22 AM
|
#11
|
Senior Member
Registered: Dec 2005
Distribution: Slackware
Posts: 1,135
|
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,
|
|
|
All times are GMT -5. The time now is 06:13 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|