multiple fixes

This commit is contained in:
piotr
2021-09-28 02:40:23 +02:00
parent a9fe4a7371
commit 1f91ade8e6
4 changed files with 37 additions and 20 deletions

View File

@@ -262,7 +262,7 @@ func main() {
// For opening files we use xdg-open. As its configuration is PITA, we may override some associations
// in the ~/.config/nwg-panel/preferred-apps.json file.
paFile := filepath.Join(configDirectory, "preferred-apps.json")
paFile := path.Join(configDirectory, "preferred-apps.json")
preferredApps, err = loadPreferredApps(paFile)
if err != nil {
log.Infof("Custom associations file %s not found or invalid", paFile)
@@ -271,13 +271,12 @@ func main() {
}
// Load user-defined paths excluded from file search
exFile := filepath.Join(configDirectory, "excluded-dirs")
exFile := path.Join(configDirectory, "excluded-dirs")
exclusions, err = loadTextFile(exFile)
if err != nil {
log.Infof("Search exclusions file %s not found %s", exFile, err)
} else {
log.Infof("Found %v search exclusions in %s", len(exclusions), exFile)
log.Info(exclusions)
}
// USER INTERFACE