Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#62162 - [archlinux-xdg-menu] Close parentheses in names are not escaped for blackbox-family menus

Attached to Project: Community Packages
Opened by Avery (freonmonkey) - Thursday, 28 March 2019, 04:45 GMT
Last edited by Balló György (City-busz) - Thursday, 28 March 2019, 19:31 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No



Menus for the blackbox family (including openbox and fluxbox) wraps the name of the application in parentheses. If the desktop file's name contains a close parenthesis, fluxbox believes the name has ended and doesn't show the final parenthesis. If the parenthesis is escaped with a backslash, it works.

Additional info:
* package version(s):

Steps to reproduce:
Install an app with a parenthesis in the name, like steam with its "(Native)" and "(Runtime)" apps or rxvt-unicode with "(client)" and "(tabbed)", then generate menus for fluxbox or openbox. View the resulting menu and observe the final parenthesis isn't shown.

Patch for xdg_menu:
> $name =~ s/\)/\\\)/g;

Explanation of solution:
When building the name of an app into a blackbox-style menu, escape close parentheses using backslashes.
This task depends upon