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

Feature request: Option to whether a Flatpak should be installed systemwide or for the current user only #170

Open
IverCoder opened this issue Sep 24, 2023 · 8 comments
Assignees

Comments

@IverCoder
Copy link

IverCoder commented Sep 24, 2023

Apparently it is already possible to install apps systemwide as per the Yafti config. So, this feature request is now only for the ability to toggle the location.

It would make sense to install certain apps systemwide. For example, the Clocks, Calculator, and Firefox browser, which is supposed to be used by all users on the system. Installing them is inefficient on bandwidth and storage as they have to be downloaded and stored separately for each user.

I'm thinking of something like:

packages:
- Camera: org.gnome.Snapshot
  default-install-location: system
  - can-be-changed: false
- Grapejuice: net.brinkervii.grapejuice
  default-install-location: user
  - can-be-changed: true

default-install-location determines whether the Flatpak should be installed systemwide or for that user only. This can be either system or user.

- can-be-changed determines whether the user should be allowed to modify the option, for example, setting it to false to force apps like Camera and Calculator to be installed systemwide so no user will be accidentally left without them. This can be true or false. Of course this option wouldn't make sense yet as long as there's no feature to require a certain package to be installed.

@marcoceppi
Copy link
Collaborator

System / User options are available today. Here's an example where the default for a screen can be changed or overridden per-package. Letting users decide is something that's not supported and I'm not sure how best to represent that in the UI

@IverCoder IverCoder changed the title Feature request: Option to install certain Flatpaks systemwide Feature request: Option to whether a Flatpak should be installed systemwide or for the current user only Sep 24, 2023
@IverCoder
Copy link
Author

Oh, my bad. I have updated the PR to acknowledge this.

@marcoceppi
Copy link
Collaborator

Could you update with how you'd expect the user experience for this to look? How would they choose system / user, etc

@IverCoder
Copy link
Author

IverCoder commented Sep 24, 2023

I think it would be as simple as a deop-down where the user can select "user" or "system", and it would be grayed out if can-be-changed is false

@secretmango
Copy link

I dont know GTK that much, but a lever-thing in the bottom left or so, or maybe a top right menu always visible, where you can opt-out of "system-wide" would fit

@abanna
Copy link
Collaborator

abanna commented May 2, 2024

@firefoxlover just wanted to check in and see how things were going.

@abanna abanna self-assigned this May 2, 2024
@abanna
Copy link
Collaborator

abanna commented May 2, 2024

@IverCoder this can be done pretty easy. would like more information though.

@secretmango
Copy link

A lever in a free area, to switch between "install apps only for this user" and "install apps to the system".

Installing apps only for this user is supposed to have some form of security benefit but I dont know which. They cant use privilege escalation, so GPU Screen recorder does not work. I am not sure what others.

Apart from that I see no real point in using user flatpaks, the mentioned increased data usage, and the lack of possible polkit privilege escalation are a bit annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants