From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: libgtk3-nocsd and LD_PRELOAD Date: Fri, 08 Feb 2019 22:58:01 +0100 Message-ID: <87lg2qvt7a.fsf@gnu.org> References: <20190205222541.54303e66@alma-ubu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:46390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsE9y-00066m-Li for guix-devel@gnu.org; Fri, 08 Feb 2019 16:58:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gsE9x-0004Js-KY for guix-devel@gnu.org; Fri, 08 Feb 2019 16:58:10 -0500 Received: from hera.aquilenet.fr ([2a0c:e300::1]:47994) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gsE9x-0004Eh-Dt for guix-devel@gnu.org; Fri, 08 Feb 2019 16:58:09 -0500 In-Reply-To: <20190205222541.54303e66@alma-ubu> (=?utf-8?Q?=22Bj=C3=B6rn?= =?utf-8?Q?_H=C3=B6fling=22's?= message of "Tue, 5 Feb 2019 22:25:41 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?utf-8?Q?Bj=C3=B6rn_H=C3=B6fling?= Cc: guix-devel Hello Bj=C3=B6rn! Bj=C3=B6rn H=C3=B6fling skribis: > I'm using Guix on top of Ubuntu. Error appears when using programs > installed from Guix. After some investigations, I found out this > environment variable is set in: > > /etc/X11/Xsession.d/51gtk3-nocsd-detect > > *) > # not GNOME, and the user didn't specify GTK_CSD > # themselves, so set it to 0 > if [ -z "$GTK_CSD" ] ; then > GTK_CSD=3D0 > fi > export GTK_CSD > if [ x"$GTK_CSD"x =3D x"0"x ] ; then > export > LD_PRELOAD=3D"libgtk3-nocsd.so.0${LD_PRELOAD:+:$LD_PRE fi > ;; > > I'm currently using a non-GNOME windowing environment, so I'm in this cas= e. > > The library is this: > > https://github.com/PCMan/gtk3-nocsd > > It should make some things nicer if you don't use GNOME. This seams to > be a hack. Do we need this library in Guix too, to get some decorations > back? Regardless of what this library does, if you need to preload it for Guix-built applications, then this library should also be built from Guix (otherwise you end up with several libcs, etc. in the same process, which is never a good thing.) So I=E2=80=99d recommend packaging this library and then you can hopefully preload at will. :-) HTH! Ludo=E2=80=99.