Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53760 - KDE cursor fixes
Summary: KDE cursor fixes
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 94280 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-12 18:52 UTC by Siuchung Cheung (Clement)
Modified: 2006-11-23 05:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
buildxcursorhash (buildxcursorhash,1.09 KB, text/plain)
2004-06-12 18:55 UTC, Siuchung Cheung (Clement)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Siuchung Cheung (Clement) 2004-06-12 18:52:03 UTC
I was trying to use the KDE control center to set my cursor themes and only Bluecurve is listed. Also, the hand cursor in the themes are not honored. I've investigated the problem and I recommend the following changes to the ebuilds:

1. Other cursor themes are not listed because for some reasons it searches /usr/share/icons instead of /usr/share/cursors. It list a directory as a cursor theme if a directory called cursors is found under that directory. So symlinks are needed to get cursor themes listed:

If there is already an icon theme with the same name (Industrial for example),
ln -s /usr/share/cursors/xfree/Industrial/cursors /usr/share/icons/Industrial/cursors

Note that the theme name, comments, etc. will take on the values given in the icon theme. (in index.theme)

If there's no identical icon theme, create a link to the cursor directory (gentoo for example),

ln -s /usr/share/cursors/xfree/gentoo /usr/share/icons/gentoo

The xfree and x.org ebuilds should do this for gentoo, gentoo-silver, redglass, whiteglass, etc.

The *-artwork ebuilds should do this too. Note that redhat-artwork already did this.

2. Many ebuilds (redhat-artwork for example) have paths hardcoded for /usr/share/cursors/xfree/*. If I'm using x.org, that path is old and useless anyway. By moving xfree to x.org and making xfree a symlink to x.org, all old ebuilds works automatically.

3. Hashes are needed for the themes to work in KDE/QT (the hand for links in konqueror for example). I've written a script based on the hash values given in the xcursor themes tutorial on kde-look.org (attached).

You can copy and paste it and run it every time a cursor theme is installed (in the *-artwork and in xfree and x.org ebuilds) or you can run "for f in /usr/share/cursors/xfree/*; do buildxcursorhash; done" at the end of the xfree or x.org ebuild.

Reproducible: Always
Steps to Reproduce:
Comment 1 Siuchung Cheung (Clement) 2004-06-12 18:55:04 UTC
Created attachment 33154 [details]
buildxcursorhash

A script that fills in missing hash symlinks as needed.
Comment 2 David Blue 2004-07-09 09:14:23 UTC
Actually this should be as simple as adding an env var, XCURSOR_PATH.

For example on my system (which uses xorg-x11 rather than xfree) it's something like

XCURSOR_PATH=/usr/share/cursors/xorg-x11:/usr/local/share/cursors/xorg-x11
Comment 3 Dan Armak (RETIRED) gentoo-dev 2005-02-18 11:48:00 UTC
Cursor themes work for me in kde 3.4.0_beta2. Needs to be verified for 3.3.2
(which I'm currently re-merging for unrelated reasons...)
Comment 4 Dan Armak (RETIRED) gentoo-dev 2005-07-01 09:22:16 UTC
Works in kde 3.4.1, please reopen if it doesn't work. 
Comment 5 Gregorio Guidi (RETIRED) gentoo-dev 2005-07-09 08:46:23 UTC
*** Bug 94280 has been marked as a duplicate of this bug. ***
Comment 6 Gregorio Guidi (RETIRED) gentoo-dev 2005-07-09 08:50:04 UTC
It seems missing hashes in the cursor theme directories is still a problem, as 
shown in bug 94280. 
  
I can also reproduce it for instance with the redglass theme, that is missing  
the hand cursor.  
 
Comment 7 Charlie Shepherd (RETIRED) gentoo-dev 2006-11-23 05:21:18 UTC
Is this still an issue in kde-3.5.5?