Skip to content

appimage: Rewrite appimage stuff to add gearlever like options - #189

Open
truelockmc wants to merge 8 commits into
CachyOS:developfrom
truelockmc:develop
Open

truelockmc wants to merge 8 commits into
CachyOS:developfrom
truelockmc:develop

Conversation

@truelockmc

Copy link
Copy Markdown

This PR aims to add a popup when clicking appimages on the appimage page.
The popup should show additional information and offer more options.
For now metadata refresh, website, arguments, environment variables and pre releases. In the future more stuff like multiple update sources (forgejo, static url, codeberg) could be added.

Gearlever option screen:
image

Current draft:
image

#113 #89
(this is the same PR as #141, but reopened to the develop branch since the fresh branch has been merged)

- the appimage overlay now has a few new fields
- "Website": You can now set the appimages website (if you want to find it again later or something)
-  "Command line arguments": Here, command line arguments that you want to run the appimage with can be configured
- Those settings will be saved in the apps desktop entry (Exec= and X-CachyOS-PI-Website)
- If you have unsaved settings, the overlay cannot be accidently closed by misclicking. Instead you have to press save or discard
- Invalid arguments or URLS should show a warning
- updated test_appimage.cpp
@truelockmc

Copy link
Copy Markdown
Author
image

@truelockmc

truelockmc commented Nov 27, 2026 •

Copy link
Copy Markdown
Author

To-Do:

  • Environment variables
  • Reload Metadata
  • Keep settings when updating (they got overwritten rn I think)
  • Allow prerelease switch
  • Basic Update Source Management (Source dropdown, editable repo on every appimage)
  • Reorder Options properly

- added enviroment variables to the appimage detail menu. You can add them by clicking + and remove them by clicking on the bin. Variables will be saved as env NAME=value in the Exec= line.
- Appimage settings like website, arguments and variables no longer get removed after the file gets updated.
- parser fix in appimagedesktop.cpp: firstArgumentLength did not properly read " and \. Now it properly works like commandLine()
- fixed that when you would open and close the details popup on an appimage, it would stay highlighted, even though it is not actually being hovered on
- clicking open in the overlay now runs the appimage with the same arguments/variables as the desktop entry
- updated test_appimage.cpp
- added "reload metadata" button, which re-reads name, description, icon and version from the file
- Split the unpacking and icon staging out of install() into unpack()
and stageIcon() so install and reload can share them (sharing is caring my fellas)
- client errors are now shown in the detail popup, since the status area is not visible while it is opened
- With the option set, updates are looked up in the list of recent
releases instead of /releases/latest, which never lists a pre-release.
- stored in X-CachyOS-PI-Prereleases
- releases are cached per source and choice
- updated test_appimage.cpp
- Every appimage now has the update management fields. There is a source dropdown which contains none or github.
- when github is selected, the user can add or edit the repository updates should come from and choose to allow pre-releases
- saved as X-CachyOS-PI-Source=
- updated test_appimage.cpp
- Gave the appimage options popup a fixed height and made it scrollable, therefore the big diff in AppImagePage.qml
- reordered and properly grouped the options in the options overlay
- previously if you would enter username/repo it would show newer releases but you weren't able to save. Now the field automatically updates and users can save normally 👍
@truelockmc
truelockmc marked this pull request as ready for review November 28, 2026 10:51
@truelockmc

Copy link
Copy Markdown
Author
appimage-options-overlay.mp4

Ready for review :)
I tested all the options, so I think everything is working.
But please have a look at it and check for any Issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant