ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Arseny Maslennikov <arseny@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] DM & WM packaging policy 2.0 project.
Date: Fri, 12 Nov 2021 18:33:01 +0300
Message-ID: <YY6JLZzidUx9WnaX@cello> (raw)
In-Reply-To: <20211112145631.GB32554@dad.imath.kiev.ua>

[-- Attachment #1: Type: text/plain, Size: 3115 bytes --]

On Fri, Nov 12, 2021 at 04:56:31PM +0200, Igor Vlasenko wrote:
> On Fri, Nov 12, 2021 at 04:57:53PM +0300, Sergey V Turchin wrote:
> > 12.11.2021 16:51, Arseny Maslennikov пишет:
> > > > > выставляют значение переменной
> > > > > $XDG_CURRENT_DESKTOP
> 
> > > Эту envvar к моменту запуска по .desktop уже поздновато
> > > выставлять, разве нет? :)
> 
> to Arseny Maslennikov:
> Вы, скорее всего, имели в виду $XDG_SESSION_DESKTOP ?

Нет, именно XDG_SESSION_TYPE. В цитате выше пропущена реплика, на
которую я отвечал.

> 
> Я напомню, что XDG_SESSION_DESKTOP -  это pam_systemd,
> если DM подключает pam_systemd в pam.

Как и XDG_SESSION_TYPE.

У нас, правда, есть и конфигурации без systemd, у них всем этим должен
заниматься какой-то другой pam-модуль, наверное.

> 
> а XDG_CURRENT_DESKTOP - это список, и служит для несколько других целей
> (управление меню и автозапуском стандарта Freedesktop.

И ещё обработчиками запросов к xdg-desktop-portal как минимум.

> 
> По стандарту 
> [ https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#recognized-keys ]
> 
> $XDG_CURRENT_DESKTOP should have been set by the login manager, according to the value of the DesktopNames found in the session file. The entry in the session file has multiple values separated in the usual way: with a semicolon.

Да.

> 
> А теперь возьмем, WDM или, лучше, откопанный мной на эксперименты slim.
> 
> pam_systemd он не пользуется (XDG_SESSION_DESKTOP, XDG_SESSION_ID, и т.д
> не установлены, нет интеграции с systemd.
> 
> чтобы иметь XDG_SESSION_DESKTOP и компанию надо лечить на уровне DM -
> добавить в %pam pam_systemd и корректно настроить.
> 
> Вообще в будущем надо будет выпустить рновую ревизию политики,
> где желательно будет как-то станадартизировать требования,
> что рекомендуется пихать в %pam для DM.
> 
> А вот для переменной $XDG_CURRENT_DESKTOP достаточно установить ее,
> если она не установлена, в runwm или wm-select,
> так как они все равно читают .desktop файлы и имеют доступ
> к DesktopNames=.
> 
> XDG_CURRENT_DESKTOP нужна, если мы хотим реализовать сторонним приложением
> freedesktop меню или freedesktop autostart для какого-нибудь StrangeBox.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2021-11-12 15:33 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-31 17:55 Igor Vlasenko
2021-11-10 16:23 ` Igor Vlasenko
2021-11-12 11:16 ` Sergey V Turchin
2021-11-12 13:06   ` Igor Vlasenko
2021-11-12 13:31     ` Sergey V Turchin
2021-11-12 13:51       ` Arseny Maslennikov
2021-11-12 13:57         ` Sergey V Turchin
2021-11-12 14:56           ` Igor Vlasenko
2021-11-12 15:00             ` Sergey V Turchin
2021-11-12 15:11               ` Igor Vlasenko
2021-11-12 15:33             ` Arseny Maslennikov [this message]
2021-11-12 11:17 ` Sergey V Turchin
2021-11-12 12:52   ` Igor Vlasenko
2021-11-12 13:35     ` Sergey V Turchin
2021-11-12 14:35       ` Igor Vlasenko
2021-12-01 22:40 ` Igor Vlasenko
2021-12-02  7:30   ` Sergey V Turchin

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=YY6JLZzidUx9WnaX@cello \
    --to=arseny@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