Run AppImages, .debs, foreign-arch ELF and Windows programs as easily as double-clicking an exe
  • Shell 95.6%
  • PowerShell 2.7%
  • Makefile 1.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
octolinkyt 59ea2a4e83 Complete double-click coverage and make launches observable
tandem setup now registers .apk, .msi, Mach-O, PowerShell and batch types as well as the original set, and reports how many xdg-mime defaults actually took. Running the same AppImage or .deb again reuses the existing unpack when its size and mtime are unchanged, with --refresh to force it. Background launches are captured per app under ~/.local/share/tandem/logs, failures raise a notification, and tandem logs [id] shows the latest output.
2026-11-25 16:04:51 -05:00
tests Complete double-click coverage and make launches observable 2026-11-25 16:04:51 -05:00
windows Add Android, macOS, PowerShell and batch support, plus a WSL bridge 2026-11-25 15:42:23 -05:00
.gitignore Make tandem distro-agnostic and give the repo a build 2026-11-25 15:34:33 -05:00
Makefile Add Android, macOS, PowerShell and batch support, plus a WSL bridge 2026-11-25 15:42:23 -05:00
README.md Complete double-click coverage and make launches observable 2026-11-25 16:04:51 -05:00
tandem Complete double-click coverage and make launches observable 2026-11-25 16:04:51 -05:00

tandem

Run what you just downloaded. AppImages, .debs, Linux binaries built for a different architecture, Windows programs, Android packages, macOS binaries and Windows shell scripts — one command, no root, no FUSE, no chroot to set up.

tandem                          # run the newest download in ~/Downloads
tandem ~/Downloads/thing.AppImage
tandem ~/Downloads/thing.deb
tandem ~/Downloads/tool-x86_64  # a bare Linux binary for another CPU
tandem ~/Downloads/app.exe      # a Windows program

Double-clicking a downloaded AppImage, .deb, ELF or .exe in the file manager does the same thing, after a one-time tandem setup.

Commands

command what it does
tandem install/run the newest runnable file in ~/Downloads (numbered picker if several and a terminal)
tandem <file> [args…] run that file
tandem run -f <file> [args…] run in the foreground, so errors are visible
tandem run --refresh <file> unpack an AppImage or .deb again instead of reusing the previous unpack
tandem install <file…> unpack, add to the app launcher, don't run
tandem open <file> what the file manager calls on a double-click
tandem list what is installed, with its kind and source
tandem remove <name|id> uninstall (app dir, launcher entry, icons)
tandem clean [--prefix] drop temp dirs, stray app dirs, orphaned entries and the detection cache; --prefix also deletes the shared Wine prefix
tandem info <file> what the file is and the exact command that will run
tandem doctor what this machine can run today, and what is missing
tandem deps what to install to run more, in this distro's package names
tandem logs [id] output and exit status of the last background run (newest when no id)
tandem setup register the double-click handler for every supported format (run once)

What it decides

The file's own bytes decide everything; extensions only break ties.

input what happens
AppImage unpacked to ~/Applications/<id>/, launcher entry + icons, AppRun started
.deb payload extracted to ~/Applications/<id>/ with its usr/ layout, entry rewritten to the relocated program
Linux ELF, host arch runs as-is
Linux ELF, other arch box64/box86, else kernel binfmt_misc, else FEX-Emu, else qemu-<arch>
Windows PE Proton's own Wine, else umu-launcher, else Wine (box64/box86 if Wine is x86_64)
.msi wine msiexec /i, inside the shared prefix
.apk installed into Waydroid (running session) or an adb device, then launched
macOS Mach-O arm64 through Kakehashi (kh run) on aarch64; x86_64 through Darling on x86_64
.bat / .cmd run by Wine's cmd /c
.ps1 run by PowerShell 7 (pwsh)
installer .exe recognised from Inno Setup / NSIS / InstallShield / WiX markers, a 7z self-extractor signature, or the filename; runs in the shared prefix, no launcher entry
#!/… script made executable and run

AppImages and .debs keep working after you delete the download. Bare binaries run from wherever they sit, so nothing is copied around. Running or double-clicking the same AppImage or .deb again reuses the existing unpack when the file's size and modification time are unchanged, so the second launch is immediate; tandem run --refresh <file> forces a fresh unpack.

Windows

Proton is preferred when it is there, because a Proton ARM64 build carries FEX and can start ARM64, x86_64 and i386 Windows programs. tandem drives Proton's Wine binary directly (files/bin-arm64/wine) rather than proton run: no pressure-vessel container, no Steam client needed, and the program's real output comes back to you. All Windows programs share one prefix, ~/.local/share/tandem/prefixes/default, so each install does not cost another 400–900 MB.

Installers (setup.exe, *installer.exe, .msi) are recognised and run inside that prefix instead of being turned into launcher entries. What they install lands in …/prefixes/default/drive_c/; add a program from there to the launcher with tandem install <path to its .exe>.

Beyond Linux and Windows

  • Android .apk — installed into Waydroid when a session is running (waydroid app install, then waydroid app launch when aapt/apkanalyzer can read the package name), or over adb to a phone or emulator that is attached (adb install -r; the package is found by diffing pm list packages -3 when no tool can read the manifest). Waydroid already adds Android apps to the host launcher, so tandem does not duplicate them.
  • macOS Mach-O — detected by magic (thin and universal). On aarch64 Linux, arm64 binaries run natively through Kakehashi (kh run, no JIT, no instruction emulation; a one-time kh bottle ensure creates the macOS-like bottle). On x86_64 Linux, x86_64 binaries run through Darling (darling shell). Neither layer emulates a CPU, so a binary for the other architecture cannot run at all, and tandem says so instead of pretending. Machismo and mldr are similar ARM64 Mach-O loaders, but they are not wired in. .app bundles and .dmg images are not supported.
  • Windows shell scripts — .bat/.cmd run through Wine's cmd /c, with the path mapped onto drive Z:; .ps1 runs with PowerShell 7 (pwsh) when it is installed. Neither needs a Windows installation.
  • On Windows — windows/tandem.ps1 is the other direction: it takes a Linux binary, AppImage or .deb and hands it to the tandem inside WSL, translating C:\... to /mnt/c/... (see windows/README.md). It is a bridge to the Linux runtime, not a Linux emulator, and it needs WSL2 with tandem installed there.

tandem deps lists which of these this machine can do today.

Measured here (aarch64)

Same static busybox binary, same 48 MB input, same machine:

runner sha256sum of 48 MB launch of true
native aarch64 32 ms —
qemu x86_64 (binfmt) ~755 ms 5.6 ms
FEX-Emu x86_64 ~250 ms —
box64 x86_64 ~265 ms 19.7 ms
qemu i386 (binfmt) ~825 ms 6.4 ms
FEX-Emu i386 crashes (SIGSEGV) —

So box64 goes first for x86_64, FEX second, qemu last. For 32-bit x86 there is no faster option on this machine: box86 needs a 32-bit ARM userspace (this CPU reports no aarch32), and FEX's 32-bit path segfaults on the same test, so i386 stays on qemu.

Where things go

  • ~/Applications/<id>/ — unpacked AppImage, extracted .deb, copied .exe
  • ~/.local/share/applications/<id>.desktop — launcher entry
  • ~/.local/share/applications/tandem-open.desktop — the hidden double-click handler
  • ~/.local/share/icons/hicolor/*/apps/ — icons
  • ~/.local/share/tandem/prefixes/default — shared Wine/Proton prefix
  • ~/.local/share/tandem/logs/<id>.log — output and exit status of the latest background launch
  • ~/.local/share/tandem/cache — installer-detection results, keyed by path, size and mtime
  • ~/Applications/<id>/.tandem-meta — name, source, kind, icon, executable

Nothing under /usr is touched, and no root is needed.

Any distro

It is one bash script: bash, coreutils and tar are all it needs to start. Everything else is for one kind of input, and tandem deps reads /etc/os-release to print the exact install command for the machine it is on.

for package fallback / notes
.deb libarchive-tools (Debian, Ubuntu, Alpine), bsdtar (Fedora, openSUSE), libarchive (Arch) binutils ar plus any tar unpacks a .deb too, so this is optional
x86_64 Linux programs qemu-user-static (Debian, Fedora, Arch), qemu-linux-user (openSUSE) box64 and FEX-Emu are faster and packaged in most distros
32-bit x86 Linux programs the same qemu packages box86 needs a 32-bit ARM userspace on ARM
Windows programs wine, or Steam for Proton Proton is found in native, flatpak and snap Steam installs; umu-launcher also works
Android .apk adb (android-tools on Arch, Fedora, openSUSE), or Waydroid Waydroid needs binder and a running session; adb works with a phone or emulator
.ps1 powershell (PowerShell 7) Arch: AUR powershell-bin; Microsoft's release tarball works too
macOS binaries Kakehashi (cargo install kakehashi) on aarch64, Darling on x86_64 user-space layers, not CPU emulation, so the architecture must match the host
.exe icons icoutils optional, falls back to a generic icon
installer detection python3 optional, falls back to grep
launcher refresh desktop-file-utils optional

On Omarchy, box64 and FEX-Emu are in the omarchy repo, Proton comes with Steam, and qemu-user-static provides the kernel binfmt rules.

Build and install

make check          # bash -n, and shellcheck when it is installed
make test           # synthetic .deb, PE and ELF inputs under a temp HOME
make install-user   # ~/.local/bin/tandem, no root
tandem setup        # register the double-click handler, once

make install writes to /usr/local/bin (override PREFIX=, or stage with DESTDIR=); make dist builds tandem-<version>.tar.gz with the script, the Makefile, the tests, the Windows/WSL bridge and this README.

To remove: tandem remove <each app>, rm ~/.local/share/applications/tandem-open.desktop, delete the binary, and tandem clean --prefix for the shared Wine prefix.

Limits

  • .msi is verified end to end with the Node.js installer (node.msi /qn, which put node.exe and npm into the prefix); a few custom-action DLL loads in Wine's log are harmless.
  • ARM64 Windows programs run: the ARM64 node.exe from Node's win-arm64 zip printed arm64-ok arm64 v26.13.1 under Proton ARM64's Wine. An ARM64 .msi that creates Start Menu shortcuts aborts at 1603 inside Wine, so prefer a zip or portable build for ARM64 installers that fail this way.
  • Installer detection reads the program's own bytes first (Inno Setup, NSIS, InstallShield, WiX Burn markers, plus the 7z self-extractor signature), with the filename only as a fallback. A custom installer carrying none of those markers and a plain name still looks like an app.
  • Dynamically linked foreign binaries also need that architecture's loader and libraries; tandem warns when the loader is missing.
  • Windows apps that need a 32-bit-only component may need box86 (which itself needs a 32-bit ARM userspace) or a Wine built with 32-bit support.
  • macOS: Kakehashi is experimental. CLI tools run (7-Zip's arm64 7zz prints its banner under tandem in ~11 ms here), but some programs abort at exit and GUI applications are not dependable. Darling covers x86_64 Mach-O on x86_64 hosts only. A Mach-O binary for the host's other architecture cannot run at all, because neither layer translates CPU instructions. .app and .dmg are not handled.
  • Android: an .apk needs a running Waydroid session or an adb-attached device; tandem does not start an emulator itself.
  • .ps1 needs pwsh; Windows PowerShell 5.1 through Wine is not used.