From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Christof Damian Date: Thu, 24 Sep 2026 15:42:52 +0200 Subject: [PATCH] Use dnf and Fedora package names in user-facing messages Downstream-only for the Fedora COPR package: upstream ships a .deb and names apt and Debian's package split in four setup/teardown messages. --- cmd/retrosaver/main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/retrosaver/main.go b/cmd/retrosaver/main.go index 280f24b..b21b67e 100644 --- a/cmd/retrosaver/main.go +++ b/cmd/retrosaver/main.go @@ -458,7 +458,7 @@ func cmdTeardown(args []string) error { fmt.Println(" idle-delay restored; GNOME owns the idle policy again") fmt.Printf(" config kept %s (remove it by hand if you want it gone)\n", cfgPath) fmt.Println() - fmt.Println("Remove the package with: sudo apt remove retrosaver") + fmt.Println("Remove the package with: sudo dnf remove retrosaver") return nil } @@ -500,15 +500,15 @@ func preflight() error { } available, err := modules.NewFinder().Available(cfg.Include, cfg.Exclude) if err != nil { - return fmt.Errorf("setup: %w (install the xscreensaver-data and -gl packages)", err) + return fmt.Errorf("setup: %w (install the xscreensaver-extras and xscreensaver-gl-extras packages)", err) } fmt.Printf("preflight ok: GNOME on Wayland, idle monitor reachable, %d modules available\n", len(available)) if _, err := os.Stat(packagedUnitPath); err != nil { return fmt.Errorf( - "setup: %s is missing, so there is no unit to enable. Install the .deb rather "+ - "than running setup from a source build", packagedUnitPath) + "setup: %s is missing, so there is no unit to enable. Reinstall it with: "+ + "sudo dnf reinstall retrosaver", packagedUnitPath) } return nil } @@ -529,7 +529,7 @@ func requireBinaries() error { } } if len(missing) > 0 { - return fmt.Errorf("setup: missing required tools: %s (sudo apt install %s)", + return fmt.Errorf("setup: missing required tools: %s (sudo dnf install %s)", strings.Join(missing, ", "), strings.Join(missing, " ")) } return nil -- 2.55.0