-
Notifications
You must be signed in to change notification settings - Fork 855
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
Flatpak cannot be used normally after the built-in Systemd support is enabled #9119
Comments
This may be related to your #9118, insofar as flatpak, at least for me, uses a user systemd service ( Another possibility that might be worth looking into is that it might be related to the setup of /dev/shm and /run/shm under WSL, in which by default the private shared memory tmpfs is mounted at /run/shm and /dev/shm is a symbolic link to it, rather than the other way around, which is the normal arrangement when running under systemd. If so, reversing this with something like this systemd service unit:
may get it up and running. I can confirm that flatpak can be made to work under WSL, so one of these fixes seems likely to be the needful. |
|
No argument there, but systemd support under WSL is still in the early days. There are issues open here for both of these problems specifically, the user sessions/dbus at #8842 and the /dev/shm issue at #8996, FYI. |
sudo apt update && sudo apt upgrade -y
sudo apt install gnome-text-editor gimp vlc nautilus x11-apps -y
sudo apt install flatpak
sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
sudo flatpak install flathub org.mozilla.firefox
flatpak run org.mozilla.firefox |
Version
Microsoft Windows [版本 10.0.22621.755]
WSL Version
Kernel Version
5.15.68.1
Distro Version
Ubuntu 22.04
Other Software
chromium, version 107.0.5304.87 . Refer to https://flathub.org/apps/details/org.chromium.Chromium .
Repro Steps
/etc/wsl.conf
and restart the WSL instance to turn on systemd support.sudo apt update && sudo apt upgrade -y sudo apt install flatpak sudo apt install gnome-software-plugin-flatpak sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo sudo flatpak install flathub org.chromium.Chromium
Expected Behavior
Actual Behavior
flatpak run org.chromium.Chromium
, I saw some error and unable to start the application normally.If I execute
sudo flatpak run org.chromium.Chromium
, I will see another error log.In fact, I also experimented https://flathub.org/apps/details/com.tencent.wemeet And https://flathub.org/apps/details/com.google.Chrome , can not be started normally.
Diagnostic Logs
The text was updated successfully, but these errors were encountered: