{"action":"created","issue":{"url":"https://api.github.com/repos/swaywm/sway/issues/2965","repository_url":"https://api.github.com/repos/swaywm/sway","labels_url":"https://api.github.com/repos/swaywm/sway/issues/2965/labels{/name}","comments_url":"https://api.github.com/repos/swaywm/sway/issues/2965/comments","events_url":"https://api.github.com/repos/swaywm/sway/issues/2965/events","html_url":"https://github.com/swaywm/sway/issues/2965","id":373518446,"node_id":"MDU6SXNzdWUzNzM1MTg0NDY=","number":2965,"title":"wayland compatible terminals don't start without xwayland","user":{"login":"praetorian55","id":44439093,"node_id":"MDQ6VXNlcjQ0NDM5MDkz","avatar_url":"https://avatars1.githubusercontent.com/u/44439093?v=4","gravatar_id":"","url":"https://api.github.com/users/praetorian55","html_url":"https://github.com/praetorian55","followers_url":"https://api.github.com/users/praetorian55/followers","following_url":"https://api.github.com/users/praetorian55/following{/other_user}","gists_url":"https://api.github.com/users/praetorian55/gists{/gist_id}","starred_url":"https://api.github.com/users/praetorian55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praetorian55/subscriptions","organizations_url":"https://api.github.com/users/praetorian55/orgs","repos_url":"https://api.github.com/users/praetorian55/repos","events_url":"https://api.github.com/users/praetorian55/events{/privacy}","received_events_url":"https://api.github.com/users/praetorian55/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-24T14:40:03Z","updated_at":"2018-10-25T19:16:55Z","closed_at":null,"author_association":"NONE","body":"Both gnome-terminal and terminator do not start without xwayland installed when called via exec in the config.  Interestingly enough, executing them from an ssh session after sway was already started does cause them to open on the display.  Both open as expected when xwayland is installed\r\n\r\nI have also tried setting GDK_BACKEND=wayland via script, and when executing the terminal directly (GDK_BACKEND=wayland gnome-terminal)\r\n\r\n\r\n_sway version 1.0-beta.1-31-ge33671fd (Oct 23 2018, branch 'master')_\r\n\r\n[config.txt](https://github.com/swaywm/sway/files/2510957/config.txt)\r\n[sway.log](https://github.com/swaywm/sway/files/2510954/sway.log)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/swaywm/sway/issues/comments/433172751","html_url":"https://github.com/swaywm/sway/issues/2965#issuecomment-433172751","issue_url":"https://api.github.com/repos/swaywm/sway/issues/2965","id":433172751,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzE3Mjc1MQ==","user":{"login":"mteyssier","id":3966270,"node_id":"MDQ6VXNlcjM5NjYyNzA=","avatar_url":"https://avatars0.githubusercontent.com/u/3966270?v=4","gravatar_id":"","url":"https://api.github.com/users/mteyssier","html_url":"https://github.com/mteyssier","followers_url":"https://api.github.com/users/mteyssier/followers","following_url":"https://api.github.com/users/mteyssier/following{/other_user}","gists_url":"https://api.github.com/users/mteyssier/gists{/gist_id}","starred_url":"https://api.github.com/users/mteyssier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mteyssier/subscriptions","organizations_url":"https://api.github.com/users/mteyssier/orgs","repos_url":"https://api.github.com/users/mteyssier/repos","events_url":"https://api.github.com/users/mteyssier/events{/privacy}","received_events_url":"https://api.github.com/users/mteyssier/received_events","type":"User","site_admin":false},"created_at":"2018-10-25T19:16:55Z","updated_at":"2018-10-25T19:16:55Z","author_association":"CONTRIBUTOR","body":"It might actually explain why I couldn't start termite on the first try, just after installing sway.\r\nThanks for the report!\r\n\r\nI uninstalled xwayland to run some tests (using termite instead of gnome-terminal or terminator):\r\n\r\nUsing sway:\r\n- indeed termite doesn't start if called via exec in the config\r\n- weston-terminal starts fine in sway!\r\n- lauching termite from a weston-terminal: termite doesn't return and doesn't display any window.\r\n- strace on termite: it is stuck on `connect(... \"/tmp/.X11-unix/X0\")`.\r\n\r\nUsing weston:\r\n- both weston-terminal and termite are running fine.\r\n\r\nThe key is the `DISPLAY` environment variable.\r\nIt is not set by weston. (And is not set in your ssh session, right?)\r\n\r\nYou can try to unset the `DISPLAY` variable (via script?) and your terminal should run fine, something like:\r\n`env -u DISPLAY termite` or just `unset DISPLAY` before.\r\n\r\nAnyway the `DISPLAY` variable shouldn't be set, should it?\r\n\r\nI just skimmed through the code but it looks like a wlroots issue, not  handling the error producing `[xwayland/xwayland.c:144] failed to exec Xwayland: No such file or directory` and thus not  unsetting `DISPLAY`.\r\n\r\nAfter a quick glance at sway/server.c, currently sway would not properly handle this kind of error anyway (if compiled with `HAVE_XWAYLAND`)."}}
{"actor":{"display_login":"mteyssier"}}