Gittyup icon indicating copy to clipboard operation
Gittyup copied to clipboard

Support for WSLg?

Open tai1030 opened this issue 3 years ago • 7 comments

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)

tai1030 avatar Jul 08 '22 10:07 tai1030

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

Lfillon avatar Jul 12 '22 10:07 Lfillon

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}'

Murmele avatar Jul 13 '22 07:07 Murmele

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

Lfillon avatar Jul 13 '22 16:07 Lfillon

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...

tai1030 avatar Jul 18 '22 09:07 tai1030

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?

exactly-one-kas avatar Jul 27 '22 22:07 exactly-one-kas

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 /

image

and for some unknown reasons unicode-characters don't work out of box (i've shared C:/Windows/fonts with WSL) image

Some other linux git GUI apps i've tried:

  • gitk ✅ work as expected
  • megit ✅ work as expected after installing missing libswt-gtk-4-java dependency
  • 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/

wving5 avatar Sep 19 '23 11:09 wving5

I've also had issues installing/running the app via Flatpak on WSL.

I found a workaround:

  1. install nix-env
  2. install the gittyup nix package

Works very well in WSL an everywhere else I've tried it.

jensenr30 avatar Apr 22 '24 03:04 jensenr30