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 ] Config file for flatpak env #2933
Comments
Another similar thing that could use a flatpak-specific config method is default installation (user / system). In QubesOS template-based VMs have only part of the system persistent (/home and few other directories). It would make sense to make flatpak default to Right now the only option (I know of) is to add a wrapper script that:
This is very fragile solution, as it needs to follow flatpak options changes, avoid conflicts (for example when the user provide such option too) etc. Also, I'm not sure if it will work if flatpak app is installed through GUI like GNOME Software. |
This comment has been minimized.
This comment has been minimized.
The point is to configure proxy for flatpak itself (downloading applications), not flatpak application. |
Ah misunderstanding. |
The more we push into config files, the less predictable the behavior is. |
I see your argument, also in #2887, but I think it is flawed. While You suggested a wrapper script in #2887. This will work, but I think it is more confusing. For example, Just to be clear, we're happy to implement this feature, but want to discuss what would be acceptable option. We want to use it for default configuration at distribution level. |
Totally agree. On my system I explicitly disabled the system repo by clearing it our and making
but it means that all my .desktop files won't use
If I could set an evinronment variable for my user session then any invocations of |
So you mutilated the flatpak installation, and you are not happy that flatpak complains about that?! |
I explicit don't want a system wide install. It's not simply good enough to remove it because flatpak will create it again, so I had to do this, yes.
I would be ok if it complained about it with a warning message and continued on to the user installation, but it doesn't. It errors out. I should probably open a bug requesting it do that. |
Up to what I can read on flatpak configuration and execution, it is not possible to give a specific configuration file for setting specific 'flatpak config *' or environment variables. From what I'm seeing, 'flatpak config' currently allow to only set 'languages' option but we could imagine to setup more config options and store this into a file.
As a matter of example, 'http_proxy' variable could be set differently for flatpak instead of using the global one. Notably, 'dnf' and 'apt' allows to handle such variable in a configuration file.
As a matter of context: in QubesOS, we want to set it depending on VM type (the "same" system started in different instances) and only for flatpak, not all applications.
For more precision, I kindly invite you to have a look on https://www.qubes-os.org/doc/software-update-vm/#updates-proxy motivation for such feature.
The text was updated successfully, but these errors were encountered: