Am 2007-05-22 20:39:54, schrieb Mumia W..: ??? Ignore anyone who says that an ~/.Xresources/ directory has any ??? significance.
This is bullshit, since ~/.Xresurces/ IS READ always. ----[ '/tmp/xfontsel.strace' ]------------------------------------------ 18707 14:25:31.582714 [????????] execve("/usr/X11R6/bin/xfontsel", ["xfontsel"], [/* 92 vars */]) = 0 18707 14:25:31.587394 [4001158d] uname({sysname="Linux", nodename="michelle1.private", release="2.4.27-2-386", version="#1 Wed Aug 17 09:33:35 UTC 2005", machine="i686"}) = 0 <snip> 18707 14:25:31.626922 [4028e63d] uname({sysname="Linux", nodename="michelle1.private", release="2.4.27-2-386", version="#1 Wed Aug 17 09:33:35 UTC 2005", machine="i686"}) = 0 18707 14:25:31.627025 [402b0b58] open("/home/michelle.konzack/.Xdefaults-michelle1.private", O_RDONLY) = 4 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Is read ALWAYS. 18707 14:25:31.639521 [402afe6d] fstat64(4, {st_dev=makedev(0, 10), st_ino=791, st_mode=S_IFREG|0644, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=8192, st_blocks=2, st_size=71, st_atime=2007/05/24-14:24:47, st_mtime=2007/05/24-14:21:50, st_ctime=2007/05/24-14:24:39}) = 0 18707 14:25:31.639611 [402b0d18] read(4, "*customization: -lightblue\n\n#define LONG_NAMES yes\n\n#define BUBTIPS no\n", 71) = 71 18707 14:25:31.639663 [402b0c91] close(4) = 0 18707 14:25:31.639847 [402b0e41] access("/home/michelle.konzack/.Xresources/[EMAIL PROTECTED]/XFontSel-lightblue", R_OK) = -1 ENOENT (No such file or directory) Now it try to get the Xresource for "[EMAIL PROTECTED]" but since it does not exist 18707 14:25:31.639909 [402b0e41] access("/home/michelle.konzack/.Xresources/de/XFontSel-lightblue", R_OK) = 0 it try "de" 18707 14:25:31.642387 [402afd0d] stat64("/home/michelle.konzack/.Xresources/de/XFontSel-lightblue", {st_dev=makedev(0, 10), st_ino=832284, st_mode=S_IFREG|0644, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=8192, st_blocks=52, st_size=25020, st_atime=2007/05/24-13:37:55, st_mtime=2007/01/29-15:24:34, st_ctime=2007/01/29-15:24:34}) = 0 18707 14:25:31.643372 [402b0b58] open("/home/michelle.konzack/.Xresources/de/XFontSel-lightblue", O_RDONLY) = 4 and read it in. 18707 14:25:31.644276 [402afe6d] fstat64(4, {st_dev=makedev(0, 10), st_ino=832284, st_mode=S_IFREG|0644, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=8192, st_blocks=52, st_size=25020, st_atime=2007/05/24-13:37:55, st_mtime=2007/01/29-15:24:34, st_ctime=2007/01/29-15:24:34}) = 0 18707 14:25:31.644354 [402b0d18] read(4, "!###################################################################\n!# "..., 25020) = 25020 18707 14:25:31.644487 [402b0c91] close(4) = 0 18707 14:25:31.645146 [402b0b58] open("/home/michelle.konzack/.Xresources/de/XFontSel-lang", O_RDONLY) = 4 and this is a loclized include 18707 14:25:31.645749 [402afe6d] fstat64(4, {st_dev=makedev(0, 10), st_ino=832247, st_mode=S_IFREG|0644, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=8192, st_blocks=18, st_size=8627, st_atime=2007/05/24-14:27:46, st_mtime=2007/05/24-14:25:24, st_ctime=2007/05/24-14:28:13}) = 0 18707 14:25:31.645814 [402b752b] brk(0) = 0x8071000 18707 14:25:31.645836 [402b752b] brk(0x8092000) = 0x8092000 18707 14:25:31.645870 [402b0d18] read(4, "\n#define BUBTIPS no\n#undef BUBTIPS\n\n!###################################################################\n!#\n!# /etc/X11/app-def"..., 8627) = 8627 18707 14:25:31.646798 [402b0c91] close(4) = 0 and not it try to read the defaults: 18707 14:25:31.647037 [402b0e41] access("/etc/X11/[EMAIL PROTECTED]/app-defaults/XFontSel-lightblue", R_OK) = -1 ENOENT (No such file or directory) 18707 14:25:31.647091 [402b0e41] access("/etc/X11/de/app-defaults/XFontSel-lightblue", R_OK) = -1 ENOENT (No such file or directory) 18707 14:25:31.647132 [402b0e41] access("/etc/X11/app-defaults/XFontSel-lightblue", R_OK) = -1 ENOENT (No such file or directory) 18707 14:25:31.647171 [402b0e41] access("/etc/X11/[EMAIL PROTECTED]/app-defaults/XFontSel", R_OK) = -1 ENOENT (No such file or directory) 18707 14:25:31.647208 [402b0e41] access("/etc/X11/de/app-defaults/XFontSel", R_OK) = -1 ENOENT (No such file or directory) 18707 14:25:31.647244 [402b0e41] access("/etc/X11/app-defaults/XFontSel", R_OK) = 0 18707 14:25:31.647277 [402afd0d] stat64("/etc/X11/app-defaults/XFontSel", {st_dev=makedev(3, 1), st_ino=118605, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=10, st_size=4778, st_atime=2007/05/24-14:24:57, st_mtime=2005/09/02-00:34:55, st_ctime=2006/03/04-14:57:17}) = 0 18707 14:25:31.647352 [402b0b58] open("/etc/X11/app-defaults/XFontSel", O_RDONLY) = 4 18707 14:25:31.647389 [402afe6d] fstat64(4, {st_dev=makedev(3, 1), st_ino=118605, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=10, st_size=4778, st_atime=2007/05/24-14:24:57, st_mtime=2005/09/02-00:34:55, st_ctime=2006/03/04-14:57:17}) = 0 18707 14:25:31.647459 [402b0d18] read(4, "! $XConsortium: XFontSel.ad,v 1.12 94/04/17 20:43:40 gildea Exp $\n!\n! app-defaults for XFontSel\n!\n! Copyright (c) 1985, 1986, 19"..., 4778) = 4778 18707 14:25:31.647537 [402b0c91] close(4) = 0 <snip> ------------------------------------------------------------------------ So, As you can see, you can set your defaults in ~/.Xdefaults-<host> and it works definitivly... since ages! Same for the ~/.Xresources/ which are alwas read too. Please see my project : <http://freenet-homepage.de/linux4michelle/tdapp-defaults/> Thanks, Greetings and nice Day Michelle Konzack Systemadministrator Tamay Dogan Network 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
Description: Digital signature