TomenetGame / tomenet

TomeNET is an online multiplayer roguelike role-playing game
https://www.tomenet.eu/
Other
69 stars 11 forks source link

Fix for catalogue:/etc/X11/fontpath.d font path #9

Closed Tokariew closed 4 years ago

Tokariew commented 4 years ago

Fedora have location for Font Path in xset q used for changing fonts in X11 client

Font Path:
  catalogue:/etc/X11/fontpath.d,built-ins

This workound probably will not work on non GNU grep… because of -P option and otherwise I don't know how to grep only path using grep. Could be achieved using grep with awk… But shouldn't brake anything as far I know, because of using OR in shell command.

mhirki commented 4 years ago

Your regex doesn't contain anything too special so you could just use the -E option instead of the -P option. The -E option should be standard.

Anyway, I rewrote the code using XListFonts() which should be better than a weird grep hack. See commit https://github.com/TomenetGame/tomenet/commit/d4d7aa92f4030998cccaf01f0b92645561c0249a. Can you test that it works for you?

Tokariew commented 4 years ago

Yes it work nicely with this commit. And thanks for -E option, I must skipped it, when I glanced at grep…