Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func readGsettings() {
log.Infof("cursor-size: %v", gsettings.cursorSize)
}
} else {
log.Warnf("Couldn't read cursorSize, leaving default %s",
log.Warnf("Couldn't read cursorSize, leaving default %d",
gsettings.cursorSize)
}

Expand Down Expand Up @@ -264,7 +264,7 @@ func readGsettings() {
log.Infof("text-scaling-factor: %v", gsettings.textScalingFactor)
}
} else {
log.Warnf("Couldn't read textScalingFactor, leaving default %s",
log.Warnf("Couldn't read textScalingFactor, leaving default %f",
gsettings.textScalingFactor)
}

Expand Down Expand Up @@ -329,7 +329,7 @@ func saveGsettingsBackup() {
line := fmt.Sprintf("%s=%s", key, val)
lines = append(lines, line)
} else {
log.Warnf("Couldn't get gsettings key: $s", key)
log.Warnf("Couldn't get gsettings key: %s", key)
}
}
for _, key := range []string{"event-sounds", "input-feedback-sounds"} {
Expand All @@ -338,7 +338,7 @@ func saveGsettingsBackup() {
line := fmt.Sprintf("%s=%s", key, val)
lines = append(lines, line)
} else {
log.Warnf("Couldn't get gsettings key: $s", key)
log.Warnf("Couldn't get gsettings key: %s", key)
}
}

Expand Down Expand Up @@ -433,7 +433,7 @@ func applyGsettings() {
cmd = exec.Command("gsettings", "set", gnomeSchema, "text-scaling-factor", fmt.Sprintf("%f", gsettings.textScalingFactor))
err = cmd.Run()
if err != nil {
log.Warnf("text-scaling-factor: %s %s", gsettings.textScalingFactor, err)
log.Warnf("text-scaling-factor: %f %s", gsettings.textScalingFactor, err)
} else {
log.Infof("text-scaling-factor: %v OK", gsettings.textScalingFactor)
}
Expand Down