Skip to content

Config file watching stops if config directory is removed and recreated #1205

Closed

Description

@injust

OS

macOS Sequoia 15.7.5

LinearMouse

0.11.2

Describe the bug

If you temporarily remove ~/.config/linearmouse/, LinearMouse reacts to the removal by reverting to the default settings. But when you put the config file back, LinearMouse doesn't pick up the settings file until you restart.

I'm assuming this has to do with how LinearMouse is watching the ~/.config/linearmouse/ directory.

I ran into this because I have the LinearMouse config on one branch of my dotfiles. After switching to another branch and back, LinearMouse is stuck using the default settings until I restart it.

To reproduce

  1. Configure LinearMouse with some non-default settings (like inverted scrolling)
  2. Move ~/.config/linearmouse/ somewhere else temporarily
  3. Move the directory back to its original location

Expected behavior

After 2), LinearMouse notices the missing config file and reverts to the default settings. After 3), LinearMouse still uses the default settings. Ideally, it would pick up the config file without a restart.

Anything else?

No response

Activity

  1. added
    bug
    on May 22, 2026
  2. lujjjh commented on May 25, 2026

    @lujjjh
    Collaborator

    Thanks for reporting this!

  3. added a commit that references this issue on Jul 9, 2026
    9f4d73b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions