feature requeset for flatpak #4782
ost-guy-comeback
started this conversation in
Ideas
Replies: 1 comment
|
Okay the end of your text is a bit all over the place. But the flatpak part I 100% agree with. Could be something like class FlatpakApp:
@property
def packages(self) -> list[str]:
# sandboxed apps reach file chooser, screenshots and settings through a portal
# backend; the gtk one is the generic fallback for desktops that ship none
return ['flatpak', 'xdg-desktop-portal-gtk']
def install(self, install_session: Installer) -> None:
debug('Installing flatpak')
install_session.add_additional_packages(self.packages)
# system-wide fallback: a <desktop>-portals.conf (plasma, gnome, sway, ...) still
# wins, this only catches WMs that ship none (i3, bspwm, awesome, ...)
conf = install_session.target / 'etc/xdg/xdg-desktop-portal/portals.conf'
conf.parent.mkdir(parents=True, exist_ok=True)
if not conf.exists():
conf.write_text('[preferred]\ndefault=gtk\n')
try:
install_session.arch_chroot(['flatpak', 'remote-add', '--if-not-exists', 'flathub', 'https://flathub.org/repo/flathub.flatpakrepo'])
except SysCallError as err:
warn(f'Could not add the flathub remote, add it after first boot: {err}')This way the remote is already set, the portals work, and flatpak is ready for use. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
add an flatpak script that when u select the flatpak package you can set to autoconfig in the final part of install or manual set that u manually set after install and the options appear after you select flatpak package and when selecting desktops you can choose git or pkg version but it only appears if you add an repo that have yay aur manager or it dont appears the option git
All reactions