unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Jack Hill <jackhill@jackhill.us>
To: 52031@debbugs.gnu.org
Subject: bug#52031: gnome-terminal fails to start under sway on core-updates-frozen
Date: Mon, 22 Nov 2021 14:59:13 -0500 (EST)	[thread overview]
Message-ID: <alpine.DEB.2.21.2111221402530.13935@marsh.hcoop.net> (raw)
In-Reply-To: <alpine.DEB.2.21.2111220005430.13935@marsh.hcoop.net>

On Mon, 22 Nov 2021, Jack Hill wrote:

> Hi Guix,
>
> With core-updates-frozen commit b033079e47357dcf77ebeeb52b0a5306cd6aa982 
> gnome-terminal fails to start under sway either as launched from gdm or 
> directly from a vt with `dbus-run-session sway`.
>
> ```
> $ gnome-terminal
> # Error constructing proxy for 
> org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling 
> StartServiceByName for org.gnome.Terminal: Process org.gnome.Terminal exited 
> with status 10
> ```
>
> It works correctly in a gnome session.

Josselin Poiret determined [0] that the root cause of this behavior is 
that gnome-terminal is being launched via dbus, but the bus doesn't know 
about the wayland display, so can't start graphical applications. 
Everything works as expected if dbus is told about the display, which can 
be done by adding the following like to the sway configuration:

```
exec dbus-update-activation-environment WAYLAND_DISPLAY
```

In my judgment, this issue shouldn't hold up the core-updates-frozen 
merge, but it would be nice to improve the out-of-the-box sway experience 
in the future. A possible way I see is a sway service type that puts the 
necessary configuration in /etc/sway/conf.d or otherwise installs a 
session .desktop file that performs the necessary setup.

[0] https://logs.guix.gnu.org/guix/2021-11-22.log#172513

Thoughts?
Jack




      reply	other threads:[~2021-11-22 20:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-22  5:10 bug#52031: gnome-terminal fails to start under sway on core-updates-frozen Jack Hill
2021-11-22 19:59 ` Jack Hill [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.21.2111221402530.13935@marsh.hcoop.net \
    --to=jackhill@jackhill.us \
    --cc=52031@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).