Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Xresources not read at startup

162 views
Skip to first unread message

Kumar Ravichandran

unread,
Nov 21, 2007, 12:50:11 AM11/21/07
to
Hi,

I am running Debian Etch on a Macbook, and I have a simple problem,
namely, that my $HOME/.Xresources file, which has a few colour options
for xterm, is not read at startup. I need to manually xrdb load it
each session. I tried a variety of options, including linking it to
the system Xdefaults, checking /etc/X11/Xsession.options for the
'allow-user-session' flag, and nything related in the kdmrc file. I
also tried putting a startup script in the .kde Autostart directory,
then finally put the xrdb command in a .xsession file, having it touch
a text-file. The latter did not happen either.

Any ideas?
--

Regards,

Kumar.

--

"An eye for an eye will only make the entire world blind."

- Mohandas Karamchand Gandhi


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

s. keeling

unread,
Nov 21, 2007, 11:10:18 AM11/21/07
to
Kumar Ravichandran <kumar.rav...@gmail.com>:

>
> I am running Debian Etch on a Macbook, and I have a simple problem,
> namely, that my $HOME/.Xresources file, which has a few colour options
> for xterm, is not read at startup. I need to manually xrdb load it

I have it in ~/.xinitrc


--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.

Kumar Ravichandran

unread,
Nov 21, 2007, 10:40:08 PM11/21/07
to
On Wed, Nov 21, 2007 at 04:52:29PM +0100, s. keeling wrote:
> Kumar Ravichandran <kumar.rav...@gmail.com>:
> >
> > I am running Debian Etch on a Macbook, and I have a simple problem,
> > namely, that my $HOME/.Xresources file, which has a few colour options
> > for xterm, is not read at startup. I need to manually xrdb load it
>
> I have it in ~/.xinitrc
>
I tried that as well :(. No good!

--
Regards,

Kumar.

--

"An eye for an eye will only make the entire world blind."

- Mohandas Karamchand Gandhi


Kelly Clowers

unread,
Nov 21, 2007, 11:00:12 PM11/21/07
to
On Nov 21, 2007 7:07 PM, Kumar Ravichandran

<kumar.rav...@gmail.com> wrote:
> On Wed, Nov 21, 2007 at 04:52:29PM +0100, s. keeling wrote:
> > Kumar Ravichandran <kumar.rav...@gmail.com>:
> > >
> > > I am running Debian Etch on a Macbook, and I have a simple problem,
> > > namely, that my $HOME/.Xresources file, which has a few colour options
> > > for xterm, is not read at startup. I need to manually xrdb load it
> >
> > I have it in ~/.xinitrc
> >
> I tried that as well :(. No good!

I made .Xdefaults a symlink to .Xresources, and it started working.
Might be worth a try.


Cheers,
Kelly Clowers

Kumar Ravichandran

unread,
Nov 24, 2007, 9:40:10 AM11/24/07
to
On Wed, Nov 21, 2007 at 07:39:26PM -0800, Kelly Clowers wrote:
> On Nov 21, 2007 7:07 PM, Kumar Ravichandran
> <kumar.rav...@gmail.com> wrote:
> > On Wed, Nov 21, 2007 at 04:52:29PM +0100, s. keeling wrote:
> > > Kumar Ravichandran <kumar.rav...@gmail.com>:
> > > >
> > > > I am running Debian Etch on a Macbook, and I have a simple problem,
> > > > namely, that my $HOME/.Xresources file, which has a few colour options
> > > > for xterm, is not read at startup. I need to manually xrdb load it
> > >
> > > I have it in ~/.xinitrc
> > >
> > I tried that as well :(. No good!
>
> I made .Xdefaults a symlink to .Xresources, and it started working.
> Might be worth a try.
>
>

I am sorry to reply so late, but this was the first thing I did. Since
nothing is working, I just load the file at startup via a kde-script.

--

Regards,

Kumar.

--

"An eye for an eye will only make the entire world blind."

- Mohandas Karamchand Gandhi


Michelle Konzack

unread,
Nov 30, 2007, 9:00:11 AM11/30/07
to
Am 2007-11-21 00:43:39, schrieb Kumar Ravichandran:
> Hi,
>
> I am running Debian Etch on a Macbook, and I have a simple problem,
> namely, that my $HOME/.Xresources file, which has a few colour options

Why not put it into

$HOME/.Xdefaults-<host-alias>
or
$HOME/.Xdefaults

which are read by default troug the application?

----[ '~/devel/editres.strace' ]----------------------------------------

execve("/usr/bin/editres", ["editres"], [/* 78 vars */]) = 0
<snip>
open("/home/michelle.konzack/.Xdefaults-michelle1.private", O_RDONLY) = 4
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<snip>
read(4, "\n. ~/.Xdefaults\n", 16) = 16
<snip>
access("/home/michelle.konzack/.Xresources/de_DE.UTF8/Editres", R_OK) = -1 ENOENT (No such file or directory)
access("/home/michelle.konzack/.Xresources/de/Editres", R_OK) = 0
stat64("/home/michelle.konzack/.Xresources/de/Editres", {st_mode=S_IFREG|0664, st_size=671, ...}) = 0
open("/home/michelle.konzack/.Xresources/de/Editres", O_RDONLY) = 4
<snip>
open("/home/michelle.konzack/.Xresources/de/Editres-real", O_RDONLY) = 4
<snip>
open("/home/michelle.konzack/.Xresources/de/Editres-lang", O_RDONLY) = 4
<snip>
access("/usr/lib/X11/de_DE.UTF8/app-defaults/Editres", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/X11/de/app-defaults/Editres", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/X11/app-defaults/Editres", R_OK) = -1 ENOENT (No such file or directory)
access("/etc/X11/de_DE.UTF8/app-defaults/Editres", R_OK) = -1 ENOENT (No such file or directory)
access("/etc/X11/de/app-defaults/Editres", R_OK) = -1 ENOENT (No such file or directory)
access("/etc/X11/app-defaults/Editres", R_OK) = 0
stat64("/etc/X11/app-defaults/Editres", {st_mode=S_IFREG|0644, st_size=10027, ...}) = 0
open("/etc/X11/app-defaults/Editres", O_RDONLY) = 4
<snip>
open("/home/michelle.konzack/.icons/default/cursors/sb_v_double_arrow", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/michelle.konzack/.icons/default/index.theme", O_RDONLY) = 4
<snip>
open("/usr/share/icons/default/cursors/sb_v_double_arrow", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/pixmaps/default/cursors/sb_v_double_arrow", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/X11/icons/default/cursors/sb_v_double_arrow", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/michelle.konzack/.icons/crystalblue/cursors/sb_v_double_arrow", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/michelle.konzack/.icons/crystalblue/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/icons/crystalblue/cursors/sb_v_double_arrow", O_RDONLY) = 4
<snip>
------------------------------------------------------------------------


Thanks, Greetings and nice Day
Michelle Konzack
Tamay Dogan Network
Open Hardware Developer
Debian GNU/Linux Consultant


--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSN LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)

signature.pgp

Michelle Konzack

unread,
Nov 30, 2007, 9:00:17 AM11/30/07
to
Am 2007-11-21 19:39:26, schrieb Kelly Clowers:
> I made .Xdefaults a symlink to .Xresources, and it started working.
> Might be worth a try.

Please note, that

~/.Xresources

are different from

~/.Xdefaults-<host_alias>
or
~/.Xdefaults

While the first one is read by the "xserver" from

/etc/X11/Xsession.d/30x11-common

the later two are read by the application directly at every startup.

signature.pgp
0 new messages