Correct GUI asset dir handling (fixes #2621)
This commit is contained in:
@@ -225,10 +225,6 @@ func defaultRuntimeOptions() RuntimeOptions {
|
|||||||
logFlags: log.Ltime,
|
logFlags: log.Ltime,
|
||||||
}
|
}
|
||||||
|
|
||||||
if options.assetDir != "" {
|
|
||||||
options.assetDir = locations[locGUIAssets]
|
|
||||||
}
|
|
||||||
|
|
||||||
if os.Getenv("STTRACE") != "" {
|
if os.Getenv("STTRACE") != "" {
|
||||||
options.logFlags = log.Ltime | log.Ldate | log.Lmicroseconds | log.Lshortfile
|
options.logFlags = log.Ltime | log.Ldate | log.Lmicroseconds | log.Lshortfile
|
||||||
}
|
}
|
||||||
@@ -308,6 +304,12 @@ func main() {
|
|||||||
options.logFile = locations[locLogFile]
|
options.logFile = locations[locLogFile]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if options.assetDir == "" {
|
||||||
|
// The asset dir is blank if STGUIASSETS wasn't set, in which case we
|
||||||
|
// should look for extra assets in the default place.
|
||||||
|
options.assetDir = locations[locGUIAssets]
|
||||||
|
}
|
||||||
|
|
||||||
if options.showVersion {
|
if options.showVersion {
|
||||||
fmt.Println(LongVersion)
|
fmt.Println(LongVersion)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user