I wanted to comment that I face exactly the same problem and Flavio's patch is the only way I have found to fix this properly ie have one .profile that is shared across various login types.
Thanks Will On Mon, 19 Apr 2021 16:39:51 +0200 =?UTF-8?Q?Fl=C3=A1vio_Amieiro?= <flavioamie...@gmail.com> wrote: > From 9473a37c5b5f44485d07718adbe85ee2c194a1f6 Mon Sep 17 00:00:00 2001 > From: Flavio Amieiro <amieiro.fla...@gmail.com> > Date: Mon, 19 Apr 2021 16:08:27 +0200 > Subject: [PATCH] Uses login shell on sway.desktop > > --- > sway.desktop | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sway.desktop b/sway.desktop > index 420db5aa..538fbffb 100644 > --- a/sway.desktop > +++ b/sway.desktop > @@ -1,5 +1,5 @@ > [Desktop Entry] > Name=Sway > Comment=An i3-compatible Wayland compositor > -Exec=sway > +Exec=/bin/sh -l -c sway > Type=Application > -- > 2.30.2 >