mirror of
https://github.com/EnumeratedDev/stormfetch.git
synced 2026-09-16 07:56:12 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d3837db2df
|
||
|
|
1d42bf9126
|
@@ -62,6 +62,11 @@ func GetMountedPartitions(hiddenPartitions, hiddenFilesystems []string) []partit
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Skip snap mountpoints
|
||||||
|
if strings.HasPrefix(fields[1], "/snap/") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
// Skip partition if explicitly hidden
|
// Skip partition if explicitly hidden
|
||||||
if slices.Contains(hiddenPartitions, fields[0]) {
|
if slices.Contains(hiddenPartitions, fields[0]) {
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -205,6 +205,17 @@ func GetDEWM() DEWM {
|
|||||||
dewm.Name += " " + version
|
dewm.Name += " " + version
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return dewm
|
||||||
|
} else if processExists("oxwm") {
|
||||||
|
dewm := DEWM{
|
||||||
|
Name: "OXWM",
|
||||||
|
Type: "WM",
|
||||||
|
}
|
||||||
|
|
||||||
|
if version := runCommand("oxwm --version 2>&1 | tr -d 'v'", "/bin/sh"); version != "" {
|
||||||
|
dewm.Name += " " + version
|
||||||
|
}
|
||||||
|
|
||||||
return dewm
|
return dewm
|
||||||
}
|
}
|
||||||
return DEWM{
|
return DEWM{
|
||||||
|
|||||||
Reference in New Issue
Block a user