Skip to content
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

Lite-xl not show #41180

Open
superiums opened this issue Dec 19, 2022 · 9 comments
Open

Lite-xl not show #41180

superiums opened this issue Dec 19, 2022 · 9 comments
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed

Comments

@superiums
Copy link

Is this a new report?

Yes

System Info

void 6.0.10_1 glibc

Package(s) Affected

lite-xl-2.1.0_1

Does a report exist for this bug with the project's home (upstream) and/or another distro?

no error output.

Expected behaviour

a window to be shown

Actual behaviour

no gui appear

Steps to reproduce

  1. switch to a wayland session (it's not tested in x11 session)
  2. install and run lite-xl in terminal
  3. no gui and no errors appear.
@superiums superiums added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels Dec 19, 2022
@classabbyamp
Copy link
Member

classabbyamp commented Dec 19, 2022

lite-xl/lite-xl#449 seems to indicate you need to do SDL_VIDEODRIVER=wayland lite-xl

@superiums
Copy link
Author

SDL_VIDEODRIVER=wayland lite-xl

I've tried this, and not work.

@superiums
Copy link
Author

superiums commented Dec 20, 2022

i've also tried to run as x11 , like this

GDK_BACKEND=x11 lite-xl

but also failed.

@oliver-cfc
Copy link
Contributor

Not sure what else I can provide, but lite-xl works for me on wayland/sway [ Void 6.1.1_1 x86_64 GenuineIntel uptodate rDFFFFFF ]
If you want any of my env settings, let me know

@Sqvid
Copy link
Contributor

Sqvid commented Dec 23, 2022

I tried to test this issue.
I am using sway [Linux 6.0.15_1 #1 SMP PREEMPT_DYNAMIC Thu Dec 22 14:24:59 UTC 2022 x86_64 GNU/Linux]

The GUI does show up for me with SDL_VIDEODRIVER=wayland lite-xl But it segfaults soon after a seemingly non-deterministic number of clicks.

I am unable to reproduce @superiums error. @oliver-cfc Maybe you can click around the application a bit? Does it segfault?

@oliver-cfc
Copy link
Contributor

@Sqvid - after about 5 minutes of opening files, clicking settings, creating new files and editing files I was unable to cause it to crash.

@superiums
Copy link
Author

superiums commented Dec 27, 2022

Thanks for your attention, dear Sqvid and oliver-cfc.

i've tried it more and found this was related to my dbus session enviroment at last.

this is my session start script:

  1. way 1
#!/bin/sh

# dbus
export $(dbus-launch)

# IME
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
export GLFW_IM_MODULE=ibus

# openCV
export OPENCV_LOG_LEVEL=ERROR

#voidLiinux doc
export QT_QPA_PLATFORM=wayland-egl
export ELM_DISPLAY=wl
export SDL_VIDEORIVER=wayland

# firefox
export MOZ_ENABLE_WAYLAND=1

# Session
export DESKTOP_SESSION=wayland
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=Wayfire
export XDG_CURRENT_DESKTOP=Wayfire

# Wayland stuff
export MOZ_ENABLE_WAYLAND=1
export QT_QPA_PLATFORM=wayland
export SDL_VIDEODRIVER=wayland
export _JAVA_AWT_WM_NONREPARENTING=1

# exec dbus-launch --exit-with-session wayfire $@
exec wayfire $@
  1. way 2
#!/bin/sh

# dbus
export $(dbus-launch)

# IME
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
export GLFW_IM_MODULE=ibus

# openCV
export OPENCV_LOG_LEVEL=ERROR

#voidLiinux doc
export QT_QPA_PLATFORM=wayland-egl
export ELM_DISPLAY=wl
export SDL_VIDEORIVER=wayland

# firefox
export MOZ_ENABLE_WAYLAND=1

# Session
export DESKTOP_SESSION=wayland
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=sway
export XDG_CURRENT_DESKTOP=sway

# Wayland stuff
export MOZ_ENABLE_WAYLAND=1
export QT_QPA_PLATFORM=wayland
export SDL_VIDEODRIVER=wayland
export _JAVA_AWT_WM_NONREPARENTING=1

# exec dbus-launch --exit-with-session sway $@
exec sway $@
  1. way 3: directly type wayfire
  2. way 4: directly type sway

the result is :

@devlocalhost
Copy link

screen-291222-114949
Works fine for me on gnome (Wayland, not xwayland) and dwm (xorg). The only env variable I'm using is QT_QPA_PLATFORM="wayland-egl"

@superiums
Copy link
Author

I tried to test this issue. I am using sway [Linux 6.0.15_1 #1 SMP PREEMPT_DYNAMIC Thu Dec 22 14:24:59 UTC 2022 x86_64 GNU/Linux]

The GUI does show up for me with SDL_VIDEODRIVER=wayland lite-xl But it segfaults soon after a seemingly non-deterministic number of clicks.

I am unable to reproduce @superiums error. @oliver-cfc Maybe you can click around the application a bit? Does it segfault?

does your gvfs and fcitx on chrome/electron works ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed
Projects
None yet
Development

No branches or pull requests

5 participants