How ryanmferreira/pig-appimage-manager-cpp works
PIG is a command-line AppImage manager. A user invokes the CLI, which validates commands and dispatches copying, opening, creating an app-specific .home directory, deleting a file, or listing installed apps. On startup it ensures the default ~/Programs/AppImages/ directory exists. Copying creates an app subdirectory, copies the binary, and adds owner execute permission; listing scans that storage. The README describes desktop integration and other future capabilities, but these are not implemented in the sampled runtime. The graph reflects the available source; custom storage-path selection is not evident.
Main entry points: arguments.cpp Command router · fileManagement.cpp AppImage copy · main.cpp CLI entry · scanApps.cpp Installed app listing
Components 13
CLI
- CLI entry
src/main.cpp - Command router
src/arguments.cpp
App management
- File operations
src/fileManagement.cpp - App folder creation
src/fileManagement.cpp - AppImage copy
src/fileManagement.cpp - Execute permissions
src/fileManagement.cpp - App launch
src/fileManagement.cpp - Home directory creation
src/fileManagement.cpp - File deletion
src/fileManagement.cpp
App catalog
- Installed app listing
src/scanApps.cpp - App directory scan
src/scanApps.cpp
Other components
- User
- AppImage storage
Connections 18
- User → CLI entry: runs command
- CLI entry → Command router: validates arguments
- CLI entry → AppImage storage: ensures default directory
- Command router → AppImage copy: dispatches copy
- Command router → App launch: dispatches open
- Command router → Home directory creation: dispatches home
- Command router → File deletion: dispatches delete
- Command router → Installed app listing: dispatches show
- AppImage copy → App folder creation: creates directory
- App folder creation → AppImage storage: creates in storage
- AppImage copy → AppImage storage: copies binary
- AppImage copy → Execute permissions: adds permission
- Execute permissions → AppImage storage: updates binary
- App launch → AppImage storage: executes path
- Home directory creation → App folder creation: creates directory
- File deletion → AppImage storage: removes file
- Installed app listing → App directory scan: requests scan
- App directory scan → AppImage storage: scans directories