On Sat, 18 Feb 2012 11:28:50 +0100
Matthieu Herrb <matthieu.he...@laas.fr> wrote:

> On Wed, Feb 15, 2012 at 07:45:14AM +1100, Brett wrote:
> > Hi,
> > While installing xcursor-themes I noticed that the config instructions
> > at  are out-of-date. The path specified does not
> > exist when this port is built.

[...]

> > Also the instructions say to use the
> > XCURSOR_SIZE environment variable to change the pointer size, but (at
> > least when using jwm) it does nothing. Changing Xcursor.size in
> > ~/.Xdefaults does work though.
> 
> XCURSOR_SIZE only affects the size of the cursor in applications
> started with the new value. It doesn't change the size of existing
> cursors. But when used correctly it definatly does work. 
> 
> So I've nothing against a patch that adds the fact that the
> Xcursor.size resource can be used, but I don't want to remove the env
> var documentation.
> 

Originally I installed the ports and updated XCURSOR_PATH, XCURSOR_THEME, and 
XCURSOR_SIZE in ~/.profile, then logged out of x with ctrl+alt+backspace, and 
"startx"d back in. The cursor size did not change for me until I used the 
.Xdefault method. But most likely it was some mistake on my part.

How about this diff, incorporating Matthieu's above reply:


Index: ports/x11/xcursor-themes/pkg/DESCR
===================================================================
RCS file: /cvs/ports/x11/xcursor-themes/pkg/DESCR,v
retrieving revision 1.2
diff -u -r1.2 DESCR
--- ports/x11/xcursor-themes/pkg/DESCR  15 Apr 2010 14:34:12 -0000      1.2
+++ ports/x11/xcursor-themes/pkg/DESCR  18 Feb 2012 11:18:49 -0000
@@ -5,8 +5,8 @@
 to the traditional X server "core" cursors. 
 
 To use the new cursors 
-- set the environment variable XCURSOR_PATH to 
-  "~/.icons:${PREFIX}/lib/X11/icons"
+- set the environment variable XCURSOR_PATH to "~/.icons" (the freedesktop
+  standard location) or "${PREFIX}/lib/X11/icons"
 
 - either :
   a) set the XCURSOR_THEME environment variable to one of the theme names 
@@ -18,5 +18,7 @@
    Inherits=whiteglass
    -- Cut --
 
-The XCURSOR_SIZE environment variable can be used to set the size of
-the cursors. 
+The size of the cursor can be controlled by either:
+  a) setting the CURSOR_SIZE environment variable 
+  b) adding the line "Xcursor.size: value" to ~/.Xdefaults
+     where value is a pixel size (eg 24, 32 or 48).

Reply via email to