All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
X windows app-defaults
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
X windows app-defaults - Apr. 29, '05, 8:06:44 AM
|
|
|
mnorris
Posts: 22
Joined: Jul. 16, '04,
Status: offline
|
I am using SFU 3.5 and Exceed 10 Xserver. Where should the app-defaults directory be located? How are the files in the app-defaults directory added to the X resources database?
The reason for the questions is that I am having problems getting applications like xcalc to work. If I add the Xcalc resources to the .Xdefaults in my home directory, things work; but that is not a very nice fix.
|
|
|
RE: X windows app-defaults - Apr. 29, '05, 11:15:12 AM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
> Where should the app-defaults directory be located?
In the "standard" default installation location: /var/X11/app-defaults
There should also be a symlink of /usr/lib/X11/app-defaults to /var/X11/app-defaults but
it's missing. The X11R6 code is looking to /usr/lib/X11 first though (contradicting
it's own default settings). So try adding the symlink to fix things up.
> How are the files in the app-defaults directory added to the X resources database?
At the initial startup of an application.
|
|
|
RE: X windows app-defaults - Apr. 29, '05, 3:52:49 PM
|
|
|
mnorris
Posts: 22
Joined: Jul. 16, '04,
Status: offline
|
I put in the symbolic link but xcalc still gives errors.\
I may have the link wrong?
$ pwd
/usr/lib
$ ls -al
total 15466
drwxrwxr-x 1 Administrator +Administrators 0 Dec 18 10:33 .
drwx------+ 1 Administrator None 0 Dec 24 09:36 ..
lrw-rw-r-- 1 Administrator +Administrators 12 Nov 8 2003 X11 -> ../X11R6/lib
$ cd X11
$ pwd
/usr/X11R6/lib
$ ls -al
total 43062
drwxrwxr-x 1 Administrator +Administrators 0 Apr 29 13:15 .
drwxrwxrwx 1 Administrator +Administrators 0 Oct 20 2004 ..
drwxrwxr-x 1 Administrator +Administrators 0 Apr 29 13:23 X11
lr--r--r-- 1 Administrator +Administrators 21 Apr 29 13:15 app-defaults -> /var/X11/app-defaults
$ cd X11
$ pwd
/usr/X11R6/lib/X11
$ ls -al
total 88
drwxrwxr-x 1 Administrator +Administrators 0 Apr 29 13:23 .
drwxrwxr-x 1 Administrator +Administrators 0 Apr 29 13:15 ..
-rw-rw-r-- 1 Administrator +Administrators 29698 Nov 8 2003 XErrorDB
-rw-rw-r-- 1 Administrator +Administrators 4693 Nov 8 2003 XKeysymDB
-rw-rw-r-- 1 Administrator +Administrators 2357 Nov 8 2003 Xcms.txt
lrw-rw-r-- 1 Administrator +Administrators 32 Nov 8 2003 app-defaults -> ../../../../var/X11/app-defaults
$ cd /
$ pwd
/
$ ls /usr/lib/X11/app-defaults
Bitmap Editres XCalc XClock XLogo Xditview Xfd Xmag
Bitmap-color Editres-color XCalc-color XConsole XLogo-color Xditview-chrtr Xfm Xman
Clock-color Viewres XClipboard XFontSel XTerm Xedit Xgc
$ ls /var/X11/app-defaults
Bitmap Editres XCalc XClock XLogo Xditview Xfd Xmag
Bitmap-color Editres-color XCalc-color XConsole XLogo-color Xditview-chrtr Xfm Xman
Clock-color Viewres XClipboard XFontSel XTerm Xedit Xgc
$
|
|
|
RE: X windows app-defaults - Apr. 29, '05, 3:56:23 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
The content of /var/X11/app-defaults looks right; the XCalc file is there.
So what is it that's not working right when you run these apps ?
|
|
|
RE: X windows app-defaults - Apr. 29, '05, 4:46:38 PM
|
|
|
mnorris
Posts: 22
Joined: Jul. 16, '04,
Status: offline
|
$ xcalc
" to type Pixmapconvert string "calculator
" to type Cursorconvert string "hand2
X Error of failed request: BadPixmap (invalid Pixmap parameter)
Major opcode of failed request: 93 (X_CreateCursor)
Resource id in failed request: 0x0
Serial number of failed request: 7
Current serial number in output stream: 9
I do not get this error if I copy the Xcalc resource file into the .Xdefaults file in my home directory.
|
|
|
RE: X windows app-defaults - Apr. 30, '05, 11:31:18 AM
|
|
|
mnorris
Posts: 22
Joined: Jul. 16, '04,
Status: offline
|
The problem fits in the okay? category.
After checking all of the paths and permissions, everything looked correct. I always use nedit to edit SFU/Interix files. The use of nedit is noted because if everything is correct and things still do not work, doing something illogical is not unreasonable. I ran flip -M XCalc on the file /var/X11/app-defaults/XCalc, xcalc then works.
Thank you for the help.
|
|
|
RE: X windows app-defaults - May 1, '05, 8:57:08 PM
|
|
|
markfunk
Posts: 673
Joined: Mar. 31, '03,
Status: offline
|
Oops. Which version of nedit were you using ? The Interix version
or the cygwin version ?
If you are modifying text data for use by Interix/UNIX utils,
you need to use programs which will preserve UNIX text file format.
(cygwin is a collection of Win32 utilities that emulate UNIX somewhat.
These utils do not preserve UNIX integrity)
If you want to use nedit, you should be using the Interix version.
Remember, Interix is a UNIX environment. While you are allowed
to run Win32 programs from Interix, you need to be cognisant that Win32
programs behave different from UNIX ones and the results
may be incompatible.
The same warning is true the other way - using Interix utils on text
files used by Windows utils, may break the Windows utils.
In this case, Interix has "vi -W ..." which will preserve the
DOS text format.
|
|
|
RE: X windows app-defaults - May 2, '05, 7:22:39 AM
|
|
|
mnorris
Posts: 22
Joined: Jul. 16, '04,
Status: offline
|
I am using nedit from the Interopsystems tools forum.
|
|
|
RE: X windows app-defaults - May 2, '05, 11:33:24 AM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
The nedit editor will read a file in with any type of line endings and
then just display the text. It'll then preserve the type of ending that it opened
the file with if a modification is made and the file saved.
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|