mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Fix font detection command on linux in setup.py
This commit is contained in:
parent
c0b549fee8
commit
ffe8cef1a8
1 changed files with 1 additions and 1 deletions
2
setup.py
2
setup.py
|
|
@ -949,7 +949,7 @@ def add_builtin_fonts(args: Options) -> None:
|
|||
break
|
||||
else:
|
||||
lines = subprocess.check_output([
|
||||
'fc-match', '--format', '%{file}\n%{postscriptname}', f'term:postscriptname={psname}', 'file', 'postscriptname']).decode().splitlines()
|
||||
'fc-list', '--format', '%{file}\n%{postscriptname}', f':postscriptname={psname}']).decode().splitlines()
|
||||
if len(lines) != 2:
|
||||
raise SystemExit(f'fc-match returned unexpected output: {lines}')
|
||||
if lines[1] != psname:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue