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

cosmic: Provide CosmicConfigEntry impl, use _ in property names #254

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Dec 21, 2023

It seems to derive CosmicConfigEntry, we need to use _ in property names, because _ isn't mapped to - and there doesn't seem to be a mechanism like #[serde(rename)].

It seems good to be consistent anyway. So this seems good to change, unless we really like using - for names on disk, then cosmic-panel needs to be changed.

CosmicConfigEntry also requires PartialEq, which is easy enough to add.

This will break existing input settings, which will have to be re-applied with the new locations. Cosmic-settings also need to be updated for this.

It seems to derive `CosmicConfigEntry`, we need to use `_` in property
names, because `_` isn't mapped to `-` and there doesn't seem to be a
mechanism like `#[serde(rename)]`.

It seems good to be consistent anyway. So this seems good to change,
unless we really like using `-` for names on disk, then cosmic-panel
needs to be changed.

`CosmicConfigEntry` also requires `PartialEq`, which is easy enough to
add.

This will break existing input settings, which will have to be
re-applied with the new locations. Cosmic-settings also need to be
updated for this.
@Drakulix Drakulix merged commit aa9ec52 into master_jammy Dec 21, 2023
4 checks passed
@ids1024 ids1024 deleted the cosmic-config_jammy branch January 5, 2024 02:47
ids1024 added a commit that referenced this pull request Jan 23, 2024
It seems these two lines were omitted in
#254, so it was reading the
"xkb_config" settings at startup, then watching "xkb-config".

The other settings seem to be consistent.

This should fix #285 (though
it will also be necessary to edit "xkb_config", rather than the old
file.
ids1024 added a commit that referenced this pull request Jan 23, 2024
It seems these two lines were omitted in
#254, so it was reading the
"xkb_config" settings at startup, then watching "xkb-config".

The other settings seem to be consistent.

This should fix #285 (though
it will also be necessary to edit "xkb_config", rather than the old
file.
Drakulix pushed a commit that referenced this pull request Jan 24, 2024
It seems these two lines were omitted in
#254, so it was reading the
"xkb_config" settings at startup, then watching "xkb-config".

The other settings seem to be consistent.

This should fix #285 (though
it will also be necessary to edit "xkb_config", rather than the old
file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants