From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] RFC: wayland session wrapper script
Date: Fri, 3 Dec 2021 15:12:46 +0300
Message-ID: <20211203121246.GA11557@altlinux.org> (raw)
In-Reply-To: <20211202183523.GA29870@dad.imath.kiev.ua>
On Thu, Dec 02, 2021 at 08:35:23PM +0200, Igor Vlasenko wrote:
[...]
> Остальные не совсем понятна логика, почему они в
> /etc/X11/profile.d, а не просто в /etc/profile.d.
>
> В случае
> /etc/X11/profile.d/ssh-agent.sh
> логика понятна, не хочется вызывать этот скрипт в
> случае удаленного логина по ssh.
Не только в этом случае, но в случае любого другого логина, кроме такого,
когда ssh-agent сможет асинхронно запрашивать подтверждения у пользователя.
Например, логин на tty1 тоже не подходит.
Проверка на $DISPLAY в самом начале /etc/X11/Xsession не просто так.
Можно попробовать такой вариант:
[ -n "${SSH_AUTH_SOCK-}" ] ||
[ -z "${DISPLAY-}" ] ||
tty -s || {
...
}
--
ldv
next prev parent reply other threads:[~2021-12-03 12:12 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-02 18:35 Igor Vlasenko
2021-12-02 19:09 ` Alexey V. Vissarionov
2021-12-03 7:30 ` Sergey V Turchin
2021-12-03 10:58 ` Igor Vlasenko
2021-12-03 10:59 ` Igor Vlasenko
2021-12-03 18:41 ` Alexey V. Vissarionov
2021-12-03 12:12 ` Dmitry V. Levin [this message]
2021-12-03 12:52 ` Igor Vlasenko
2021-12-03 16:07 ` [devel] почему ssh-agent не имеет смысла на tty1 Arseny Maslennikov
2021-12-03 16:11 ` Dmitry V. Levin
2021-12-03 13:50 ` [devel] RFC: wayland session wrapper script Alexey Gladkov
2021-12-03 14:49 ` Sergey Bolshakov
2021-12-03 15:10 ` Alexey Gladkov
2021-12-03 16:05 ` [devel] DM (RFC: wayland session wrapper script) Arseny Maslennikov
2021-12-03 18:05 ` Alexey Gladkov
2021-12-03 19:59 ` [devel] DM (was: RFC: " Arseny Maslennikov
2021-12-03 23:00 ` Alexey Gladkov
2021-12-21 13:19 ` [devel] RFC: wayland session wrapper script Alexey Gladkov
2021-12-03 15:16 ` Arseny Maslennikov
2021-12-03 15:14 ` Arseny Maslennikov
2021-12-03 18:01 ` Igor Vlasenko
2021-12-03 18:16 ` Yuri Sedunov
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211203121246.GA11557@altlinux.org \
--to=ldv@altlinux.org \
--cc=devel@lists.altlinux.org \
/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
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git