Skip to content

Commit 8b7a4da

Browse files
committed
TerminalFont: use system mono font if no config file is find
1 parent 82af7a5 commit 8b7a4da

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Features:
1010

1111
Bugfixes:
1212
* Fix network prefix length detection when the value is greater than 24 (#773, LocalIP, Linux)
13+
* For xfce4-terminal, use system mono font if no config file is found (TerminalFont, Linux)
1314

1415
# 2.8.10
1516

src/detection/terminalfont/terminalfont_linux.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,7 @@ static void detectXFCETerminal(FFTerminalFontResult* terminalFont)
145145
});
146146
}
147147

148-
if (!configFound)
149-
{
150-
ffStrbufSetStatic(&terminalFont->error, "Couldn't find xfce4/xfconf/xfce-perchannel-xml/xfce4-terminal.xml or xfce4/terminal/terminalrc");
151-
return;
152-
}
153-
154-
if(useSysFont.length == 0 || ffStrbufIgnCaseCompS(&useSysFont, "false") == 0)
148+
if(configFound && (useSysFont.length == 0 || ffStrbufIgnCaseCompS(&useSysFont, "false") == 0))
155149
{
156150
if(fontName.length == 0)
157151
ffStrbufAppendF(&terminalFont->error, "Couldn't find FontName in %s", path);

0 commit comments

Comments
 (0)