linuxmint / linuxmint/cinnamon

middle click emulation setting with left&right click doesn't get applied to trackballs at boot

Open
#12,624 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

BUG
Dominant language
JavaScript
Stars
5.6k
Forks
915
Avg merge
5d 22h
Merged PRs (30d)
3

Description

Distribution

linux mint 22

Package version

6.2.9

Graphics hardware in use

No response

Frequency

Always

Bug description

I have a Logitech M570 trackball. When I enable 'enable middle click emulation by clicking both left and right buttons' option it works initially. But setting isn't applied when I reboot my system. I can make it work by toggling the setting but it doesn't work at next reboot.

Steps to reproduce

Attach a trackball. Enable 'middle click emulation' feature from the mouse settings panel. Reboot the system.

Expected behavior

Middle click emulation setting should be respected after reboot.

Additional information

I did some code reading, and noticed that there is a separate 'directory' in gsettings for trackballs. When I set middle click emulation for the trackball with dconf, everyhing works as expected.

dconf write /org/cinnamon/desktop/peripherals/trackball/middle-click-emulation true

Here is my guess: at startup, settings for 'peripherals/mouse/*' are not applied to 'trackball' devices. But when 'middle-click-emulation' option is toggled in the interface, relevant hook in the backend doesn't care for the device type and applies the setting to the trackball devices as well. And it works. I think a potential quick solution is to store the relevant mouse options also for 'trackball' gsettings directory until there is a separate interface for modifying 'Trackball' settings.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the mouse settings panel stores and applies middle-click emulation during startup, comparing the mouse and trackball GSettings paths shown in the report. Confirm the fix by enabling the option for a trackball, rebooting Linux Mint, and verifying that middle-click emulation remains active without toggling the setting.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, linux
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.