[PR #244] [MERGED] Preserve package wrappers in launcher desktop entries #2432

Closed
opened 2026-11-02 15:56:04 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/244
Author: @rdbtCVS
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/15/2026
Merged by: @ludovic111

Base: main ← Head: fix/launcher-desktop-wrapper


📝 Commits (1)

  • 930f6fa Honor package wrappers in launcher desktop entries

📊 Changes

3 files changed (+66 additions, -1 deletions)

View changed files

📝 launcher/README.md (+4 -0)
📝 launcher/src/desktop.rs (+7 -1)
➕ launcher/tests/desktop.rs (+55 -0)

📄 Description

Linux packages can disable launcher self-updates through a wrapper, but enabling applications-menu integration creates an entry pointing directly at the executable. Later menu launches bypass the wrapper and lose its update policy.

Honor HORIZON_LAUNCHER_DESKTOP_EXEC when registering desktop entries so packagers can point them at their wrapper. This applies to GUI startup, the Settings switch, and the desktop-entry command. Unset or empty overrides preserve the existing executable path. Document the setting and cover migration of an existing entry plus repeated removal and registration.

Validation:

  • cargo fmt --manifest-path launcher/Cargo.toml --check
  • cargo test --manifest-path launcher/Cargo.toml --locked --lib desktop::
  • cargo test --manifest-path launcher/Cargo.toml --locked --test desktop
  • Verified the AUR wrapper with the patched launcher through repeated desktop-entry registration and removal.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/244 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/15/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/launcher-desktop-wrapper` --- ### 📝 Commits (1) - [`930f6fa`](https://github.com/horizon-rust/horizon/commit/930f6fa19e87681a38edce6c1cffb76196ee0b1f) Honor package wrappers in launcher desktop entries ### 📊 Changes **3 files changed** (+66 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `launcher/README.md` (+4 -0) 📝 `launcher/src/desktop.rs` (+7 -1) ➕ `launcher/tests/desktop.rs` (+55 -0) </details> ### 📄 Description Linux packages can disable launcher self-updates through a wrapper, but enabling applications-menu integration creates an entry pointing directly at the executable. Later menu launches bypass the wrapper and lose its update policy. Honor `HORIZON_LAUNCHER_DESKTOP_EXEC` when registering desktop entries so packagers can point them at their wrapper. This applies to GUI startup, the Settings switch, and the `desktop-entry` command. Unset or empty overrides preserve the existing executable path. Document the setting and cover migration of an existing entry plus repeated removal and registration. Validation: - `cargo fmt --manifest-path launcher/Cargo.toml --check` - `cargo test --manifest-path launcher/Cargo.toml --locked --lib desktop::` - `cargo test --manifest-path launcher/Cargo.toml --locked --test desktop` - Verified the AUR wrapper with the patched launcher through repeated desktop-entry registration and removal. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:56:04 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2432
No description provided.