Skip to content

shortcuts: do not escape commas in service shortcuts#555

Open
bmrips wants to merge 1 commit into
nix-community:trunkfrom
bmrips:fix-commas-in-shortcuts
Open

shortcuts: do not escape commas in service shortcuts#555
bmrips wants to merge 1 commit into
nix-community:trunkfrom
bmrips:fix-commas-in-shortcuts

Conversation

@bmrips

@bmrips bmrips commented Nov 20, 2025

Copy link
Copy Markdown
Contributor

Description

Currently, commas in the keys of shortcuts are escaped:

[kwin]
Show Desktop=Alt+\,

[services][foo.desktop]
_launch=Meta+\,

However, Plasma does not pick up the foo.desktop launch shortcut since it is malformed. By setting the shortcut through the UI, I found out that commas do not have to be escaped for shortcuts that are grouped under the [services] section, i.e. the corrected example would be

[kwin]
Show Desktop=Alt+\,

[services][foo.desktop]
_launch=Meta+,

This PR fixes this bug.

Tests

I successfully tested this change on my own system.

@bmrips bmrips force-pushed the fix-commas-in-shortcuts branch from 44bdbdf to 72eb949 Compare November 21, 2025 10:03
@bmrips bmrips force-pushed the fix-commas-in-shortcuts branch from 72eb949 to 72a0a02 Compare April 22, 2026 20:49
@bmrips

bmrips commented Apr 23, 2026

Copy link
Copy Markdown
Contributor Author

The pipeline now fails despite not failing before, so it is presumably already broken on trunk.

@bmrips bmrips force-pushed the fix-commas-in-shortcuts branch 4 times, most recently from 27d8478 to 72539a5 Compare July 8, 2026 08:57
@bmrips

bmrips commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

This PR is a descendant of #634.

@bmrips bmrips force-pushed the fix-commas-in-shortcuts branch 2 times, most recently from 357f9f6 to 4118dd5 Compare July 8, 2026 20:07
@bmrips bmrips force-pushed the fix-commas-in-shortcuts branch from 4118dd5 to 1e9b6a8 Compare July 9, 2026 06:23
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.

1 participant