From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ILnkGbPIUmDkBwAA0tVLHw (envelope-from ) for ; Thu, 18 Mar 2021 03:27:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QF+bFbPIUmAfQwAAB5/wlQ (envelope-from ) for ; Thu, 18 Mar 2021 03:27:47 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AC6AE2F2C3 for ; Thu, 18 Mar 2021 04:27:46 +0100 (CET) Received: from localhost ([::1]:45966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMjK4-0006qZ-6O for larch@yhetil.org; Wed, 17 Mar 2021 23:27:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMjJY-0006Qm-83 for help-guix@gnu.org; Wed, 17 Mar 2021 23:27:12 -0400 Received: from elegua.eauchat.org ([91.224.149.118]:57162 helo=eauchat.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMjJW-0007Pc-Iy for help-guix@gnu.org; Wed, 17 Mar 2021 23:27:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eauchat.org; s=mail; t=1616038025; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=pBkeXULtohA2FNy81NHlJWhyRUM6vzVEX9k0iVlA8B8=; b=EIwSdsbHiuP6QerqC8nLwPLEmNJ7xDSvgAwqd+Ax3URHQhF6nvF0tM42uYDg+XNjLh+bCV nCiWgVKuqg5EUN20XXl3r8/1TuXtYNvvpvvzdBJTen+ziG35hRFu3uOX7LTUOiQfRIK7N5 khxU5qlBVv21bGzAkEheiCFLWqM48Gg= From: =?utf-8?Q?S=C3=A9bastien?= Lerique To: help-guix@gnu.org Subject: DBus with SDDM, Sway, and optionally fish Date: Thu, 18 Mar 2021 12:26:08 +0900 Message-ID: <87o8fhcfcf.fsf@eauchat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=91.224.149.118; envelope-from=sl@eauchat.org; helo=eauchat.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616038067; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=pBkeXULtohA2FNy81NHlJWhyRUM6vzVEX9k0iVlA8B8=; b=TOzzXva10/CpvvAQr3+3ov+52yNAWLuLzUDl7wYfjSodw6aNU4WZsCxBTL228xSsGZok1A kPeOMB0xkLvGjA4ujPKx0KG0G6ZW+8NM820fvOhZGsRrxPD33lIJf4V5hTE8SkNiJu62rC iAQ68Y/IQuNbiBXNOnnXbDVI+CxRRXRUdViqafPA9Nx8sDc4D2o7YgCCu9sE04zEXgzHr6 5o031bLsu2s+M63vaDVh+j7MizC5ghG0pStR85S42pW5qTf/HQHGvx/dHRncoAWKvr2eo5 5GoWbM2sxwYwNr9dH6ng22q2/zcpZCS/I2xjUUQJi/Q1yOIY4HL7yPhr9uv10A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616038067; a=rsa-sha256; cv=none; b=L9yUsMlYn6VKQv7iQS2ybuf8A4QwHduJysxT40ogJAV3clin5ychjwdVfxQbayQq3tARO9 cVaI7tHQrfRZZRRDa2ZbMb60+L5sPEQm5mLE9yEmzAqZvSooYLR+ZPS/r5EFaratMk2M73 qLXIggFH6SxQEFYBd5VrIRJor4+MLdOwUcRfmlOYSp1o9IS5IBXKqPOHlQhxFM0WTeAXA8 h+IRz80+wqVJWEAVjD2RQ3rqIOFda01v6winQlFoAatMWSmGgGcA2a5sC4lhmAdUgM+YPO gNeWNUr+RHNNf06V/OEKTYffcvzytnLQU2UyLBP7ajoYXqJP2ML9EThqqje7kw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=eauchat.org header.s=mail header.b=EIwSdsbH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=eauchat.org (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -0.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=eauchat.org header.s=mail header.b=EIwSdsbH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=eauchat.org (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: AC6AE2F2C3 X-Spam-Score: -0.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: JY7q1IW0D9Gx Dear all, I use SDDM with (display-server "wayland"), and Sway as my main=20 window manager. My current configuration files are here: - system configuration:=20 https://gitlab.com/wehlutyk/guix-config/-/blob/master/config.scm - main profile:=20 https://gitlab.com/wehlutyk/guix-config/-/blob/master/sl-manifest.scm - dot files: https://gitlab.com/wehlutyk/dotfiles I've been struggling to get the DBUS_SESSION_BUS_ADDRESS variable=20 to be set by SDDM, as it does not seem to set it by default. The=20 current script that SDDM runs before starting Sway is=20 https://github.com/sddm/sddm/blob/master/data/scripts/wayland-session=20 , and I haven't found any other setup step which might be a source=20 for enviroment variables inside Sway. (Somehow environment variables set in=20 `.config/environment.d/*.conf` also get set, but I don't know how=20 or where that happens.) In the default configuration, DBUS_SESSION_BUS_ADDRESS is=20 therefore not set inside Sway, which leads to a number of problems=20 (e.g. nautilus can't read the Trash system). One can set the value of DBUS_SESSION_BUS_ADDRESS produced by=20 `dbus-launch --sh-syntax` in `.profile` (=20 https://gitlab.com/wehlutyk/dotfiles/-/blob/master/.profile#L9 ),=20 which is then sourced by `wayland-session` if the shell is bash.=20 In my case my shell is fish, and the way `wayland-session` calls=20 fish doesn't make it export the variables exported by `.profile`.=20 For that a small patch to `wayland-session` works, which I ended=20 up using:=20 https://gitlab.com/wehlutyk/guix-config/-/commit/5105ab1bea7f8233de5dffc053= f794ae69822acd With the two changes above (setting DBUS_SESSION_BUS_ADDRESS in=20 .profile, and patching wayland-session), apps can connect to dbus=20 inside Sway. But this seems extremely hacky. Is there maybe a=20 better way to make sure SDDM+Sway(+fish) is set up properly as a=20 desktop enviroment? Is it time to make a=20 `sway-desktop-service-type`? Happy hacking, S=C3=A9bastien