fucking NIXXXXXXX
This commit is contained in:
parent
2e76e1f6eb
commit
8f61019953
11
main.go
11
main.go
@ -205,6 +205,17 @@ func getAbsLogoPath(relativePath string) string {
|
|||||||
return relativePath
|
return relativePath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exePath, err := os.Executable()
|
||||||
|
if err == nil {
|
||||||
|
exeDir := filepath.Dir(exePath)
|
||||||
|
|
||||||
|
nixPath := filepath.Join(exeDir, "..", "share", "gogofetch", relativePath)
|
||||||
|
|
||||||
|
if _, err := os.Stat(nixPath); err == nil {
|
||||||
|
return nixPath
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
systemPath := filepath.Join("/usr/share/gogofetch", relativePath)
|
systemPath := filepath.Join("/usr/share/gogofetch", relativePath)
|
||||||
if _, err := os.Stat(systemPath); err == nil {
|
if _, err := os.Stat(systemPath); err == nil {
|
||||||
return systemPath
|
return systemPath
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user