-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat(default-flatpaks): Prompt & explain the user new flatpak install & uninstall #188
Comments
Similar system can be also beneficial in installation process too, in order to inform the user why the new flatpak is installed. Flatpak install may not need a prompt, since it does not degrade the user experience like uninstallation process does. |
This prompting is literally the purpose of Yafti. Ublue initially had a Zenity progressbar for installing Flatpaks, which I don't believe showed the user any prompts. That was replaced with Yafti, to allow toggleable package sets and other commands being presented to the user as optional setup steps. Then Bluefin & Bazzite started using their Flatpak managers to "pre-install" a non-optional set of Flatpaks on their custom images. This feature was ported to BlueBuild as But to be frank, I never was quite sure what the actual usecase of Flatpak removals were. For personal images, it is somewhat understandable, but for images with multiple users I'm not so sure. It's probably still an alright to feature to keep in, though, as image maintainers may anyway make decisions that degrade the user experience for some users. It is ultimately up to the image maintainer to do Flatpak installs and removals, and how they are accomplished. The user-configurability of the module helps with the degradation too. I am not so sure if adding the prompts to the
|
Oh, I forgot about it, thanks for mentioning it. Yafti can be used as strictly prompt, but it's mostly used as the 1st run optional setup these days. It's configurable in yml, with option to modify the running frequency of yafti.
I think it's a good idea to wait for yafti refactor due to this.
When thinking about it, I believe that something like Zenity dialog or Yafti prompt is better than strictly using notifications. We wouldn't have to worry about the compatibility for various notification systems that you mention. It may look more distracting than notifications, but it would prevent some issues that you mention. Now about Yafti prompt vs Zenity dialog, I think that Yafti is more refined to use. We can also optionally keep notifications-only for maintainers who wish less distracting experience. What do you think? |
I think let's wait until the Yafti refactor is used in Bazzifin. The |
Introduction
Thanks to @qoijjj for the idea.
Uninstalling a flatpak automatically sounds nice if you are the maintainer & user of the image at the same time.
However, for other users, it can still be a pain experience, even if it's possible for them to circumvent that.
The issue is the lack of further information & documentation, regarding flatpak uninstallation to the user.
Another issue is that the flatpak uninstallation process is invasive process itself, since it doesn't ask the user about it at all.
That's a degrading experience for the user, especially if he used that app daily.
Uninstallation process can be improved.
Idea
The idea is to prompt the user in notification if he wants to uninstall the flatpak.
Explain the reason in notification why flatpak is removed.
Depending on how flatpak remote is configured, give instructions to the user on how to keep using the uninstalled flatpak by the OS.
By "how flatpak remote is configured", I mean this.
While having system flatpak remote for the OS & user flatpak remote for the user is the best way to solve this, we still need to support single remote usage, which is the most frequent in usage of custom images.
Instructions differ between those configurations in this sense:
System flatpak remote for the OS & user flatpak remote for the user:
This is needed in order to avoid duplicate apps. Data still remains intact for the user.
While user can install the user flatpak without modifying the list, he might not have the internet connection at the moment, so using the already existing systemd service would be better, which handles internet connection scenario automatically.
Single flatpak remote:
When user says "Yes" in both scenarios, uninstallation process normally occurs.
It's still not the ideal experience I guess, but I'm open for improvements regarding this.
What also needs to be accounted is what to do if user misses the notification. Do we inform him again about it through another notification, or do something else?
Is some kind of more prominent window pop-up more desirable in this case, to assure that user focus is in-place?
Implementation
Currently, don't know how.
Notification system in desktop environments need to be checked if they support prompts like it's imagined here, if currently used
notify-send
support this etc.What also needs to be figured is to implement the notification feature without having boilerplate in the code by using some templates or something.
The text was updated successfully, but these errors were encountered: