Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to locate configuration file to ~/Library/Application Support #644

Closed
nix6839 opened this issue Nov 15, 2023 · 0 comments · Fixed by #651
Closed

I want to locate configuration file to ~/Library/Application Support #644

nix6839 opened this issue Nov 15, 2023 · 0 comments · Fixed by #651
Assignees
Labels
enhancement New feature or request

Comments

@nix6839
Copy link

nix6839 commented Nov 15, 2023

OS

macOS 14.1.1

LinearMouse

v0.9.5

Is your feature request related to a problem?

No response

Describe the solution you'd like

I want to locate configuration file to ~/Library/Application Support/linearmouse instead of ~/.config/linearmouse.

Why?

In macOS, most applications locate configuration files to ~/Library/Application Support/, but LinearMouse not.
I want to be consistent with the location of my configuration files.

How?

If ~/Library/Application Support/lienearmouse/linearmouse.json exists, please use it, otherwise use current location. To avoid breaking the experience for existing users.

Describe alternatives you've considered

No response

Additional context

No response

@nix6839 nix6839 added the enhancement New feature or request label Nov 15, 2023
@lujjjh lujjjh self-assigned this Nov 15, 2023
lujjjh added a commit that referenced this issue Nov 22, 2023
The configuration file will be located in the order below:

1. ~/Library/Application Support/linearmouse/linearmouse.json
2. ~/.config/linearmouse/linearmouse.json

This commit enables the use of additional configuration locations,
including the standard ~/Library/Application Support path, to
provide users with more flexibility.

The configuration file can now be located as follows:

1. ~/Library/Application Support/linearmouse/linearmouse.json
2. ~/.config/linearmouse/linearmouse.json (The original location)

To maintain backward compatibility and prevent any disruptions,
new configurations will still be created in location 2.

Closes #644.
lujjjh added a commit that referenced this issue Nov 22, 2023
The configuration file will be located in the order below:

1. ~/Library/Application Support/linearmouse/linearmouse.json
2. ~/.config/linearmouse/linearmouse.json

This commit enables the use of additional configuration locations,
including the standard ~/Library/Application Support path, to provide
users with more flexibility.

The configuration file can now be located as follows:

1. ~/Library/Application Support/linearmouse/linearmouse.json
2. ~/.config/linearmouse/linearmouse.json (The original location)

To maintain backward compatibility and prevent any disruptions, new
configurations will still be created in location 2.

Closes #644.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants