Allow pre-installed Mango compositor on Ubuntu

Open Beginner friendly
#4,396 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
go, linux, ubuntu
Domain
cli, tooling

Research direction

Start in internal/tui/views_selection.go at windowManagerChoices(), where Mango is currently filtered out on Debian/Ubuntu/SUSE because no package mapping exists; look at commit 39b0d408 for the line that introduced that exclusion. Check how other compositors use utils.CommandExists to test for an existing binary in PATH, and mirror that pattern for "mango". Done means Mango shows up in the selection menu when /usr/bin/mango exists on those distributions, while the automatic-install restriction for a missing Mango stays as it is.

Written by the indexing model from the issue text.

Description

Feature Description

Allow Mango to appear in the compositor selection menu on Debian, Ubuntu and SUSE when the mango executable is already installed and available in PATH.

Currently, Mango is excluded unconditionally on these distributions because Dux has no package mapping for it.

The installer should distinguish between installing a compositor and detecting an already installed compositor. Users who compile Mango from source should still be able to select it.

(I am a non-native English speaker, I took some help from AI to formulate myself in English)

Use Case

I use Ubuntu 26.04 on several machines with Mango as my compositor.

I compile Mango from source and install the binary as /usr/bin/mango before running the Dux installer.

This worked in previous versions of Dux (formerly DankMaterialShell). Mango appeared in the compositor selection menu, and Dux correctly detected that Mango and other dependencies were already installed.

Since commit 39b0d40877f277ec693105415ff9c6d240a42436 (October 8, 2026), Mango is no longer offered on Ubuntu.

Allowing the installer to detect and offer an existing Mango installation would restore the previous functionality.

Compositor(s)

MangoWC (dwl)

If Other, please specify

No response

Proposed Solution

Modify windowManagerChoices() in internal/tui/views_selection.go to check whether the mango executable exists using utils.CommandExists("mango").

If Mango is already installed, include it in the compositor selection menu even on Debian, Ubuntu and SUSE.

Keep the current restrictions for automatically installing Mango on these distributions when it is not already present.

This would allow users to compile Mango from source without requiring Dux to provide native package support.

Alternatives/Existing Solutions

No response

Dominant language
QML
Stars
8.4k
Forks
549
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AvengeMedia/DankMaterialShell

All issues in AvengeMedia/DankMaterialShell

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.