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: New library wallpaper.el pushed to master Date: Tue, 13 Sep 2022 12:28:12 -0400 Message-ID: References: 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="31954"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 13 18:30:43 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 1oY8o6-00089q-09 for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Sep 2022 18:30:42 +0200 Original-Received: from localhost ([::1]:47766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oY8o4-0004su-MA for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Sep 2022 12:30:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY8lk-00037N-PD for emacs-devel@gnu.org; Tue, 13 Sep 2022 12:28:16 -0400 Original-Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]:34717) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oY8li-00061G-WD for emacs-devel@gnu.org; Tue, 13 Sep 2022 12:28:16 -0400 Original-Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-1280590722dso33608760fac.1 for ; Tue, 13 Sep 2022 09:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :from:to:cc:subject:date; bh=5iJRHHICk8j7Yxd3pbYUFAlVpeQFaMGXHdW42rlpp+k=; b=kapKqwi960IM48AkhCCpD55XiQMoDTTiyJMPSGDymR6ILjqD/4moVquBGyUf1jQFMz MgRCuiG+sTqJhvfiEIjF0eGKaxmyO0gyB11Qp74FSdC3qJbXM5RqRgvQJuJb27Z4JFJV kbpXVDXH8IY1jQBceDfa63ci55EyZJgbF0hs9DCJlbrakYvl9lwhknY5OSb8524O/Gie 1mSQfzqN/ivtErMf1tUSaHh8UrpY/sY2qb59evLtbHsSLbBFZJoAWTr8Ox6FfaM3RkeU qcmUObia2JZM5HMXcypk4+tWIKLL14+dj8GpBawY0yu3IfqTpIs/prvz+ykxba0Ny2Mn /f7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :x-gm-message-state:from:to:cc:subject:date; bh=5iJRHHICk8j7Yxd3pbYUFAlVpeQFaMGXHdW42rlpp+k=; b=KJF7tDBuaxUrNMdNwj3miuoa38IVAESIHePhz1S7qwvnVt+mitGVzCJxr/D4rtsjyp emuKfy0RFYmHIrE/gCBw4VbU6Nq8xumV3F1XA4aG10Ko3rzLZT52GtOEKnubnkOwDV+9 o0U8dDwrBYxonuvwSv7xux9JT7HWqwZmapLiiBhQhytzv9UgkueC8XKCn+ttlUudA65j XibWDLSLoFRqGNXyiO+oXwBcBmn3cwxmqzeO3NAwcWlQ/0kkNhAzV1teHPXQWfN7yzwB QedUVv/L0b8Bw8TpOmXv/GhAh3G3+DzbG+5qv/3LwwVIXuDGDbEeOzmPuuIVJs+iKC4h GZnw== X-Gm-Message-State: ACgBeo39RhkTXvRJkzqHDg2doh/G24fyWtTK35/3Ufpp7wFOjeLze32Z yDxpaIRJbZ/5MYTmraOgkxzETDI2Nr3TVrHMMrdDtnnw X-Google-Smtp-Source: AA6agR4PLiRgz1iNRXb1CPfis/l1I84cVShnhK65WtDjpXycGINs2duOLGWlTNW1oHNdBzf9rwqOh1DKLv3ETlwPXaM= X-Received: by 2002:a05:6808:1688:b0:345:ea9a:2954 with SMTP id bb8-20020a056808168800b00345ea9a2954mr42712oib.199.1663086493653; Tue, 13 Sep 2022 09:28:13 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 13 Sep 2022 12:28:12 -0400 In-Reply-To: X-Hashcash: 1:20:220913:emacs-devel@gnu.org::gFiBkfuv/eTPW7Dr:eoH Received-SPF: pass client-ip=2001:4860:4864:20::36; envelope-from=stefankangas@gmail.com; helo=mail-oa1-x36.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, T_SCC_BODY_TEXT_LINE=-0.01 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:295263 Archived-At: Stefan Kangas writes: > I'm looking at teaching image-dired.el to set your desktop background. > Because A) this finishes a TODO that has been in that file for going on > 15 years, and B) any respectable image viewer must know how to set your > desktop background. > > However, this code is not really tied to image-dired.el; only one line > and the name of the defun ties it to that library. For example, it > could be used in thumbs.el (that has similar capabilities), and it could > even be useful as a stand-alone command. > > So I started thinking that just like the recently added gravatar.el, > perhaps we should put this stuff in a new library > lisp/image/desktop-background.el? I have now pushed the new library wallpaper.el and changed thumbs.el and image-dired.el to use it. It has the new command `wallpaper-set', and the user option `wallpaper-commands' to control it. I don't expect it to not work on anything but GNU/Linux for now, but patches and suggestions are obviously very welcome. (I hope that it will be easy to add checks for different environments by adding new `cl-defgeneric's.) Thanks to Tassilo Horn for useful pointers in the previous discussion on how to handle Sway/Wayland and Gnome.