How theassassin/appimagelauncher works
AppImageLauncher intercepts AppImage launches, runs unintegrated images or prompts users to integrate them, and provides desktop entries for later launching, updating, and removal. The CLI exposes integration and unintegration; a background daemon watches configured directories and handles additions and removals. Shared integration logic manages desktop resources and configuration, while the binfmt bypass helper launches AppImages through a patched runtime. The README documents update and removal capabilities, but their detailed implementation is only partially sampled; those links are shown at the documented capability level.
Main entry points: main.cpp Launch interceptor · shared.cpp Integration and config · daemon.cpp Directory daemon · CommandFactory.cpp Command factory
Components 21
Launch handling
- Launch interceptor
src/ui/main.cpp - Runtime bypass
src/binfmt-bypass/lib.cpp
Integration services
- Integration and config
src/shared/shared.cpp - Trash management
src/trashbin/trashbin.cpp
Background management
- Daemon entry
src/daemon/main.cpp - Directory daemon
src/daemon/daemon.cpp - Filesystem watcher
src/fswatcher/filesystemwatcher.cpp - Deferred operations
src/daemon/worker.cpp
User interfaces
- CLI entry
src/cli/cli_main.cpp - Command factory
src/cli/commands/CommandFactory.cpp - Integrate command
src/cli/commands/IntegrateCommand.cpp - Unintegrate command
src/cli/commands/UnintegrateCommand.cpp - First-run prompt
src/ui/first-run.cpp - Integration dialog
src/ui/integration_dialog.cpp - Settings dialog
src/ui/settings_dialog.cpp - Update helper
src/ui/update_main.cpp - Removal helper
src/ui/remove_main.cpp
Runtime support
- Translations
src/i18n/translationmanager.cpp
Other components
- Desktop user
- AppImage file
- Desktop launcher
Connections 24
- Desktop user → AppImage file: opens
- AppImage file → Launch interceptor: invokes
- Launch interceptor → Runtime bypass: executes via
src/ui/main.cpp - Launch interceptor → Integration and config: integrates through
src/ui/main.cpp - Launch interceptor → First-run prompt: prompts with
src/ui/main.cpp - Launch interceptor → Integration dialog: shows
src/ui/main.cpp - Launch interceptor → Trash management: uses
src/ui/main.cpp - Launch interceptor → Translations: installs
src/ui/main.cpp - CLI entry → Command factory: dispatches through
src/cli/cli_main.cpp - Command factory → Integrate command: creates
- Command factory → Unintegrate command: creates
- Integrate command → Integration and config: integrates through
src/cli/commands/IntegrateCommand.cpp - Unintegrate command → Integration and config: unintegrates through
src/cli/commands/UnintegrateCommand.cpp - Daemon entry → Directory daemon: starts
src/daemon/main.cpp - Directory daemon → Filesystem watcher: uses
- Directory daemon → Deferred operations: uses
- Deferred operations → Integration and config: uses
src/daemon/worker.cpp - Directory daemon → Integration and config: reads configuration
src/daemon/daemon.cpp - Desktop launcher → Update helper: launches update
- Update helper → Integration and config: applies updates
- Desktop launcher → Removal helper: launches removal
- Removal helper → Integration and config: removes integration
- Integration dialog → Desktop launcher: adds entries
- Settings dialog → Integration and config: configures
src/ui/settings_dialog.cpp