rszyma / kanata-tray

Tray Icon for Kanata
GNU General Public License v3.0
65 stars 1 forks source link

Underscores stripped from paths in tray menu? #8

Open reidprichard opened 9 months ago

reidprichard commented 9 months ago

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 commented 9 months ago

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:

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.