
kdm способен определять самые популярные диспетчеры окон и окружения рабочего стола. При установке нового в диалоговое окно Тип сеанса будет автоматически добавлен соответствующий пункт.
Если вы установили новый диспетчер окон, который kdm не поддерживает, вам нужно проверить, находится ли соответствующее приложение в одном из каталогов, перечисленных в переменной PATH
, и что во время установки файл не был переименован.
If the case is that the session type is not supported by kdm yet (maybe because it is too new), you can quite easily add it.
The session types are defined by .desktop files located in the directories listed in SessionsDirs
. The last named directory contains the system-provided default session types and is $
in an installation from source. Software upgrades will typically overwrite anything in here, so it is unwise to use it for configuration purposes. Instead, a separate configuration directory should be listed first. It is set to KDEDIR
/share/apps/kdm/sessions$
in an installation from source, but distributors often change it to something like KDEDIR
/share/config/kdm/sessions/etc/kde4/kdm/sessions
. You can simply add an appropriately named .desktop
files here. The fields are:
[Desktop Entry] Encoding=UTF-8UTF-8
применяется всегда, опцию можно опустить Type=XSessionXSession
применяется всегда, опцию можно опустить Exec=имя_приложения
Передаётся команде evalоболочки Bourne'а TryExec=executable name
Поддерживается, но не является необходимым Name=имя_в_списке_сеансов
Есть также три особых типа сеансов:
- По умолчанию
Тип сеанса kdm по умолчанию обычно KDE, но системный администратор может это изменить.
- Другой
The Custom session will run the user's ~/.xsession if it exists, falling back to the default session otherwise.
- Безопасный
Безопасный — очень простой тип сеанса, используемый только для целей отладки.
To override a session type, copy the .desktop file from the data dir to the config dir and edit it at will. Removing the shipped session types can be accomplished by «shadowing» them with .desktop files containing Hidden=true. For the magic session types no .desktop files exist by default, but kdm pretends they would, so you can override them like any other type.