LinuxQuestions.org
Visit Jeremy's Blog.
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-17-2004, 02:05 AM   #1
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Rep: Reputation: 30
Could I .xinitrc for this....


I have gkrellm and I want it to start when x is started. Now I am using the .xinitrc dile already, could I use that to start it when x starts?
 
Old 02-17-2004, 02:15 AM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
probably. i'm not sure though as i keep programs i want to start local to the user. inside ~/.kde there's an Autostart directory where you can put a link to gkrellm in and that will start it up when you login. but for me gkrellm is kinda funny as i don't need to explicitely call it, i just needed to kill it. it was the settings in gkrellm where i have it remember where it was at exit and to move there at next startup and the fact when you log out it's still open in kde and kde remembers that too. so basically gkrellm would start a gkrellm process when re-logged in to kde and kde started one at login so the gkrellm process would double up on every login to kde. anyway so i put in a script that searched for a gkrellm process and killed the first one it saw inside that Autostart folder which left exactly one gkrellm process at startup. confused? sorry about that. just an odd thing i have with gkrellm.
 
Old 02-17-2004, 02:18 AM   #3
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Original Poster
Rep: Reputation: 30
What do you mean link it? Could you give me an example or a site I could research it at
 
Old 02-17-2004, 02:22 AM   #4
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
open a shell terminal and use these commands:

1. cd $HOME/.kde/Autostart
2. whereis gkrellm
<take note of the path to gkrellm - on my system it's in /usr/bin>
3. ln -s /usr/bin/gkrellm gkrellm

you now have a link in the Autostart folder called gkrellm
 
Old 02-17-2004, 02:26 AM   #5
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Original Poster
Rep: Reputation: 30
thanks that worked
 
Old 02-17-2004, 06:57 PM   #6
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
However, in the interests of completeness, that relates to KDE only. Gnome has something similar, I'm sure. But, if you want to run a different Window Manager, and still have the functionality of the above, then you should try this in your ~/.xinitrc file:
Code:
#! /bin/bash
# Example .xinitrc file
exec gkrellm&
exec xterm&
exec starticewm
Notice how both gkrellm and xterm have the & at the end, but the Window Manager doesn't. When using .xinitrc, you need to start all the programmes you want to run before the Window Manager. Therefore, the Window Manager should be the last line on your .xinitrc (except for comments) so when you close the Window Manager, X closes too.
 
  


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
Need something like ~/.xinitrc when using GDM Mr. Asdf Linux - Software 1 10-25-2005 03:23 AM
.xinitrc missing pirozzi Fedora 4 11-15-2004 04:51 PM
.xinitrc unimaginative Linux - Newbie 1 01-03-2004 11:53 PM
.xinitrc nakkaya Linux - Software 1 04-11-2003 04:12 PM
.xinitrc mrsolo Linux - Software 5 10-30-2002 11:16 AM

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

All times are GMT -5. The time now is 10:04 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration