Support for WSLg?
I would like to ask, it Gittyup (Linux build) support on WSLg?
When I try to run the application, it throw below error:
tai@Tai-Notebook:~$ flatpak run com.github.Murmele.Gittyup
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
WSL Distro: Ubuntu 20.04.4 LTS Windows 11 21H2 (10.0.22000.778)
Exactly the same problem on Centos 7
During installation of Gittyup via flatpak, I have this message too :
flatpak install: Not exporting file com.github.Murmele.Gittyup.appdata.xml of unsupported type.
the latest version of flatpak on Centos 7 is 1.0.9
Do Centos 7 uses wayland or x11?
can you show me the output of:
loginctl show-session $(awk '/tty/ {print $1}' <(loginctl)) -p Type | awk -F= '{print $2}'
The command doesn't show anything.
I tried to verify $XDG_SESSION_TYPE and also nothing.
I found on internet that wayland uses $WAYLAND_DISPLAY and X11 uses $DISPLAY and after verify environnement variables, I found I only have $DISPLAY, so I conclude that Centos uses X11
Maybe the fact that the Centos is running on a distant server and I access it via ssh explain the result of command, I don't know
I can try other things if you want but I won't be able to do anything before next monday
I am using Docker with WSL2 backend as my local development environment, it provide better performance than Hyper-V as Docker backend. Due to local development purpose, I need to mount the sourcecode folder from Host to Container.
To prevent filesystem I/O high latency issue, the sourcecode must put inside WSL Linux file system (e.g. /home/my-project) instead of Windows file system (e.g. C:\Users\me\my-project). In this situation, I need a powerful Git management tools which support Linux like Gittyup to manage my sourcecode inside Linux filesystem.
That's why I think it is important to support WSLg (WSL GUI) for Gittyup. I think a lot of Windows+Docker users are facing to this problem currently. They can choose to giveup WSL as Docker backend, or just simply use Git CLI instead...
qt.qpa.xcb: could not connect to display
@tai1030 do other applications (eg xterm) run properly? Does running flatpak run --socket=x11 com.github.Murmele.Gittyup help?
I've got exact the same error msg as OP, and managed to workaround it through sudo -i flatpak run com.github.Murmele.Gittyup .
But in the file explorer of Open exsiting repository, some folders like home are missing under the root path / ...
[Click Me] Screenshot for some folders missing under /
and for some unknown reasons unicode-characters don't work out of box (i've shared C:/Windows/fonts with WSL)
Some other linux git GUI apps i've tried:
- gitk ✅ work as expected
-
megit ✅ work as expected after installing missing
libswt-gtk-4-javadependency - Gitnuro - Unicode characters also got garbled
Env
WSL2 Distro: Ubuntu 20.04.3 LTS Windows 11 22H2 (10.0.22621.2283)
and in WSL2 shell
locale: LANG/LANGUAGE/LC_* => en_US.UTF-8
$WAYLAND_DISPLAY => wayland-0
$DISPLAY => :0
Ref
- intro WSL GUI apps https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps
- perf issue when file I/O crossing WSL<->Windows https://stackoverflow.com/questions/64690483/why-is-git-on-wsl2-with-soucetree-so-slow-for-me
- sharing Windows Unicode fonts https://x410.dev/cookbook/wsl/sharing-windows-fonts-with-wsl/
I've also had issues installing/running the app via Flatpak on WSL.
I found a workaround:
- install nix-env
- install the gittyup nix package
Works very well in WSL an everywhere else I've tried it.