From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: master fe7c015b20: Support XFCE in wallpaper.el Date: Tue, 27 Sep 2022 14:33:04 -0400 Message-ID: References: <166336105908.23797.12319380359602540227@vcs2.savannah.gnu.org> <20220916204419.B124FC00872@vcs2.savannah.gnu.org> <87edwavjyc.fsf@yahoo.com> <87wna1tr7z.fsf@yahoo.com> <87y1u51ddf.fsf@posteo.net> <87k05p8dqh.fsf@yahoo.com> <87tu4t1c89.fsf@posteo.net> <8735cd8ba5.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37138"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu , Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 27 20:34:21 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1odFPR-0009Qr-A7 for ged-emacs-devel@m.gmane-mx.org; Tue, 27 Sep 2022 20:34:21 +0200 Original-Received: from localhost ([::1]:45194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odFPQ-0005te-8i for ged-emacs-devel@m.gmane-mx.org; Tue, 27 Sep 2022 14:34:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odFOG-00056n-Nd for emacs-devel@gnu.org; Tue, 27 Sep 2022 14:33:08 -0400 Original-Received: from mail-oa1-x33.google.com ([2001:4860:4864:20::33]:39452) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odFOE-0003hr-T8 for emacs-devel@gnu.org; Tue, 27 Sep 2022 14:33:08 -0400 Original-Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-11e9a7135easo14401657fac.6 for ; Tue, 27 Sep 2022 11:33:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date; bh=IBzSQ9mnyB8FQUt4CHCYjQoS5Wtp/rzWlXpu3ce9Xic=; b=ayh+lMif/kb0ZVEooQoONoU0JlffmILJ9pbFMZqNFugIKQ9dkyzxUHfMoZnHQ2kpJL zHSrUGvuffn19mYxwLbfXGH2o0SnoRwcwshV4t4/XTlDW5QqM6FgwpXSNotIMFHF5tdx ZRvNUGKz6ksc0066JIxPBc3EtgCHC4UVr8C/pMTF8NNox7dMZl0mOZ0aEUopceRKxS7d JSjFXVoD7HhyCyKlR1OVkS8MWk6rzAo1uLpFS53ZdX/3xccv/QJYFGsf7ARX1e6De9dm Sp7MUAUwKK20gyWRgWlnwoZNMJYLxyKTTku3oeUhO0ewanRFQevGiutFW2Xuwm2P6od0 hfPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date; bh=IBzSQ9mnyB8FQUt4CHCYjQoS5Wtp/rzWlXpu3ce9Xic=; b=ajIISz32KieNzPX0ta1x2XNgmuZ47q9l8SWUzJoykNsCPyLdoBOBeNCPCmYacM4/dz RsVzGBrwCr832fgZFJOrlzeevGmOXGpl0/SDur4EkE3OFv+RTUJ/juNHRJ/jWsdnxmlj olQms11ZQMPcnybDKH4rbe8p7zQbKcICjBxyBLtQrTXCsltgdLsfQiLsYJ2JepnleAHc EtFgVuLhbqZYJeSIjDdKLXdSxvGr7mEOydxsvfz/ZjQgFPpnT9Wl+xenoV54JD8qmLSW 0zSXYgoNxWnAIDDDCf+GvN6+23r2vs2ZYdzLKcejZoJRWj7p0e9KXIEQyjkbq2HJ6KCA c8ow== X-Gm-Message-State: ACrzQf0QzDBVAJWG6150v8+RRi1RpbD0Q/LyGVO3Q6lFZMJmuE45dATt 6Fp0rNpKi7X5Xf1YPnRCCVDAT5dL7QQCM/a5eLI= X-Google-Smtp-Source: AMsMyM44GzVtrHRge5XDoTKBZrQ/JBVYogrACMpM0kIeR00aWw0/6Cc3iyEf0Ui9qUQKmTEeRaTfNIP6McpQt+1/llo= X-Received: by 2002:a05:6870:b508:b0:12d:1c59:90d9 with SMTP id v8-20020a056870b50800b0012d1c5990d9mr3033067oap.199.1664303585390; Tue, 27 Sep 2022 11:33:05 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 27 Sep 2022 14:33:04 -0400 In-Reply-To: <8735cd8ba5.fsf@yahoo.com> X-Hashcash: 1:20:220927:luangruo@yahoo.com::VA2075VmZBMHDTCe:BgV2 Received-SPF: pass client-ip=2001:4860:4864:20::33; envelope-from=stefankangas@gmail.com; helo=mail-oa1-x33.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:296367 Archived-At: Po Lu writes: > Thierry Volpiatto writes: > >> Or to use xrandr directly if available. > > If a display is not available, what X server will the xrandr utility > connect to? And how will you ensure the X server that the xrandr > utility connects to is correct? Won't it just use whatever is in $DISPLAY? I'm seeing this in "emacs -Q -nw", running in an xterm: ELISP> (display-monitor-attributes-list) (((geometry 0 0 255 78) (workarea 0 0 255 78) (mm-size nil nil) (frames #))) ELISP> (getenv "DISPLAY") ":0" ELISP> (shell-command "xrandr" t) 293 (#o445, #x125) ELISP> Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 16384 x 16384 DVI-I-0 disconnected primary (normal left inverted right x axis y axis) DVI-I-1 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm 2560x1440 59.95*+ 1920x1200 59.88 1920x1080 60.00 1680x1050 59.95 1600x1200 60.00 1280x1024 75.02 60.02 1280x800 59.81 1152x864 75.00 1024x768 75.03 60.00 800x600 75.00 60.32 640x480 75.00 59.94 HDMI-0 disconnected (normal left inverted right x axis y axis) DP-0 disconnected (normal left inverted right x axis y axis) DVI-D-0 disconnected (normal left inverted right x axis y axis) DP-1 disconnected (normal left inverted right x axis y axis) So it seems like we could just look for "^\\([^ ]\\)+ connected" and just use the first one? If nothing else, couldn't we use it to get a default value?