Bug in Lubuntu 23.04: customized size of the cursor is not remembered

Steps to reproduce
1 main menu, Preferences, LXQt Settings, Appearance
2 select Cursor
3 select Breeze Light
4 change Size from 34 to 40
5 click Apply
6 click on Close
6 restart the computer

Result
In Size there is still 34.

Expectation
In Size there should be 40.

Remark
The bug already appeared in Lubuntu 22.10. I reported the bug already last month on
size of the cursor is not be remembered after rebooting the computer · Issue #2391 · lxqt/lxqt · GitHub.
The maintainer wrote yesterday that the bug does not happen upstream, so the bug is in Lubuntu:
size of the cursor is not be remembered after rebooting the computer · Issue #2391 · lxqt/lxqt · GitHub

1 Like

The bug was also reported late 2021 (as guiverc may recall)
Bug #1950691 “Mouse's cursor size is not applied after reboot” : Bugs : lxqt-config package : Ubuntu

But the oldest report as far back as 2016,
mouse cursor size is not adjustable · Issue #953 · lxqt/lxqt · GitHub
provides the best clues.

Even though LXQt updates
~/.icons/default/index.theme
and
~/.Xdefaults
(as well as ~/.config/lxqt/session.conf)

They are all being ignored in Lubuntu.

And nothing has been done because
a) It’s quite easy to mix it up with bugs like this
size of the cursor is not be remembered after resume · Issue #2397 · lxqt/lxqt · GitHub
which only changes the cursor size in fixed jumps.
and
b) The LXQt guys can’t reproduce it.

On another box I have Devuan+LXQt and SLiM instead of SDDM,
This box doesn’t have the problem, cursor changes are fine.
So perhaps (?) the LXQt guys are also using a non-SDDM based setup.

(The other difference I noticed was that Devuan is also systemd-free, but I doubt systemd has anything to do with X startup).

So my personal theory is,
SDDM uses xrdb to load up X resources using ~/.Xresources.
But SLiM doesn’t do this (it makes no xrdb calls). And because of this, (somehow) SLiM triggers :LXQt to load the size from ~/.Xdefaults
(note: not ~/.icons/default/index.theme),
…which has the correct Xcursor.size.

In a fresh copy of Lubuntu (22.04-23.04), ~/.Xresources does not exist, so SDDM ignores it.
It also ignores ~/.Xdefaults (because it’s the old way of doing things).
But it still runs xrdb for other merges. And here is (another)
mystery - the cursor size ends up with some obscure small value e.g 21.

@ralf3u: still awake?
in absent of a solution, I present 3 quick workarounds;

  1. Install and use a fixed size cursor,
    e.g chameleon-cursor-theme
    Chameleon-White-Large

or quicker;

  1. Create an environment variable to fix the size;
    Preferences > LXQT Settings > Session Settings > Environment >
    Add > double-click fields
    XCURSOR_SIZE 48

or even better;

  1. Copy ~/.Xdefaults to ~/.Xresources after the change.
    This will force SDDM to update the RESOURCE_MANAGER X property with the size found in ~/.Xresources.
2 Likes

So perhaps (?) the LXQt guys are also using a non-SDDM based setup.

No, I just asked. The maintainer uses SDDM (size of the cursor is not be remembered after rebooting the computer · Issue #2391 · lxqt/lxqt · GitHub).

@humpty
Thank you so much for the different solutions and thank you so much for trying to fix that bug with your comment at github.

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.