mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-28 07:44:06 +01:00
Disk (Haiku): fixes /boot being removed by hideFolders
This commit is contained in:
@@ -15,6 +15,10 @@ const char* ffDetectDisksImpl(FFDiskOptions* options, FFlist* disks) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!ffStrSet(fs.device_name)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
node_ref node(fs.dev, fs.root);
|
||||
BDirectory dir(&node);
|
||||
BPath path(&dir);
|
||||
|
||||
@@ -435,6 +435,8 @@ void ffInitDiskOptions(FFDiskOptions* options) {
|
||||
ffStrbufInit(&options->folders);
|
||||
#if _WIN32 || __APPLE__ || __ANDROID__
|
||||
ffStrbufInit(&options->hideFolders);
|
||||
#elif __HAIKU__
|
||||
ffStrbufInitS(&options->hideFolders, "/esp"); // /boot on haiku is the system volume
|
||||
#else
|
||||
ffStrbufInitS(&options->hideFolders, "/efi:/boot:/boot/*");
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user