Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't respect flatpak's enumerate/don't enumerate settings #2113

Open
robog-two opened this issue Feb 8, 2024 · 2 comments · May be fixed by #2120
Open

Doesn't respect flatpak's enumerate/don't enumerate settings #2113

robog-two opened this issue Feb 8, 2024 · 2 comments · May be fixed by #2120
Labels
Needs Design Waiting for input from the UX team

Comments

@robog-two
Copy link

robog-two commented Feb 8, 2024

What Happened?

Flatpak has the ability to mark certain repositories as "no-enumerate." Here is the setup on my machine:

$ flatpak remotes
Name        Options
appcenter   system
flathub     system
freedesktop system,no-enumerate,filtered
appcenter   user
flathub     user,no-enumerate

Steps to Reproduce

To reproduce, install an app from FlatHub that requires dependencies. Flatpak will automatically add the flathub repository and therefore all of the apps from flathub will appear in AppCenter. This is something that most people sideloading flatpak apps probably want --- however, for users like me that are completely comfortable with manually sideloading flatpak apps, the settings of flatpak should be respected, so that the AppCenter only contains the elegant and curated apps from the elementary team.

Expected Behavior

From man 1 flatpak-remote-modify:

--no-enumerate
Mark the remote as not enumerated. This means the remote will not be used to list applications, for instance in graphical installation tools. It will also not be used for runtime dependency resolution (as with --no-use-for-deps).

With this setting enabled, as described, AppCenter should not list from this repository in the search listing or in the different category lists

OS Version

7.x (Horus)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response

@lenemter lenemter added the Needs Design Waiting for input from the UX team label Feb 9, 2024
@robog-two
Copy link
Author

@lenemter
Could be something as simple as this:
Third_party_apps_mockup

Though, I really think adding to the UI isn't necessary if it respects the already present flatpak settings, and maybe those should actually live in the settings GUI at some point, but for now I think appcenter should just respect the existing flatpak configuration if present.

@robog-two robog-two linked a pull request Feb 15, 2024 that will close this issue
@seifeldinio
Copy link

seifeldinio commented Jul 6, 2024

@lenemter

Here's a proposed solution for this, here's the prototype for it:

demo.mp4

And here's a quick breakdown and mockups:

Accessing Software Sources:

  • The user clicks on the settings icon, they can either use the shortcut Ctrl + S to go to the Software Sources section in the App Center, or click on the Software Sources list item to go there.
App Center Zoomed

Viewing and Adding Sources:

  • A list of the third-party sources is shown. To add a source, the user would click the plus icon.
Idle

Adding a Source:

  • Opening up a modal to add a source, while adding, we can specify if we will enable or disable the no-enumerate option.
Add Zoomed

Editing a Source:

  • To edit a source, we click on it and choose the edit icon down below, or alternatively, we can also hold click on it to open the edit modal.
Edit Pressed Zoomed

Editing Source Modal:

  • In the edit source modal, we can edit the source and the no-enumerate option as well.
Edit Zoomed

Deleting a Source:

  • To delete a source, we can select a list item and then click the delete icon below.

By integrating these functionalities into the App Center, we ensure that users can easily control which repositories are enumerated and have control over the sources, enhancing their experience and maintaining the curated feel of the App Center.

I'd love to hear your thoughts or feedback on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Design Waiting for input from the UX team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants