Bug 413652 - Settings synchronization does not copy cursor settings
Summary: Settings synchronization does not copy cursor settings
Status: RESOLVED NOT A BUG
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_sddm (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-30 23:01 UTC by patrick.rifici
Modified: 2019-11-05 00:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description patrick.rifici 2019-10-30 23:01:33 UTC
SUMMARY
When you sync your Plasma theme settings to SDDM, the cursor theme does not appear to be set.

STEPS TO REPRODUCE
1. Set your desktop theme to Breeze (including cursors).
2. Open the Advanced settings in the SDDM KCM.
3. Press Sync.

OBSERVED RESULT
The theme is synced to SDDM except for the cursor theme.

EXPECTED RESULT
The theme is synced to SDDM including the cursor theme.

SOFTWARE/OS VERSIONS
Linux Distro: Arch
Linux Version: 5.3.7
KDE Plasma Version: 5.17.2
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.1

ADDITIONAL INFORMATION
This can be manually rectified by editing "/etc/sddm.conf.d/kde_settings.conf" and adding "CursorTheme=breeze_cursors" under the "[Theme]" section. The same incorrect behaviour happens if you simply set the Breeze theme as your chosen theme in the "Theme" tab in the KCM. I unfortunately don't know enough about Linux theme files to be sure (or how to check for that matter), but could that mean that the Breeze theme package is missing a link to the cursor theme?
Comment 1 Nate Graham 2019-11-04 14:55:54 UTC
Which cursor theme are you trying to sync? Was it installed in a systemwide location via your package manager, or in a user location using the "Get New Cursors" functionality in system settings or another method?
Comment 2 patrick.rifici 2019-11-04 22:15:20 UTC
Hi Nate,

The cursor theme I was trying to set is the Breeze cursor theme. It was installed by my package manager and is system wide (it's found in /usr/share/icons/breeze_cursors).
Comment 3 Nate Graham 2019-11-04 22:21:28 UTC
Thanks!
Comment 4 Filip Fila 2019-11-04 22:41:31 UTC
I can't reproduce with those package versions in Manjaro (should be the same as Arch in this case).

I made sure to use the Breeze SDDM theme and Breeze cursors.
I then Hit "Reset" settings to clear everything just in case.
Result: I'm seeing the cursor theme in SDDM and the entry is there in the kde_settings.conf file.

What would make the code fail is if there is nothing in the kcminputrc file. Can you check the contents of your-name/.config/kcminputrc and see if there is a 'cursorTheme' entry?
Comment 5 patrick.rifici 2019-11-04 22:44:12 UTC
That's interesting, that file doesn't seem to exist in my .config directory at all. Can you tell me what generates that file?
Comment 6 Filip Fila 2019-11-04 22:51:33 UTC
It should be handled by the cursor theme KCM. I'm also seeing the config file is referenced in a lot of other places so it's weird it doesn't exist in your system.

Does changing cursor themes in Plasma work?
Comment 7 patrick.rifici 2019-11-04 22:58:05 UTC
Changing the cursor theme does work fine. And changing my cursor theme has immediately generated the file with the correct contents. Normally on a clean install of Plasma on Arch I don't need to set my cursor theme as Breeze appears to be the default so I suspect that file was never generated in the first place. Let me do a quick test to see if the theme is set on SDDM correctly, I will report back in a moment.
Comment 8 patrick.rifici 2019-11-04 23:05:02 UTC
Thank you very much everyone, that was indeed the fault! Because I hadn't picked my initial cursor theme on this install the kcminputrc file didn't exist, which meant the SDDM KCM had nothing to read from. Picking a cursor theme in 'Cursors' and clicking 'Apply' generates the file which is then read by the SDDM KCM as expected.