From: Stefan Kangas <stefankangas@gmail.com>
To: Po Lu <luangruo@yahoo.com>
Cc: emacs-devel@gnu.org
Subject: Re: New library wallpaper.el pushed to master
Date: Wed, 14 Sep 2022 00:04:28 -0700 [thread overview]
Message-ID: <CADwFkmmbx4NeO7-DCqit1hKU6FzKiCqK7QhSdG8HjYnwnKM=jg@mail.gmail.com> (raw)
In-Reply-To: <87zgf2zcgd.fsf@yahoo.com>
Po Lu <luangruo@yahoo.com> writes:
> Po Lu <luangruo@yahoo.com> writes:
>
>> Why does it check `display-graphic-p'?
>> Setting the background image should work in a TTY as well.
If I'm not mistaken, under X, you would need $DISPLAY to be set for it
to work. And that variable is not set by default in a TTY.
Testing this on the Linux console, it only works if I do:
DISPLAY=:0.0 feh --bg-fill some-image.png
My assumption is that $WAYLAND_DISPLAY works similarly (but I've never
used Wayland so I have no idea really).
Do you have any ideas for how to do this better? I guess that
(setenv "DISPLAY" ":0.0")
will only work for single-user machines. Maybe that's okay, though.
Or maybe we should just check if $DISPLAY and/or $WAYLAND_DISPLAY are
set first?
Or maybe we should just ignore any errors and let users figure it out?
But that seems a bit drastic, perhaps.
> BTW, what about actions usually taken to modify the wallpaper such as
> scaling, cropping, and offsets? Shouldn't wallpaper-set take several
> arguments to specify those?
For now, the idea is that the user will be able to configure this by
changing `wallpaper-commands'. Ideally, we would have a defcustom to
control the default operation while being agnostic of the actual command
used. But then you have different capabilities in different software to
consider too.
next prev parent reply other threads:[~2022-09-14 7:04 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-27 16:41 desktop-background.el as a new library? Stefan Kangas
2021-10-27 19:02 ` Tassilo Horn
2021-10-27 19:51 ` Stefan Kangas
2021-10-28 2:36 ` Po Lu
2021-10-29 17:26 ` Arthur Miller
2021-10-29 17:44 ` Stefan Kangas
2021-11-15 20:51 ` Arthur Miller
2022-09-13 16:28 ` New library wallpaper.el pushed to master Stefan Kangas
2022-09-13 16:54 ` Eli Zaretskii
2022-09-13 17:09 ` Stefan Kangas
2022-09-13 17:22 ` Eli Zaretskii
2022-09-14 7:13 ` Stefan Kangas
2022-09-14 7:36 ` Stefan Kangas
2022-09-14 7:36 ` Po Lu
2022-09-14 11:10 ` Stefan Kangas
2022-09-14 11:44 ` Eli Zaretskii
2022-09-14 12:01 ` Stefan Kangas
2022-09-15 16:48 ` Stefan Kangas
2022-09-15 11:59 ` Eli Zaretskii
2022-09-15 13:39 ` Po Lu
2022-09-15 13:44 ` Eli Zaretskii
2022-09-15 13:49 ` Po Lu
2022-09-14 2:46 ` Po Lu
2022-09-14 6:39 ` Po Lu
2022-09-14 7:04 ` Stefan Kangas [this message]
2022-09-14 7:33 ` Po Lu
2022-09-14 11:53 ` Stefan Kangas
2022-09-14 12:30 ` Stefan Kangas
2022-09-14 13:42 ` Po Lu
2022-09-14 16:58 ` Sean Whitton
2022-09-15 7:28 ` Stefan Kangas
2022-09-15 16:19 ` Sean Whitton
2022-09-16 1:27 ` Po Lu
2022-09-14 11:39 ` Eli Zaretskii
2022-09-14 11:52 ` Stefan Kangas
2022-09-14 12:01 ` Eli Zaretskii
2022-09-14 12:07 ` Stefan Kangas
2022-09-14 12:24 ` Po Lu
2022-09-14 12:41 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADwFkmmbx4NeO7-DCqit1hKU6FzKiCqK7QhSdG8HjYnwnKM=jg@mail.gmail.com' \
--to=stefankangas@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).