Tomas-M / xlunch

Graphical app launcher for X with minimal dependencies
http://xlunch.org
GNU General Public License v3.0
219 stars 37 forks source link

Suggestion : Switching to wrong font will fail xlunch to launch #132

Open arcolinuxz opened 3 years ago

arcolinuxz commented 3 years ago

It took me a while to figure out that it was the font that caused xlunch not to start. It took me a while to figure out what the correct font name should be. Some examples?

Could we not use a fall-back font so that the application still launches and gives a message in the terminal saying "Font was not applied...etc)?

Other idea - use debug feature so that we see in the menu in red letters at the bottom the variables that are not applied.

PMunch commented 3 years ago

The --help message and documentation already contains an example of how the font is to be named, and the documentation goes into a bit more detail. PRs welcome if you have a better way to word that section of the documentation to make it more obvious. Xlunch will already output a message in the terminal saying "Font could not be loaded! Please specify one with -f parameter", I think if the application launched it would just be more confusing as it would appear to just ignore the -f flag. It also returns the error code 66 defined to be FONTERROR (although these aren't really documented anywhere).

A debug mode would be nice, but it's quite a bit of work to implement.