feat: enable selecting flatpak packages on any distro when Flatpak is toggled on#62
Closed
DsChauhan08 wants to merge 1 commit intoabusoww:mainfrom
Closed
feat: enable selecting flatpak packages on any distro when Flatpak is toggled on#62DsChauhan08 wants to merge 1 commit intoabusoww:mainfrom
DsChauhan08 wants to merge 1 commit intoabusoww:mainfrom
Conversation
When selecting a distro like Ubuntu or Fedora, users can now toggle on Flatpak fallback to see and select apps that aren't in the native repos but are available on Flathub. The generated command and download script append flatpak installs after the native package manager commands. Closes abusoww#46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #46
When using a distro like Ubuntu, Fedora, or Arch, users can now toggle on Flatpak fallback to see and select apps that aren't available in the native repos but exist on Flathub. Selected flatpak fallback apps are installed alongside native packages — the generated command appends
flatpak installafter the distro's package manager, and the download script appends a dedicated flatpak section.What changed
FlatpakTogglecomponent — appears next to the distro selector for eligible distros (Ubuntu, Debian, Arch, Fedora, OpenSUSE)useLinuxInithook — addedisFlatpakEnabledstate,toggleFlatpakEnabled, andisFlatpakFallbackhelper.isAppAvailable,toggleApp,selectAll, andavailableCountnow account for flatpak fallbacks when the toggle is on. State is persisted to localStorage.AppItem— shows a "flatpak" badge on fallback apps with Flatpak-blue checkbox colorCategorySection— passesisFlatpakFallbackthrough to AppItemCommandFooter— passesisFlatpakEnabledto script generationgenerateInstallScript— whenisFlatpakEnabledis set, collects flatpak fallback packages and either appends them to the primary distro script or generates a standalone flatpak scriptflatpak.ts— newisAppendedmode that generates a flatpak section meant to be appended to another distro's script (namespaced functions to avoid conflicts, increments TOTAL, reuses shared utils from the primary script)How it works
&& flatpak install flathub -y ...appended