Daemon icon indicating copy to clipboard operation
Daemon copied to clipboard

Console: first "/" after opening the console is lost.

Open ckol opened this issue 2 years ago • 7 comments

Immediately after opening the console window when a "/" is typed to issue a command, the "/" doesn't get into the console. A second "/" then appears as expected. OS: Arch Linux (latest). xorg, xfce4.

ckol avatar Dec 27 '22 20:12 ckol

Does this happen with something else than xorg too?

sweet235 avatar Jan 15 '23 10:01 sweet235

Hi, Sweet!

On 1/15/23 11:24, sweet235 wrote:

Does this happen with something else than xorg too?

I cannot test that. Have unv. only on this one Linux System up and running.

If you point me to source code, I can try to find out more.

Greets,

Clemens

On 1/15/23 11:24, sweet235 wrote:

Does this happen with something else than xorg too?

— Reply to this email directly, view it on GitHub https://github.com/DaemonEngine/Daemon/issues/772#issuecomment-1383112792, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC7ABSX7CN3J6GJMSGEWTMDWSPF4ZANCNFSM6AAAAAATKV2S6Q. You are receiving this because you authored the thread.Message ID: @.***>

ckol avatar Jan 17 '23 15:01 ckol

One simple way to test that with a wayland compositor could be to

  • install cage (pacman -S cage I guess)
  • go to a tty (using e.g. ctrl-alt-f3)
  • login as your regular user
  • run env SDL_VIDEODRIVER=wayland cage -- unvanquished in that tty
  • [do the test inside unvanquished]

I'm not sure which command is used to start Unv for you. It may be unvanquished if you used the AUR or something such as .local/share/unvanquished/daemon if you used the installer, just make sure to put cage -- before.

necessarily-equal avatar Jan 17 '23 19:01 necessarily-equal

If your session is natively wayland, running the game with the SDL_VIDEODRIVER=wayland environment variable is enough to make it run natively.

cu-kai avatar Jan 17 '23 19:01 cu-kai

The easy (and bloaty) way to try wayland would be to install kde or gnome, and choose wayland in the session chooser menu at login.

sweet235 avatar Jan 17 '23 19:01 sweet235

FYI, this alone is not enough. Even if your session is native, Daemon will still run in xwayland. You must explicitly run it with the SDL_VIDEODRIVER=wayland variable.

cu-kai avatar Jan 17 '23 19:01 cu-kai

@cu-kai thanks, forgot about that. I've updated my answer accordingly.

necessarily-equal avatar Jan 17 '23 23:01 necessarily-equal