mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-18 18:27:55 +08:00
LinuxSystemFontLister: also check the HOME env variable and explore all sub-directories
This commit is contained in:
@@ -19,6 +19,10 @@
|
||||
try
|
||||
{
|
||||
var folder = Environment.GetEnvironmentVariable("$HOME");
|
||||
if (string.IsNullOrWhiteSpace(folder))
|
||||
{
|
||||
folder = Environment.GetEnvironmentVariable("HOME");
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(folder))
|
||||
{
|
||||
@@ -48,7 +52,7 @@
|
||||
|
||||
try
|
||||
{
|
||||
files = Directory.GetFiles(directory);
|
||||
files = Directory.GetFiles(directory, "*.*", SearchOption.AllDirectories);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
Reference in New Issue
Block a user