https://blue-build.org/ logo
default-flatpaks module, no flathub
# questions
a
in my recipe I have
Copy code
- type: default-flatpaks
    configurations:
      - scope: user
        notify: false
        repo:
          name: cosmic
          title: COSMIC Flatpak
          url: https://apt.pop-os.org/cosmic/cosmic.flatpakrepo
but my image only has COSMIC Flatpak listed when using
flatpak remotes -d
When using scope system flathub is listed. Am I dong something wrong or is this intentional?
a
message has been deleted
x
ublue images have system flathub by default, i think
default-flatpaks module adds only remotes that it is configured to add
the default values for
repo
configure flathub, but here you have overridden
repo
in your only configuration
solution: add another configuration with
scope: user
but leave
repo
undefined
a
this is the result of
Copy code
- type: default-flatpaks
    configurations:
      - scope: user
        notify: false
        repo:
          name: cosmic
          title: COSMIC
          url: https://apt.pop-os.org/cosmic/cosmic.flatpakrepo
      - scope: user
        repo:
          name: flathub
          title: Flathub
https://cdn.discordapp.com/attachments/1438774472323895348/1439070462654156871/image.png?ex=69192e4e&is=6917dcce&hm=4d17fb69d2e0d5dbd921db1308fc89985d4d385d86cc3a6db7f048736c7df0f1&
Copy code
- type: default-flatpaks
    configurations:
      - notify: false
        scope: user
        repo:
          name: cosmic
          title: COSMIC
          url: https://apt.pop-os.org/cosmic/cosmic.flatpakrepo
      - notify: false
        scope: user
        repo:
          name: flathub
          title: Flathub
          url: https://dl.flathub.org/repo/flathub.flatpakrepo
Same effect
x
if you use the
bluebuild-flatpak-manager
to manually apply the user configurations, is there some error message or does it work then?
you can also use the
show
command to see if the configurations are interpreted correctly
it is possible that having the
install
array be empty causes an error with the current code of the module, since no checks are made before calling
flatpak
adding the repo happens before installation, though, so i don't know why that wouldn't work
a
x
did you try applying manually
bluebuild-flatpak-manager apply user
i think
a
yes, i also tried to disable and enable
x
what was the output of apply
x
ah, it's trying to run the commands in interactive mode?
that may or may not be a problem
try piping to
less
so we see if
flatpak
is smart about it
it might be trying to install an empty string to be honest
x
i'm on my phone with 6% battery right now but i can add the change in a bit
yeah, this is probably it
a
I ended up with - type: default-flatpaks
Copy code
configurations:
      - scope: user
        repo:
          name: flathub
          title: Flathub
        install:
          - app.zen_browser.zen
      - scope: user
        repo:
          name: cosmic
          title: COSMIC
          url: https://apt.pop-os.org/cosmic/cosmic.flatpakrepo
        install:
          - io.github.cosmic_utils.sysinfo-applet
          - dev.cappsy.CosmicExtAppletLogoMenu
x
a
so now it will give an error unless a package is set to install?
x
no, it will work regardless of if you set any flatpaks to install or not
a
Ok great 👍🏻. Thanks for the fix
2 Views