LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-09-2007, 06:18 PM   #1
silentray
LQ Newbie
 
Registered: Oct 2006
Location: London
Distribution: Gentoo 2008.0
Posts: 23

Rep: Reputation: 15
~/.xsession file does not exist


Hi folks,

I am trying to set up fonts in Emacs. I found some articles which ask me to change the X configuration file : ~/.xsession.

This file does not exists in my home directory. Instead, a file called .xsession-error presents. This file contains error message:

/etc/gdm/PreSession/Default: Registering your session with wtmp and utmp
/etc/gdm/PreSession/Default: running: /usr/X11R6/bin/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "/var/lib/gdm/:0.Xservers" -h "" -l ":0" "ray"
/etc/gdm/Xsession: Beginning session setup...
SESSION_MANAGER=local/mars:/tmp/.ICE-unix/4323
Window manager warning: "" found in configuration database is not a valid value for keybinding "toggle_shaded"
Gnome-Message: gnome_execute_async_with_env_fds: returning -1
evolution-alarm-notify-Message: Setting timeout for 30834 1173484800 1173453966
evolution-alarm-notify-Message: Sat Mar 10 00:00:00 2007

evolution-alarm-notify-Message: Fri Mar 9 15:26:06 2007

(gnome-panel:4394): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 24
DOUBLE-CLICK: 400 --> -1 THRESHOLD: 5 --> -1 ** Message: plugin_get_value 1 (1)

** Message: plugin_get_value 2 (2)
** Message: plugin_get_value 1 (1)
** Message: plugin_get_value 2 (2)
** Message: plugin_get_value 1 (1)
** Message: plugin_get_value 2 (2)
** Message: plugin_get_value 1 (1)
** Message: plugin_get_value 2 (2)
** Message: plugin_get_value 1 (1)
** Message: plugin_get_value 2 (2)
** Message: plugin_get_value 1 (1)
** Message: plugin_get_value 2 (2)
** Message: plugin_get_value 1 (1)
** Message: plugin_get_value 2 (2)
** Message: plugin_get_value 1 (1)
** Message: plugin_get_value 2 (2)
** Message: plugin_get_value 1 (1)
** Message: plugin_get_value 2 (2)
** Message: plugin_get_value 1 (1)
** Message: plugin_get_value 2 (2)

I don't know why. It seems that my X window is not set up properly?

Can anyone tell me what happens and how to solve this.

Thanks,

Ray
 
Old 03-09-2007, 07:02 PM   #2
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
X startup scripts can be setup a million and one different ways
here on debian
~/.xsession is called by the global file /etc/X11/Xsession which is called by /etc/X11/xinit/xinitrc which can also be ~/.xinitrc
while both spellings work .Xsession is better
might not be there by default just like ~/.xserverrc and many others you don't need it till you want to override something.

Xsession is a file used by the display manager and/or xinit and not a good place to put emacs things
but if you want it in your home directory you just copy /etc/X11/Xsession as ~/.Xsession and go from there.

the file you want to put emacs and other apps configurations in is ~/.Xresources
http://xwinman.org/resource.php

the reason its important to use .Xresources rather than other files is Xresources is called by the executable binary xinit itself and read into a database using the binary xrdb.
so ~/.Xsession is not a bash script like all the other x startup files but rather more like a resource file used by an executable.

when you are experimenting with settings read them in with the command
xrdb ~/.Xsession
 
  


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
Erased my .xsession file Little Dump Linux - Newbie 5 12-10-2008 11:49 PM
.xsession file causes login crash? ran404 SUSE / openSUSE 1 03-13-2005 12:55 PM
No .xsession file lantern Debian 2 01-21-2005 05:41 PM
.xsession-errors file exploding ??? tjuii Linux - General 3 12-14-2004 01:32 PM
can't run .xsession file evian Linux - General 4 09-25-2003 06:11 PM

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

All times are GMT -5. The time now is 12:46 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
Open Source Consulting | Domain Registration