Spelling: fix spelling of files in src/detection/

This commit is contained in:
Marius Messerschmidt
2023-11-18 15:33:23 +01:00
parent 29d93d5c67
commit 40e977be31
14 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
static bool isPhysicalDevice(const struct mntent* device)
{
#ifndef __ANDROID__ //On Android, `/dev` is not accessable, so that the following checks always fail
#ifndef __ANDROID__ //On Android, `/dev` is not accessible, so that the following checks always fail
//Always show the root path
if(ffStrEquals(device->mnt_dir, "/"))
+1 -1
View File
@@ -24,7 +24,7 @@ const char* ffDiskIOGetIoCounters(FFlist* result, FFDiskIOOptions* options)
if (part && isdigit(part[strlen("-part")]))
continue;
if (ffStrStartsWith(entry->d_name, "nvme-eui.")) // NVMe drive indentifier
if (ffStrStartsWith(entry->d_name, "nvme-eui.")) // NVMe drive identifier
continue;
// Other exceptions?
@@ -89,7 +89,7 @@ void ffConnectDisplayServerImpl(FFDisplayServerResult* ds)
if (!instance.config.general.dsForceDrm)
{
//We try wayland as our prefered display server, as it supports the most features.
//We try wayland as our preferred display server, as it supports the most features.
//This method can't detect the name of our WM / DE
ffdsConnectWayland(ds);
+1 -1
View File
@@ -333,7 +333,7 @@ void ffdsDetectWMDE(FFDisplayServerResult* result)
applyPrettyNameIfDE(result, env);
//If WM was found by connection to the sever, and DE in the environment, we can return
//This way we never call getFromProcDir(), which has slow initalization time
//This way we never call getFromProcDir(), which has slow initialization time
if(result->dePrettyName.length > 0 && result->wmPrettyName.length > 0)
return;
+1 -1
View File
@@ -388,7 +388,7 @@ void ffdsConnectXrandr(FFDisplayServerResult* result)
void ffdsConnectXrandr(FFDisplayServerResult* result)
{
//Do nothing here. There are more x11 implementaions to come.
//Do nothing here. There are more x11 implementations to come.
FF_UNUSED(result);
}
+2 -2
View File
@@ -20,9 +20,9 @@ const char* ffDetectGamepad(FFlist* devices /* List of FFGamepadDevice */)
report_desc_t repDesc = hid_get_report_desc(fd);
if (!repDesc) continue;
int repId = hid_get_report_id(fd);
int reportId = hid_get_report_id(fd);
struct hid_data* hData = hid_start_parse(repDesc, 0, repId);
struct hid_data* hData = hid_start_parse(repDesc, 0, reportId);
if (hData)
{
struct hid_item hItem;
+1 -1
View File
@@ -58,7 +58,7 @@ void ffDetectOSImpl(FFOSResult* os)
ffStrbufTrimRight(&os->variant, ' ');
//WMI returns the "Microsoft" prefix while BrandingFormatString doesn't. Make them consistant.
//WMI returns the "Microsoft" prefix while BrandingFormatString doesn't. Make them consistent.
if(ffStrbufStartsWithS(&os->variant, "Microsoft "))
ffStrbufSubstrAfter(&os->variant, strlen("Microsoft ") - 1);
+1 -1
View File
@@ -7,7 +7,7 @@ extern "C"
extern "C"
const char* ffDetectSmbiosTemp(double* current, double* critical)
{
// Requires Administrator priviledges
// Requires Administrator privileges
// https://wutils.com/wmi/root/wmi/msacpi_thermalzonetemperature/#properties
FFWmiQuery query(L"SELECT CurrentTemperature, CriticalTripPoint FROM MSAcpi_ThermalZoneTemperature WHERE Active = TRUE", nullptr, FFWmiNamespace::WMI);
if(!query)
@@ -45,7 +45,7 @@ static void detectKgx(FFTerminalFontResult* terminalFont)
if(ffStrSet(fontName))
ffFontInitPango(&terminalFont->font, fontName);
else
ffStrbufAppendS(&terminalFont->error, "Could't get system monospace font name from GSettings / DConf");
ffStrbufAppendS(&terminalFont->error, "Couldn't get system monospace font name from GSettings / DConf");
}
}
@@ -77,7 +77,7 @@ static void detectFromGSettings(const char* profilePath, const char* profileList
if(ffStrSet(fontName))
ffFontInitPango(&terminalFont->font, fontName);
else
ffStrbufAppendS(&terminalFont->error, "Could't get system monospace font name from GSettings / DConf");
ffStrbufAppendS(&terminalFont->error, "Couldn't get system monospace font name from GSettings / DConf");
}
}
@@ -368,7 +368,7 @@ const FFTerminalShellResult* ffDetectTerminalShell()
if(result.terminalExeName[0] == '.' && ffStrEndsWith(result.terminalExeName, "-wrapped"))
{
// For NixOS. Ref: #510 and https://github.com/NixOS/nixpkgs/pull/249428
// We use terminalProcessName when detecting version and font, overriding it for simplication
// We use terminalProcessName when detecting version and font, overriding it for simplification
ffStrbufSetNS(
&result.terminalProcessName,
(uint32_t) (strlen(result.terminalExeName) - strlen(".-wrapped")),
@@ -235,7 +235,7 @@ static bool detectDefaultTerminal(FFTerminalShellResult* result)
{
if(wcscmp(uuid, L"{00000000-0000-0000-0000-000000000000}") == 0)
{
// Let Windows deside
// Let Windows decide
return false;
}
if(wcscmp(uuid, L"{B23D10C0-E52E-411E-9D5B-C09FDF709C7D}") == 0)
+1 -1
View File
@@ -55,7 +55,7 @@ static const char* detectVulkan(FFVulkanResult* result)
FF_LIBRARY_LOAD_SYMBOL_MESSAGE2(vulkan, vkEnumeratePhysicalDevices, vkEnumeratePhysicalDevices@12)
//Some drivers (nvdc) print messages to stdout
//and thats the best way i found to disable that
//and that is the best way I found to disable that
FF_SUPPRESS_IO();
FFVersion instanceVersion = FF_VERSION_INIT;
+1 -1
View File
@@ -5,7 +5,7 @@
struct Apple80211; // https://code.google.com/archive/p/iphone-wireless/wikis/Apple80211.wiki
// 0 is sucessful; < 0 is failure
// 0 is successful; < 0 is failure
int Apple80211Open(struct Apple80211 **handle) __attribute__((weak_import));
int Apple80211BindToInterface(struct Apple80211 *handle, CFStringRef interface) __attribute__((weak_import));
int Apple80211GetInfoCopy(struct Apple80211 *handle, CFDictionaryRef *info) __attribute__((weak_import));
+1 -1
View File
@@ -194,7 +194,7 @@ bool ffDetectWmTheme(FFstrbuf* themeOrError)
if(wm->wmPrettyName.length == 0)
{
ffStrbufAppendS(themeOrError, "WM Theme needs sucessfull WM detection");
ffStrbufAppendS(themeOrError, "WM Theme needs successful WM detection");
return false;
}