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

Config export ordering is non-deterministic #1468

Open
1 task done
injust opened this issue Sep 17, 2024 · 1 comment
Open
1 task done

Config export ordering is non-deterministic #1468

injust opened this issue Sep 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@injust
Copy link

injust commented Sep 17, 2024

  • This is a new bug that hasn't been documented in a closed issue or in the Readme.

macOS version: Sequoia 15.0
Rectangle version: v0.83 (89)

When exporting Rectangle's config, the order of the values in defaults.landscapeSnapAreas.string seems to be non-deterministic.

This is a bit confusing if you diff the file. Is it possible to make the order of the output consistent?

@injust injust added the bug Something isn't working label Sep 17, 2024
@injust
Copy link
Author

injust commented Sep 17, 2024

An example diff:

diff --git i/RectangleConfig.json w/RectangleConfig.json
index d84dc1a..9d6da8f 100644
--- i/RectangleConfig.json
+++ w/RectangleConfig.json
@@ -104,7 +104,7 @@
       "int" : 0
     },
     "landscapeSnapAreas" : {
-      "string" : "[6,{\"action\":13},7,{\"compound\":-4},4,{\"compound\":-2},1,{\"action\":15},8,{\"action\":14},3,{\"action\":16},5,{\"compound\":-3}]"
+      "string" : "[3,{\"action\":16},5,{\"compound\":-3},4,{\"compound\":-2},6,{\"action\":13},8,{\"action\":14},1,{\"action\":15},7,{\"compound\":-4}]"
     },
     "launchOnLogin" : {
       "bool" : true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant