LinuxQuestions.org
Review your favorite Linux distribution.
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 07-12-2003, 06:39 PM   #1
hampel
Member
 
Registered: Jun 2003
Posts: 62

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


Hello!

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
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
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
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,966
Blog Entries: 11

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

Cheers,
Tink
 
Old 07-13-2003, 01:42 AM   #4
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 243

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, 09:23 AM   #5
hampel
Member
 
Registered: Jun 2003
Posts: 62

Original Poster
Rep: Reputation: 15
Hello!

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
hampel
Member
 
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?

greets
 
  


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
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


All times are GMT -5. The time now is 03:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration