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

Underscores stripped from paths in tray menu? #8

Open
reidprichard opened this issue Feb 22, 2024 · 1 comment
Open

Underscores stripped from paths in tray menu? #8

reidprichard opened this issue Feb 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@reidprichard
Copy link
Contributor

Like my previous issue, this doesn't affect functionality, but it seems that any underscores are stripped from paths in the system tray menu. For example:
image
The first entry should read "~/.local/bin/kanata_cmd_allowed". My config file path similarly has underscores removed.

This is on OpenSUSE Tumbleweed (KDE Plasma) if it matters.

@rszyma rszyma added the bug Something isn't working label Feb 22, 2024
@rszyma
Copy link
Owner

rszyma commented Feb 22, 2024

It appears to be some kind of formatting, but I'm not sure where it does come from yet.

Doing some quick testing, for ~/.config/kanata/my_kanata__test___config____kbd, the results are the following:

  • single _ sequences are just consumed and do nothing
  • __ or ___ sequences are consumed but create underlined next character
  • ____ sequence is consumed and create actual underscore character.

So a quick solution would be to replace all underscore occurences in paths in menu labels with quadruple underscore. I'd invesitigate first where this formatting comes from, because if there are other special characters it would be good to also fix them at once.

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

2 participants