Help answer threads with 0 replies.
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, 06: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, 06:51 PM   #2
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
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-12-2003, 11:02 PM   #3
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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

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

Rep: Reputation: 32
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, 09: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, 03: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 12:05 AM
# of times loops are executed leroy27336 Programming 10 09-14-2004 04:07 AM
.bashrc not being executed, why? realos Linux - Newbie 1 12-20-2003 07:46 PM
TightVNC-->xstartup isn't executed.... pablovschby Linux - Networking 2 12-07-2003 09:57 AM
.bash_logout does not get executed nearfar Linux - Newbie 3 10-17-2003 11:40 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:04 PM.

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
Open Source Consulting | Domain Registration