Skip to content

Better failure mode for invalid root-menu.plist #263

@rjhorniii

Description

@rjhorniii

The present failure mode for an invalid root-menu.plist is to exit with a parser error message to stderr. This is difficult for the new user. There is code for a default root-menu if no root-menu file can be found. I suggest a default alternative root-menu to use when the provided root-menu is invalid. Something short and simple like a title "Invalid root menu file" with one entry that exits wlmaker cleanly would be enough. Putting in the text from the parser error would be helpful but might not fit the space available. Maybe an option to display the log file? or to display the parser error? or bring up a terminal window?

One of these is better than just immediately exiting, especially when people start using wlmaker as a login compositor rather than running in a window.

This might apply to other plists. I didn't check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions