From: Igor Vlasenko <vlasenko@imath.kiev.ua> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: Re: [devel] RFC: wayland session wrapper script Date: Fri, 3 Dec 2021 14:52:14 +0200 Message-ID: <20211203125214.GA26944@dad.imath.kiev.ua> (raw) In-Reply-To: <20211203121246.GA11557@altlinux.org> On Fri, Dec 03, 2021 at 03:12:46PM +0300, Dmitry V. Levin wrote: > 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 не просто так. Спасибо за разъяснение. Тогда получается следующее: 1) /etc/X11/profile.d/ssh-agent.sh нельзя перемещать в /etc/profile.d/ пусть будет там, где былю 2) нельзя просто добавить симлинк в <wayland session wrapper script>/profile.d так как из /usr/share/wayland-sessions может быть запушен тот же fbterm. Можно добавить эвристику, которая будет смотреть, что запускается, и для известных композиторов явно вызывать /etc/X11/profile.d/ssh-agent.sh > Можно попробовать такой вариант: > [ -n "${SSH_AUTH_SOCK-}" ] || > [ -z "${DISPLAY-}" ] || > tty -s || { > ... Для обсуждаемого скрипта не cгодится, так как Wayland еще не запущен, следовательно, WAYLAND_DISPLAY, XWayland и DISPLAY тоже нет Пусть для /etc/X11/profile.d/ssh-agent.sh будет все как есть -- I V
next prev parent reply other threads:[~2021-12-03 12:52 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 2021-12-03 12:52 ` Igor Vlasenko [this message] 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=20211203125214.GA26944@dad.imath.kiev.ua \ --to=vlasenko@imath.kiev.ua \ --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