Skip to content

Commit

Permalink
OS (Linux): detect Linux Lite
Browse files Browse the repository at this point in the history
Fix #1434
  • Loading branch information
CarterLi committed Dec 11, 2024
1 parent f01944d commit 86783c0
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 26 deletions.
9 changes: 9 additions & 0 deletions src/detection/os/os_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ FF_MAYBE_UNUSED static void getUbuntuFlavour(FFOSResult* result)
if(!ffStrSet(xdgConfigDirs))
return;

if(ffStrbufStartsWithS(&result->prettyName, "Linux Lite "))
{
ffStrbufSetS(&result->name, "Linux Lite");
ffStrbufSetS(&result->id, "linuxlite");
ffStrbufSetS(&result->idLike, "ubuntu");
ffStrbufSetS(&result->versionID, result->prettyName.chars + strlen("Linux Lite "));
return;
}

if(ffStrContains(xdgConfigDirs, "kde") || ffStrContains(xdgConfigDirs, "plasma") || ffStrContains(xdgConfigDirs, "kubuntu"))
{
ffStrbufSetS(&result->name, "Kubuntu");
Expand Down
34 changes: 17 additions & 17 deletions src/logo/ascii/linuxlite.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
,xXc
.l0MMMMMO
.kNMMMMMWMMMN,
KMMMMMMKMMMMMMo
'MMMMMMNKMMMMMM:
kMMMMMMOMMMMMMO
.MMMMMMX0MMMMMW.
oMMMMMMxWMMMMM:
WMMMMMNkMMMMMO
:MMMMMMOXMMMMW
.0MMMMMxMMMMM;
:;cKMMWxMMMMO
'MMWMMXOMMMMl
kMMMMKOMMMMMX:
.WMMMMKOWMMM0c
lMMMMMWO0MNd:'
oollXMKXoxl;.
':. .: .'
..
.kNMMMMM$2W$1MMMN,
KMMMMMM$2K$1MMMMMMo
'MMMMMMN$2K$1MMMMMM:
kMMMMMM$2O$1MMMMMMO
.MMMMMM$20$1XMMMMMW.
oMMMMM$2x$1MMMMMMM:
WMMMMM$2x$1MMMMMMO
:MMMMMM$2O$1XMMMMW
.0MMMMM$2x$1MMMMM;
:;cKMMW$2x$1MMMMO
'MMWMMX$2O$1MMMMl
kMMMMK$2O$1MMMMMX:
.WMMMMK$2O$1WMMM0c
lMMMMMW$2O$1WMNd:'
oollXMK$2o$1Xxl;.
':. .:$2 .$1'
$2..
.
10 changes: 5 additions & 5 deletions src/logo/ascii/linuxlite_small.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
${c1} /\\
/ \\
/ ${c2}/ ${c1}/
> ${c2}/ ${c1}/
/\\
/ \\
/ ${c2}/ ${c1}/
> ${c2}/ ${c1}/
\\ ${c2}\\ ${c1}\\
\\_${c2}\\${c1}_\\
${c2} \\
${c2} \\
8 changes: 4 additions & 4 deletions src/logo/builtin.c
Original file line number Diff line number Diff line change
Expand Up @@ -2477,10 +2477,10 @@ static const FFlogo L[] = {
.names = {"LinuxLite", "Linux Lite", "linux_lite"},
.lines = FASTFETCH_DATATEXT_LOGO_LINUXLITE,
.colors = {
FF_COLOR_FG_YELLOW,
FF_COLOR_FG_GREEN,
FF_COLOR_FG_WHITE,
},
.colorKeys = FF_COLOR_FG_YELLOW,
.colorKeys = FF_COLOR_FG_GREEN,
.colorTitle = FF_COLOR_FG_WHITE,
},
// LinuxLightSmall
Expand All @@ -2489,10 +2489,10 @@ static const FFlogo L[] = {
.type = FF_LOGO_LINE_TYPE_SMALL_BIT,
.lines = FASTFETCH_DATATEXT_LOGO_LINUXLITE_SMALL,
.colors = {
FF_COLOR_FG_YELLOW,
FF_COLOR_FG_BLUE,
FF_COLOR_FG_WHITE,
},
.colorKeys = FF_COLOR_FG_YELLOW,
.colorKeys = FF_COLOR_FG_BLUE,
.colorTitle = FF_COLOR_FG_WHITE,
},
// LinuxMint
Expand Down

0 comments on commit 86783c0

Please sign in to comment.