mirror of
https://github.com/Xpl0itU/WiiUDownloader.git
synced 2025-06-07 02:01:19 -04:00
Fix check
This commit is contained in:
parent
6443f8af34
commit
47935f3f6a
1 changed files with 3 additions and 1 deletions
|
@ -20,7 +20,9 @@ func main() {
|
||||||
|
|
||||||
bundlePath := filepath.Join(filepath.Dir(filepath.Dir(execPath)))
|
bundlePath := filepath.Join(filepath.Dir(filepath.Dir(execPath)))
|
||||||
filePath := filepath.Join(bundlePath, "Resources/lib/share/glib-schemas")
|
filePath := filepath.Join(bundlePath, "Resources/lib/share/glib-schemas")
|
||||||
if _, err := os.Stat(filePath); os.IsExist(err) {
|
if _, err := os.Stat(filePath); os.IsNotExist(err) {
|
||||||
|
fmt.Println("glib-schemas not found")
|
||||||
|
} else {
|
||||||
os.Setenv("GSETTINGS_SCHEMA_DIR", filePath)
|
os.Setenv("GSETTINGS_SCHEMA_DIR", filePath)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue