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
[Bug]: GIO_USE_VFS gets set to "local" for commands launched via flatpak-spawn #5567
Comments
What is the exact contents of those files on your system? On my Debian system (with a newer flatpak version), it's just
Have you tried using a different terminal emulator? If programs you run from wezterm are inheriting |
I have the same line and I don't think it sets the variable temporarily: Anyway, I found a zsh that had this environment var and it is a child of flatpak-session (as is my interactive shell). Maybe it is setting the var ? |
Please provide the information I asked for: if you suspect
Do you mean it's a child of Does wezterm use If it does, I think it's more likely that this is caused by the |
The files in /etc have the same content as you. Yes, it seems to be the child. I don't know what wezterm does. But it sounds like g_setenv would cause this issue. |
Otherwise, the child process will inherit GIO_USE_VFS=local, breaking its ability to use GVfs and other GIO plugin interfaces. Resolves: flatpak#5567 Signed-off-by: Simon McVittie <smcv@collabora.com>
As I suspected, this seems to be a problem with the services that are used as a backend for |
The use of
Of course if you set
which demonstrates that running a short-lived command with |
A possible workaround would be for your terminal emulator (wezterm) to replace its current use of |
Otherwise, the child process will inherit GIO_USE_VFS=local, breaking its ability to use GVfs and other GIO plugin interfaces. Resolves: flatpak#5567 Signed-off-by: Simon McVittie <smcv@collabora.com>
Otherwise, the child process will inherit GIO_USE_VFS=local, breaking its ability to use GVfs and other GIO plugin interfaces. Resolves: #5567 Signed-off-by: Simon McVittie <smcv@collabora.com>
Otherwise, the child process will inherit GIO_USE_VFS=local, breaking its ability to use GVfs and other GIO plugin interfaces. Resolves: flatpak#5567 Signed-off-by: Simon McVittie <smcv@collabora.com> (cherry picked from commit 6e7eb1e)
Checklist
Flatpak version
1.12.7
What Linux distribution are you using?
Ubuntu
Linux distribution version
Linux LT-IttayD 6.2.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Oct 6 10:23:26 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
What architecture are you using?
x86_64
How to reproduce
I'm using the flatpak installation of wezterm, a terminal emulator.
For some reason, flatpak is started with GIO_USE_VFS=local in its environment (appears in /etc/profile.d/flatpak.sh and /etc/X11/Xsession.d/20flatpak).
Wezterm inherits this and passes to the shell it is running.
This makes gio not work for remote volumes. Unfortunately, the error is obscure ("volume doesn’t implement mount" in gio mount), so not trivial to identify.
I think that if GIO_USE_VFS should be 'local' for flatpak to work, it should not be passed to the processes it runs from packages.
Expected Behavior
the variable should not be passed
Actual Behavior
It is
Additional Information
No response
The text was updated successfully, but these errors were encountered: