Bug 182986 - Mouse cursor theme keeps reverting to Oxygen White
Summary: Mouse cursor theme keeps reverting to Oxygen White
Status: RESOLVED DOWNSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_mouse (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Marie Loise Nolden
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-03 13:24 UTC by tony
Modified: 2009-02-03 16:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tony 2009-02-03 13:24:52 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Ubuntu Packages

(this also affected 4.1 - I just didn't get round to raising a bug)

System settings -> keyboard & mouse -> mouse -> cursor themes allows me to change the pointer theme.

But... When I log out and back in again, the theme used ALWAYS reverts to Oxygen White. Despite this, the cursor themes module still seems to think I've selected the correct theme, as it comes up as selected when I open that module.

On occasions I don't even need to log out to lose my selected theme, sometimes it just reverts during a session. Stranger still, at times some pointer types revert, while others stay with the theme I've chosen.

If I actually LIKED Oxygen White, I wouldn't mind ;-)
Comment 1 Dario Andres 2009-02-03 14:18:20 UTC
Can you try reproducing this bug with a new created user account only for testing?
Thanks
Comment 2 tony 2009-02-03 14:31:29 UTC
Hi Darío,

Tried that and the result is the same. It seems a little inconsistent though; First time I logged in as the new user, I changed the theme to KDE classic, then went to log out - the cursor actually changed to Oxygen White as I hovered over the logout dialogue and then reverted completely when I logged back in. 

Changed it again and logged out/in and it stayed as set, but after logging out and in again it went back to Oxygen White.

This seems to be the default theme for the login dialogue - I wonder if something global might be persisting?
Comment 3 tony 2009-02-03 14:40:10 UTC
Small update.

I just went to log off from my normal userid after changing the theme again. As soon as the logout dialogue appears, the cursor theme reverts to Oxygen White. If I click cancel, it returns to my chosen theme. 

And stranger still, in my current session, the pointer changes according to where it is.

Hovering over the desktop, it's KDE classic. Within the Kmail window it's Oxygen White, though it's back to KDE classic over Kmail's window decorations. Firefox is the same as Kmail as are xterm and konsole, but gpe-calendar and Galeon keep the correct pointer wherever I hover over them.

Interesting...
Comment 4 Dario Andres 2009-02-03 14:45:22 UTC
Mh, sometimes the apps doesn't register the Mouse cursor theme change properly so hovering the cursor on them shows the old theme.

You can test running a small app called "kapplymousetheme", it should update the cursor theme (not sure if it works properly).
Comment 5 tony 2009-02-03 14:54:34 UTC
That works INITIALLY.

Change cursor theme
run kapplymousetheme

Correct pointers appear in all windows.

Right-click desktop and select "leave"
Cursor immediately reverts to Oxygen White.

If I cancel the logout, it goes back to my selected theme. But if I log out and back in again, I'm back to Oxygen White.
Comment 6 Dario Andres 2009-02-03 15:22:27 UTC
It's like the cursor theme isn't applied in KSMServer (the application that handles the logout dialog)

Can you try this: ?
- Change cursor theme
- Run kapplymousetheme
- Logout
- Login again
(you should have the Oxygen White theme now)
- Run kapplymousetheme

What theme do you have?

(I'm trying to detect if the mouse theme isn't correctly saved (so it's lost on re-login; or if it is correctly saved (the value), but it isn't updated properly on login )
Comment 7 tony 2009-02-03 15:26:52 UTC
It stays as Oxygen White. So your surmise that it isn't being saved sounds feasible.

What file is it saved in? I can dig around and see if it's being written (or writable!)
Comment 8 Dario Andres 2009-02-03 15:30:38 UTC
Under ~/.kde4/share/config/:

kcminputrc
startupconfig
startupconfigfiles
startupconfigkeys

Not sure which is the one that holds the value (may be all)
Comment 9 Dario Andres 2009-02-03 15:31:37 UTC
On cursor change, "kcminputrc" is being updated.
Comment 10 tony 2009-02-03 15:57:23 UTC
The plot thickens...

~/.kde4/share/config/kcminputrc is NOT updated when I configure the theme
but
~/.kde/share/config/kcminputrc IS updated.

Notably, the former file had a creation time roughly when I upgraded to 4.2 yesterday and included the line:
"cursorTheme=Bluecurve-inverse"

If I change that line to
"cursorTheme=redglass"
the theme remains through logout/login.

I wonder if this is a cock-up by Ubuntu in the way they've implemented KDE4 by using ~/.kde rather than ~/.kde4?
Comment 11 Dario Andres 2009-02-03 16:10:28 UTC
As you have a .kde maybe your system have a mixed KDE3/KDE4 bug...
In your KDE4 desktop account, what is the output of the following command : "export | grep KDEHOME" 

May be your KDEHOME dir got wrong pointing to the .kde/ (KDE3) dir and it's mixing all the configurations. (not saving/loading properly)
Comment 12 tony 2009-02-03 16:25:13 UTC
You seem to have hit the nail on the head, Darío.

KDEHOME wasn't set at all. So by exporting it as ~/.kde in /etc/profile, I can make things work right.Change theme, log out, log back in - theme comes up as configured.

This looks even more like a Kubuntu error to me...
Comment 13 Dario Andres 2009-02-03 16:36:41 UTC
It's indeed a system configuration/packaging issue :)
Comment 14 tony 2009-02-03 16:42:25 UTC
Many thanks for all your help Darío.

I'll raise an Ubuntu bug.
Comment 15 Dario Andres 2009-02-03 16:43:56 UTC
You are welcome. I'm glad you solved the problem. ;)