Task: Implement the AppImage Double-Click Handler feature
TASK-DESCRIPTION
- Modify:
sources/tools/appimage_integrate.cpp - Create:
sources/tools/appimage_activator_ui.cpp - Modify:
sources/CMakeLists.txt - Modify:
scripts/program-install.sh - Modify:
MakefileAdd thehandle,handler, and activator commands, and implement the requirements inprompts/features/10-appimage-handler.md. The activator is built only when the GTK4 development files are present, so the command-line tools still build without them. Registration records the previous default for each AppImage MIME type before it changes anything, sohandler uninstallcan restore it.
TASK-OUTPUT
Produce the complete new content of these files in this order, then the VERIFICATION: line: 1. sources/tools/appimage_integrate.cpp 2. sources/tools/appimage_activator_ui.cpp 3. sources/CMakeLists.txt 4. scripts/program-install.sh 5. Makefile
TASK-CONTEXT
*.AppImage default, which is a live-state change and not part of make test. AppImageLauncher owned the AppImage MIME definitions; a user-space copy at $XDG_DATA_HOME/mime/packages/appimage.xml preserves them if the package is removed.
TASK-FILES
| Operation | Path |
|---|---|
| modify | sources/tools/appimage_integrate.cpp |
| create | sources/tools/appimage_activator_ui.cpp |
| modify | sources/CMakeLists.txt |
| modify | scripts/program-install.sh |
| modify | Makefile |
TASK-VERIFY
- Run:
make testfrom the repository root. - Expected: exit status 0, and
tests/95-activator-ui.shreports ok or skips when GTK4 is absent.
TASK-FEATURES
prompts/features/10-appimage-handler.md
TASK-ACCEPTANCE
APPIMAGE-HANDLER-R001APPIMAGE-HANDLER-R003APPIMAGE-HANDLER-R009APPIMAGE-HANDLER-R010APPIMAGE-HANDLER-R011APPIMAGE-HANDLER-R013APPIMAGE-HANDLER-R017APPIMAGE-HANDLER-R035
OUTPUT: the five complete files in the order listed, ending with the VERIFICATION: line.