linuxmint / linuxmint/cinnamon
middle click emulation setting with left&right click doesn't get applied to trackballs at boot
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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