wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
17.81k stars 798 forks source link

Long startup times, weird messages in log #6197

Open tsoernes opened 1 month ago

tsoernes commented 1 month ago

What Operating System(s) are you seeing this problem on?

Linux Wayland

Which Wayland compositor or X11 Window manager(s) are you using?

KDE Plasma Kwin

WezTerm version

wezterm 20240922_151228_2b76c63b

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

Starting wezterm takes like 5-10 seconds. There are hundres of lines like this in journalctl sep. 26 10:00:21 D2S3Q34 kwin_wayland[3266]: kf.config.core: "KConfigIni: In file /usr/bin/wezterm-gui, line 1:" Invalid entry (missing '=')

To Reproduce

Fresh system boot, start up wezterm

Configuration

local wezterm = require 'wezterm'
local act = wezterm.action

return {
  --scrollback_lines = 5000
  --
  -- color_scheme = 'Wombat',
  -- Color scheme from "Tilix",
  colors = {
    foreground = "#F8F8F2",
    background = "#282936",
    cursor_bg = "#F8F8F2",
    cursor_border = "#F8F8F2",
    cursor_fg = "#282936",
    selection_bg = "#44475a",
    selection_fg = "#f8f8f2",

    ansi = {"#000000", "#FF5454", "#50FA7B", "#F1FA8C", "#BD93F9", "#FF79C6", "#8BE8FD", "#BFBFBF"},
    brights = {"#4D4D4D", "#FF6E67", "#5AF78D", "#F4F99D", "#CAA8FA", "#FF92D0", "#9AEDFE", "#E6E6E6"},
  },

  keys = {
    -- Open a new tab with Ctrl + T
    {key="t", mods="CTRL", action=act.SpawnTab("DefaultDomain")},

    -- Close the current pane with Ctrl + w
    {key="w", mods="CTRL", action=act.CloseCurrentPane{confirm=false}},

    -- Close the current tab and all panes withing it with Ctrl + W
    {key="W", mods="CTRL|SHIFT", action=act.CloseCurrentTab{confirm=true}},

    -- Switch to the next tab with Ctrl + Tab
    {key="Tab", mods="CTRL", action=act.ActivateTabRelative(1)},

    -- Switch to the previous tab with Ctrl + Shift + Tab
    {key="Tab", mods="CTRL|SHIFT", action=act.ActivateTabRelative(-1)},

    -- Split the current pane horizontally with Ctrl + Shift + S
    {key="S", mods="CTRL|SHIFT", action=act.SplitHorizontal{domain="CurrentPaneDomain"}},

    -- Split the current pane vertically with Ctrl + Shift + V
    {key="V", mods="CTRL|SHIFT", action=act.SplitVertical{domain="CurrentPaneDomain"}},

    -- Move between panes with Ctrl + Shift + Arrow keys
    {key="LeftArrow", mods="CTRL|SHIFT", action=act.ActivatePaneDirection("Left")},
    {key="RightArrow", mods="CTRL|SHIFT", action=act.ActivatePaneDirection("Right")},
    {key="UpArrow", mods="CTRL|SHIFT", action=act.ActivatePaneDirection("Up")},
    {key="DownArrow", mods="CTRL|SHIFT", action=act.ActivatePaneDirection("Down")},

    -- Scroll up 1 line with Shift + Up-Arrow
    {key="UpArrow", mods="SHIFT", action=wezterm.action{ScrollByLine=-1}},
    {key="DownArrow", mods="SHIFT", action=wezterm.action{ScrollByLine=1}},
  },
}

Expected Behavior

No response

Logs

Debug Overlay wezterm version: 20240922_151228_2b76c63b x86_64-unknown-linux-gnu Window Environment: Wayland Lua Version: Lua 5.4 OpenGL: Mesa Intel(R) Graphics (RPL-U) 4.6 (Compatibility Profile) Mesa 24.1.7 Enter lua statements or expressions and hit Enter. Press ESC or CTRL-D to exit 10:00:24.748 ERROR mux::ssh_agent > failed to set "/run/user/1000/wezterm/agent.4800" to initial inherited SSH_AUTH_SOCK value of "/run/user/1000/ssh-agent.socket": failed to create symlink /run/user/1000/wezterm/agent.4800 -> /run/user/1000/ssh-agent.socket: No such file or directory (os error 2)

Anything else?

No response

ninjalj commented 1 month ago

That would be kwin bug https://bugs.kde.org/show_bug.cgi?id=492584, fixed on kwin 6.2