-
-
Notifications
You must be signed in to change notification settings - Fork 389
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
Default to user installation #4099
Comments
I agree with this sentiment, especially with the advent of systemd-homed. However, there's always the problem of compatibility. Tools expect Flatpak to default to the system installation. Maybe this can happen at a 2.0 or a big API/ABI break? Also, end-user tools like GNOME Software or Souk can use the user installation on their own terms without Flatpak defaulting to it. That's just not implemented, and in fact user-installed Flatpaks can trip these tools up because they don't expect it (which, IMO, is really bad. I have issues open on these tools to get them to support/default to user installs) |
I think the logic for defaulting to installing apps system-wide is that is how apps are installed on package-based systems (deb/rpm) and therefore the expected behavior. See the discussion here: https://gitlab.freedesktop.org/pwithnall/malcontent/-/issues/30#note_687925 |
I also feel that user-wise installation should be the default |
Just been searching google to find out how to make flatpak use the --user flag by default. I was expecting to find a configuration file somewhere. Adding this comment to support this issue tho. |
If you want Flatpak to default to installing to your user installation, you can simply only configure remotes in your user installation. The Flatpak CLI will then use the user installation without requiring you specify That is assuming you have control over the whole system. If it's a case where the sys admin has configured remotes in the system-wide installation and you want to have your own Flatpaks in the per-user one, I can understand why you'd want to be able to default to per-user rather than system-wide. But (a) there's a reason Flatpak defaults to system-wide, (b) the idea of a config file has been discussed and rejected in #2887, (c) it's not possible to change the default without breaking backwards compatibility, and (d) multi-user systems where you have a sys admin controlling the system-wide installation are probably rare anyway. So I don't really see this issue going anywhere... |
Hi, I've been running an OSTree system build using OCI for a while. With a move towards immutability on the desktop as represented by Fedora Silverblue picking up in popularity and projects like uBlue (disclaimer: I'm a contributor) coming out I think it would be a good time to reset this default to a more saner (immutable-er) default. I've been running flatpak --user for years and I have never run into any issues so it seems quality-wise the software is quite ready. |
Where the rejection is:
But the "solution" to this problem is:
Is the issue with me, or does this just not make any sense? I started looking into this issue because I was surprised that I couldn't find the binary of an installed program in my home, but I thought there was just no way flatpak could have installed it anywhere else, I never ran it with sudo.
I don't want this to be perceived as too much of a rant, I applaud what was achieved by Flatpak, but I'm really stunned how did it get away with breaking down basic multi-user principles and expectations simply because desktop setups happen to be single-user nowadays. |
@adrm, as long as the user can retroactively choose to modify their installation of |
I would like the option to default to user, without the need to disable the system wide flatpak repos. I state this as it allows for you to allow some apps to stay system wide and allow per user apps as well. |
Linux distribution and version
All
Flatpak version
All
Description of the problem
As a normal home user of flatpak, it doesn't makes sense to me that all flatpak commands are run at the system level by default. In a shared computer, or single-user computer, there is no need for system-wide installations or updates.
Since as far as I understand the private user is the target user of flatpak, it seems to me that it is a saner default that flatpaks are installed on the user level so that:
I am suggesting this from the perspective of an user, so there might be other reasons for this default which I don't know, but this kind of defaults trickle down to final-user tools like Gnome Software and others, and that is why I think it is important to set the best possible defaults.
The text was updated successfully, but these errors were encountered: