Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 07-12-2003, 07:39 PM   #1
Registered: Jun 2003
Posts: 62

Rep: Reputation: 15
Question .xinitrc isn't executed


X11R6 does not execute the commands in .xinitrc!
What could be the reason?

Which file must i edit to execute .xinitrc?
Old 07-12-2003, 07:51 PM   #2
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Do you use startx to start your gui or the GUI login?

It works if you use startx. The gui login ignores this file.
Old 07-13-2003, 12:02 AM   #3
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,047
Blog Entries: 11

Rep: Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907
As fancy pointed out, the GUI
logins ignore .xinitrc ... however,
you oculd just rename the file to
.xsession :)

Old 07-13-2003, 02:42 AM   #4
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 247

Rep: Reputation: 31
After .xinitrc was created, did you chmod it to make it executable?
You can check the permissions by typing:
ls -al .xinitrc in your home directory.

For info on how to make it executable see:
man chmod

Good sailing!
Old 07-14-2003, 10:23 AM   #5
Registered: Jun 2003
Posts: 62

Original Poster
Rep: Reputation: 15

Thanks for your answers. Now i'm using file .xsession but it doesn't work! Here something about this file:

$ ls -l .xsession
-rwxrwxr-x 1 user user 40 Jul 14 16:12 .xsession

$less .xsession
#! /bin/sh
xmodmap /home/user/.xmodmaprc

Where is the error?
Old 08-06-2003, 04:53 AM   #6
Registered: Jun 2003
Posts: 62

Original Poster
Rep: Reputation: 15
Doesn't anyone have an idea, why .xsession is not be runned?
Does this only work with startx, too?



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
How to get next executed line phuna Programming 2 07-08-2005 01:05 AM
# of times loops are executed leroy27336 Programming 10 09-14-2004 05:07 AM
.bashrc not being executed, why? realos Linux - Newbie 1 12-20-2003 08:46 PM
TightVNC-->xstartup isn't executed.... pablovschby Linux - Networking 2 12-07-2003 10:57 AM
.bash_logout does not get executed nearfar Linux - Newbie 3 10-17-2003 12:40 PM

All times are GMT -5. The time now is 09:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration