LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-31-2006, 12:17 PM   #1
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
How to run my .xinitrc


Hi !

I am migrating from SuSE 10.0 to FC5.
In SuSE, I have a ~/.xinitrc file to run...
Code:
eval `ssh-agent -s`
ssh-add

eval `gpg-agent --daemon`
...just before my window manager start.

How to do a similar thing on FC5 ?
Looks like it ignores my ~/.xinitrc file.
I've tried with a .xsession but it didn't work too

thanks in advance for any ideas,
 
Old 04-01-2006, 04:43 PM   #2
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
.xinitrc gets started by startx command
 
Old 04-03-2006, 06:29 AM   #3
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499

Original Poster
Blog Entries: 2

Rep: Reputation: 68
Yes, I know. After that, startx calls my DEFAULT_WM (which is defined in /etc/sysconfig/windowmanager).

Thats mean in FC5 the things are different ? My WM is not called by startx ?

How do I run theses commands before my window manager starts ?

thanks for any comments,
 
Old 04-03-2006, 11:56 AM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499

Original Poster
Blog Entries: 2

Rep: Reputation: 68
Solved

run the program switchdesk and it will create a .Xclients-default file.
Edit this file adding the commands just before the for loop.
Code:
bash-3.1$ cat .Xclients-default
#!/bin/bash
# (c) 2001 Red Hat, Inc.

WM="gnome-session"
WMPATH="/usr/bin /usr/X11R6/bin /usr/local/bin"

# ssh-add
eval `ssh-agent`
ssh-add

eval `gpg-agent --daemon`

for p in $WMPATH ; do
   [ -x $p/$WM ] && exec $p/$WM
done


exit 1
bash-3.1$
 
Old 04-04-2006, 09:27 AM   #5
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Glad you fixed it and thanks for posting the solution.
 
  


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
Am i supposed to edit xinitrc to run a command at startup? Tyir Linux - General 36 12-05-2007 12:57 PM
Make KDM run .xinitrc or .xsession asrisk Linux - Newbie 7 08-01-2005 06:20 AM
.xinitrc doesn't seem to run Imek Linux - General 7 03-14-2004 04:07 AM
.xinitrc question. Just trying to get one program to run hindenbergbaby Linux - General 2 02-21-2004 06:06 PM
drakboot's settings don't stick, can't get .xinitrc to run kalvnhobbz Mandriva 3 12-05-2003 12:59 AM

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

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