help-gv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-gv] Locations of application default files


From: Orion Poplawski
Subject: Re: [help-gv] Locations of application default files
Date: Thu, 27 Oct 2005 14:08:28 -0600
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)

Orion Poplawski wrote:
> Also, it appears to try to access /usr/share/gv as a file, not a
> directory immediately after this:
> 
> open("/usr/share/gv", O_RDONLY)         = 4
> fstat64(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> read(4, 0x997b488, 4096)                = -1 EISDIR (Is a directory)
> close(4)                                = 0

The attached patch makes it read GV_LIBDIR/GV.  Still seems like the
file should be in /usr/X11R6/lib/X11/app-defaults/GV, but this seems to
work.

-- 
Orion Poplawski
System Administrator                   303-415-9701 x222
Colorado Research Associates/NWRA      FAX: 303-415-9702
3380 Mitchell Lane, Boulder CO 80301   http://www.co-ra.com
--- gv-3.6.1/src/resource.c.orig        2004-12-06 16:36:57.000000000 -0700
+++ gv-3.6.1/src/resource.c     2005-10-27 13:55:29.000000000 -0600
@@ -151,7 +151,8 @@
     //  s = 
XtResolvePathname(display,"app-defaults",NULL,NULL,NULL,NULL,0,NULL);
     /* #endif */
 
-    String rpath = GV_XtNewString(GV_LIBDIR);
+    sprintf(tmp,"%s/%s",GV_LIBDIR,app_class);
+    String rpath = GV_XtNewString(tmp);
     if (rpath) {
       INFSMESSAGE(merging system resource file into database,rpath)
        XrmCombineFileDatabase(rpath,&db,True);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]