From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wK2wGPnDvmDc9QAAgWs5BA (envelope-from ) for ; Tue, 08 Jun 2021 03:12:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id RmrvE/nDvmDzHgAA1q6Kng (envelope-from ) for ; Tue, 08 Jun 2021 01:12:25 +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 6A8AD25253 for ; Tue, 8 Jun 2021 03:12:24 +0200 (CEST) Received: from localhost ([::1]:56270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqQI2-0004QH-0u for larch@yhetil.org; Mon, 07 Jun 2021 21:12:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqQHi-0004Q3-Hv for bug-guix@gnu.org; Mon, 07 Jun 2021 21:12:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45558) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqQHi-00077U-As for bug-guix@gnu.org; Mon, 07 Jun 2021 21:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lqQHh-0000ib-TA for bug-guix@gnu.org; Mon, 07 Jun 2021 21:12:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48910: Very slow startup of GTK+ applications Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 08 Jun 2021 01:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48910 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 48910@debbugs.gnu.org Received: via spool by 48910-submit@debbugs.gnu.org id=B48910.16231147132747 (code B ref 48910); Tue, 08 Jun 2021 01:12:01 +0000 Received: (at 48910) by debbugs.gnu.org; 8 Jun 2021 01:11:53 +0000 Received: from localhost ([127.0.0.1]:57104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqQHY-0000iE-Js for submit@debbugs.gnu.org; Mon, 07 Jun 2021 21:11:53 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:46749) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqQHW-0000i1-OK for 48910@debbugs.gnu.org; Mon, 07 Jun 2021 21:11:51 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 5ACBE5C0187; Mon, 7 Jun 2021 21:11:44 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 07 Jun 2021 21:11:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=mjhjB6GilAa/9bBq3cCghKEI J7wz5ouZJx9p+82JijQ=; b=o32XQ1KeB4xHsxiCShLoDJGSxCK/TAD8Q5/wj5as ktI16WfkFM/7j+VO59EkHmD517yPuKfNyfmVUAkEHgLaxUcgy74MBiE56I4/FuFR GHGiEQQVDa66JHgjWhrMEPAbW6g8aMS1cByHBbIfCaXCgN74V7grJQOa/zBbk9kV 6JM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=mjhjB6 GilAa/9bBq3cCghKEIJ7wz5ouZJx9p+82JijQ=; b=eYo8MrNQ6LsRWKh8lRltol brM0oRDf8M/u5/RtO4B1Xf19hy3bqaXJpuIU80zEChGTSWlhgi+Ucyf964eWy8Ye TcgWAPJ8mToa6CHZTg2N7/+dsgmgEwzlnrLtziHxWwhGGKDdQF0IWK+QcTVJUFo9 vvcIYhlugstjQ0hjXwXksc1MffjUZR+XPBNHdERKs4+opxQmQp7p8hV5isQhL0Zy Hs/CyDu1rFNKHveDU8gWPcB2hfelxttleQtb+uqr5aOSvE9kV3jR3wEg3Na6M6DZ uYq8E9cXdujz0oJlHsCNZ6YrGImlbXPZTyZcYp2rrh0r5b0CaoAZuA+9RSQm+PHQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedtkedgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesmhdtre ertddtvdenucfhrhhomhepnfgvohcuhfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgr rhhirdhnrghmvgeqnecuggftrfgrthhtvghrnhepiefgueduleegfffhiedvtefhlefhff ekffeiveettdejtefgkeeuueekkeeliefgnecuffhomhgrihhnpegrrhgthhhlihhnuhig rdhorhhgpdhlvghvvghludhtvggthhhsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomheplhgvohesfhgrmhhulhgrrhhirdhnrghmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for <48910@debbugs.gnu.org>; Mon, 7 Jun 2021 21:11:44 -0400 (EDT) Date: Mon, 7 Jun 2021 21:11:41 -0400 From: Leo Famulari Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="aezcz1NNYfAu2rPg" Content-Disposition: inline In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623114745; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=mjhjB6GilAa/9bBq3cCghKEIJ7wz5ouZJx9p+82JijQ=; b=NjLI+IVBG2zEb+HI+luZlEUJoNvkCmsc9l84BuM/w4/mxznBEusLmeyR0nz3EUXVl66UwA DWV8Ei+2g0yVC0gKFYQM3Kd8oBqAg12VFiuch+70EYcTvUKh5UR9/o6q+oCXGAyGAFsJPb ZVNLZfADQs2W6Y7RsFR8krmYLqOfwZQDm36faDVpU7R40LXi1kIYei8MXbSTK5vof4lYOT 0TTRvt9UQ+IGwl9gG0pGvOzSMOd0deUyISCTUG5IoN31BtPngODkPkp8DSkBkADqphUIm8 YvSKe3/x0IP5LXuKPGD9BXuUgN4ukHk94DE7eB22gk5qj/DE0xg4XR9ZpYQiaA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623114745; a=rsa-sha256; cv=none; b=ISKOQ/nlCmoTtpA3vUcanilFj61wJJL/YepAVQw8dXC73Zk6TjoZX0ek15GJmUgEKw244+ yJW0Ew2MPvUXdAlBtLDefn6kavdlMfWStZeUDmDerf85455kXNYcbdNvZ4T1DCWhZS4Enk FDzMVvXnCB77vBhq3Nj0+kYmbaENA5sronv4GhEsILYsi7wYq7Pgf/mIDMopYUFliusTPy eNioHz3qZyRWvZqHPknCyLQhayK7kxEqj0y/jiMSxZyUEvKbFv4aV7FQYjxJbIZN/dwKv4 jesqgPWff4YXtqUnXBHh1W5d6W+9j3xfpOzDj+2sWNZfzPZI18fh2hZLjacW/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=o32XQ1Ke; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=eYo8MrNQ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -0.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=o32XQ1Ke; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=eYo8MrNQ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 6A8AD25253 X-Spam-Score: -0.42 X-Migadu-Scanner: scn1.migadu.com X-TUID: +3uZNDoDrnsE --aezcz1NNYfAu2rPg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Googling, I found some similar bug reports: https://bbs.archlinux.org/viewtopic.php?id=243737 https://forum.level1techs.com/t/gtk-applications-are-super-slow-at-startup/166540 The Arch discussion is very similar, as we are both using i3 launched with startx. The Arch discussion pointed to their wiki page on xinit, which includes this note: ------ Note: At the very least, ensure that the last if block in /etc/X11/xinit/xinitrc is present in your ~/.xinitrc file to ensure that the scripts in /etc/X11/xinit/xinitrc.d are sourced. ------ I did that, and it fixed the problem. The file /etc/X11/xinit/xinitrc on my Debian system merely sources /etc/X11/Xsession, which is attached for your reference. It does a lot of things and references other files... I have no idea what actually fixed my problem. --aezcz1NNYfAu2rPg Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=Xsession #!/bin/sh # # /etc/X11/Xsession # # global Xsession file -- used by display managers and xinit (startx) # $Id: Xsession 967 2005-12-27 07:20:55Z dnusinow $ set -e PROGNAME=Xsession message () { # pretty-print messages of arbitrary length; use xmessage if it # is available and $DISPLAY is set MESSAGE="$PROGNAME: $*" echo "$MESSAGE" | fold -s -w ${COLUMNS:-80} >&2 if [ -n "$DISPLAY" ] && which xmessage > /dev/null 2>&1; then echo "$MESSAGE" | fold -s -w ${COLUMNS:-80} | xmessage -center -file - fi } message_nonl () { # pretty-print messages of arbitrary length (no trailing newline); use # xmessage if it is available and $DISPLAY is set MESSAGE="$PROGNAME: $*" echo -n "$MESSAGE" | fold -s -w ${COLUMNS:-80} >&2; if [ -n "$DISPLAY" ] && which xmessage > /dev/null 2>&1; then echo -n "$MESSAGE" | fold -s -w ${COLUMNS:-80} | xmessage -center -file - fi } errormsg () { # exit script with error message "$*" exit 1 } internal_errormsg () { # exit script with error; essentially a "THIS SHOULD NEVER HAPPEN" message # One big call to message() for the sake of xmessage; if we had two then # the user would have dismissed the error we want reported before seeing the # request to report it. errormsg "$*" \ "Please report the installed version of the \"x11-common\"" \ "package and the complete text of this error message to" \ "." } # initialize variables for use by all session scripts OPTIONFILE=/etc/X11/Xsession.options SYSRESOURCES=/etc/X11/Xresources USRRESOURCES=$HOME/.Xresources SYSSESSIONDIR=/etc/X11/Xsession.d USERXSESSION=$HOME/.xsession USERXSESSIONRC=$HOME/.xsessionrc ALTUSERXSESSION=$HOME/.Xsession ERRFILE=$HOME/.xsession-errors # attempt to create an error file; abort if we cannot if (umask 077 && touch "$ERRFILE") 2> /dev/null && [ -w "$ERRFILE" ] && [ ! -L "$ERRFILE" ]; then chmod 600 "$ERRFILE" elif ERRFILE=$(tempfile 2> /dev/null); then if ! ln -sf "$ERRFILE" "${TMPDIR:=/tmp}/xsession-$USER"; then message "warning: unable to symlink \"$TMPDIR/xsession-$USER\" to" \ "\"$ERRFILE\"; look for session log/errors in" \ "\"$TMPDIR/xsession-$USER\"." fi else errormsg "unable to create X session log/error file; aborting." fi exec >>"$ERRFILE" 2>&1 echo "$PROGNAME: X session started for $LOGNAME at $(date)" # sanity check; is our session script directory present? if [ ! -d "$SYSSESSIONDIR" ]; then errormsg "no \"$SYSSESSIONDIR\" directory found; aborting." fi # Attempt to create a file of non-zero length in /tmp; a full filesystem can # cause mysterious X session failures. We do not use touch, :, or test -w # because they won't actually create a file with contents. We also let standard # error from tempfile and echo go to the error file to aid the user in # determining what went wrong. WRITE_TEST=$(tempfile) if ! echo "*" >>"$WRITE_TEST"; then message "warning: unable to write to ${WRITE_TEST%/*}; X session may exit" \ "with an error" fi rm -f "$WRITE_TEST" # use run-parts to source every file in the session directory; we source # instead of executing so that the variables and functions defined above # are available to the scripts, and so that they can pass variables to each # other SESSIONFILES=$(run-parts --list $SYSSESSIONDIR) if [ -n "$SESSIONFILES" ]; then set +e for SESSIONFILE in $SESSIONFILES; do . $SESSIONFILE done set -e fi exit 0 # vim:set ai et sts=2 sw=2 tw=80: --aezcz1NNYfAu2rPg--