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
|
||||
}
|
||||
|
||||
// Skip snap mountpoints
|
||||
if strings.HasPrefix(fields[1], "/snap/") {
|
||||
continue
|
||||
}
|
||||
|
||||
// Skip partition if explicitly hidden
|
||||
if slices.Contains(hiddenPartitions, fields[0]) {
|
||||
continue
|
||||
|
||||
@@ -205,6 +205,17 @@ func GetDEWM() DEWM {
|
||||
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{
|
||||
|
||||
Reference in New Issue
Block a user