Менеджер сеансов Xfce 4

Benedikt Meurer

Разработчик
os-cillation
Системная разработка


This manual describes the xfce4-session package, version 4.8.0git-de82e2f.

Следующим разрешается копировать, распространять и модифицировать этот документ при условии соблюдения GNU Free Documentation License (GFDL), версии 1.1 или любой более поздней опубликованной ассоциацией свободного программного обеспечения версией без неизменяемых частей, без текстов на обложках. Вы можете найти копию лицензии по этой ссылке или в файле COPYING-DOCS, распространяемом с этим документом.

July 2005


Содержание

Введение
Настройка менеджера сеансов
Основные настройки
Дополнительные настройки
Настройка менеджера сеансов
Вкладка "Заставка"
Параметры выключения / перезагрузки
Advanced
Files and Environment Variables
Kiosk Mode
About xfce4-session

Введение

xfce4-session - это менеджер сеансов для Xfce 4. Его задача - сохранить состояние вашего рабочего стола (открытые приложения и расположение окон) и восстановить его при следующей загрузке. Вы можете создать несколько различных сеансов и выбрать один из них при загрузке.

xfce4-session обеспечивает управление сеансами как для X11R6, так и для устаревших X11R5 протоколов. Если вам не нужна поддержка управления устаревшими сеансами, вы можете ее отключить во время сборки, передав аргумент --disable-legacy-sm в ./configure. НИКОГДА не запускайте smproxy в сеансе, управляемом xfce4-session. Входящее в состав управление устаревшими сеансами делает то же самое, что и smproxy, и, кроме этого, поддерживает многоэкранный вывод.

Настройка менеджера сеансов

Основные настройки

Рисунок 1. Настройка сеансов. Вкладка "Общие"

Shows the General tab of the xfce4-session settings dialog.

Показывать диалог выбора при входе в систему

Если параметр установлен, менеджер сеансов будет просить вас выбрать сеанс каждый раз при входе в Xfce.

Автоматически сохранять сеанс при выходе

Данный параметр говорит менеджеру сеансов автоматически сохранять текущий сеанс, когда вы выходите из системы. Если вы не выберете данный параметр, при выходе вам каждый раз будет задаваться соответствующий вопрос.

Запрос при выходе

Данный параметр включает/выключает диалоговое окно подтверждения выхода из системы. Если параметр отключен, то сохранение сеанса зависит от того, включили вы автоматическое сохранение сеанса при выходе из системы или нет.

Дополнительные настройки

Рисунок 2. Дополнительные настройки xfce4-session

Shows Advanced tab of the xfce4-session settings dialog.

Запускать службы GNOME при входе в систему

Установите этот параметр, если вам нужно, чтобы при загрузке запускался сервис keyring из GNOME. Если этот параметр установлен, xfce4-session при загрузке запускает вспомогательные службы GNOME (если так настроено в центре управления GNOME). Обратитесь к документации GNOME для более подробной информации по этой теме.

Запускать службы KDE при входе в систему

Установите этот параметр, если вы планируете запускать приложения KDE в сеансе Xfce. Это заметно увеличит время загрузки, но с другой стороны, приложения KDE будут быстрее запускаться. Некоторые приложения KDE могут совсем не работать, если не установить этот параметр.

Управлять удаленными приложениями

Позволяет менеджеру сеансов управлять приложениями, запущенными на удаленных компьютерах. Так как этот параметр может представлять собой угрозу безопасности из-за прослушивания порта TCP на вашей системе, не устанавливайте его, если не уверены.

Системные администраторы могут глобально запретить эту возможность с использованием режима киоска менеджера сеансов.

Настройка менеджера сеансов

You can customize the splash-screen that xfce4-session will use when you log in to Xfce 4. There is a dedicated dialog available from the Xfce 4 Settings Manager.

Вкладка "Заставка"

Рисунок 3. Вкладка "Заставка"

Shows the xfce4-session splash screen settings dialog.

В левой части окна приведен список всех установленных заставок. Выберите заставку и вы увидите предварительный просмотр и сведения о ней, если они доступны. Вы можете нажать кнопку Проверить, чтобы увидеть демонстрацию выбранной заставки.

Параметры конфигурации заставки, если они есть, доступны по нажатию кнопки Настроить.

Параметры выключения / перезагрузки

xfce4-session обеспечивает выключение вашего компьютера, когда вы завершаете сеанс работы. Чтобы иметь возможность выключить компьютер, вы должны присутствовать в списке системного файла sudoers, в частности, вам должно быть разрешено выполнять команды ${libdir}/xfce4/session/xfsm-shutdown-helper ( /usr/sbin/xfsm-shutdown-helper в Debian GNU/Linux) с правами администратора (где ${libexecdir} подкаталог lib в каталоге, в который вы установили xfce4-session, например, /usr/local/lib/xfce4/session).

For example, lets say, you installed xfce4-session into /usr/local, your hostname is myhost and your user account is named myuser, then you would have to add the following line to your sudoers file (remember to use visudo to edit that file):

myuser myhost=/usr/local/lib/xfce4/session/xfsm-shutdown-helper

Advanced

Files and Environment Variables

Xfce now uses the Basedir Specification as defined on Freedesktop.org to locate its data and configuration files. This means that file locations will be specified as a path relative to the directories described in the specification.

${XDG_CONFIG_HOME}

The first base directory to look for configuration files. By default this is set to ~/.config/.

${XDG_CONFIG_DIRS}

A list of system directories that contain configuration data. By default the panel will look in ${sysconfdir}/xdg/ and /etc/xdg/. The value of ${sysconfdir} depends on how the program was build and will often be /etc/ for binary packages.

${XDG_CACHE_HOME}

Specifies the root for all user-specific cache data. If this environment variable is unset, it defaults to ~/.cache.

${XDG_CONFIG_DIRS}/autostart/

This is the location where the list of applications that should be automatically run on login is stored. Each autostarted application is represented by a .desktop file (see the Desktop Entry Specification for details).

Prior to Xfce 4.3, the list of autostarted applications was stored in ~/Desktop/Autostart, which contained scripts and symbolic links to applications. If you run xfce4-session 4.8.0git-de82e2f or above for the first time, it will automatically migrate the autostart items from the old location to the standard location and place a LOCATION-CHANGED.txt file in the old directory, that describes the location change.

${XDG_CONFIG_DIRS}/xfce4-session/xfce4-session.rc

This is the location of the configuration file that includes the various settings for xfce4-session, which can be changed from the settings dialog.

${XDG_CONFIG_DIRS}/xfce4-session/xfce4-splash.rc

This is the location of the configuration file that includes the configuration for the splash screen, which can be changed from the settings dialog.

${XDG_CACHE_HOME}/sessions/

The directory where xfce4-session and xfwm4 store the session data to.

${sysconfdir}/xdg/xfce4/kiosk/kioskrc

Kiosk mode configuration file. See next section for an explanation.

None of the configuration files, except the kioskrc, are designed to be edited by hand during a Xfce session; in fact, the changes will be overwritten if you edit them while the session manager or the settings managers are running.

System administrators might want to customize the file ${sysconfdir}/xdg/xfce4-session/xfce4-session.rc to change the default applications that are run on Xfce startup. For example, if you want to start the xfce4-iconbox instead of the xftaskbar4, you would change the [Failsafe Session] section like to something like this:

[Failsafe Session]
Count=4
Client0_Command=xfwm4
Client0_PerScreen=False
Client1_Command=xfce4-panel
Client1_PerScreen=True
Client2_Command=xfce4-iconbox
Client2_PerScreen=True
Client3_Command=xfdesktop
Client3_PerScreen=False

Kiosk Mode

The session manager offers support for the Kiosk Mode, that helps to prevent users from making changes to their session settings. To use it you have to edit or create the file ${sysconfdir}/xdg/xfce4/kiosk/kioskrc.

The way to explain the format of this file is by using an example. The xfce4-session section of your kioskrc might look like this:

[xfce4-session]
CustomizeSplash=ALL
CustomizeChooser=ALL
CustomizeLogout=ALL
CustomizeCompatibility=%wheel
Shutdown=%wheel
CustomizeSecurity=NONE

This allows all users to change their splash, chooser and logout settings, but allows only users in the group wheel to customize the compatibility settings and shutdown the system. No one will be allowed to adjust the security settings.

The session manager supports the following KIOSK capabilities:

CustomizeSplash

Whether or not the user is allowed to customize the splash screen.

CustomizeChooser

Whether or not the user is allowed to customize the session chooser settings.

CustomizeLogout

Whether or not the user is allowed to customize the logout settings.

CustomizeCompatibility

Whether or not the user is allowed to customize the compatibility settings (KDE/Gnome compat)

CustomizeSecurity

Whether or not the user is allowed to customize the security settings. This is one of the most IMPORTANT settings, since it prevents users (actually libICE) from binding to a TCP port.

Shutdown

Whether or not the user is allowed to shutdown (reboot or poweroff) the system. If a user lacks this capability the reboot and poweroff options in the shutdown dialog will be greyed out.

About xfce4-session

xfce4-session was written by Benedikt Meurer (). To find more information, please visit the Xfce web site.

To report a bug or make a suggestion regarding this application or this manual, use the bug tracking system at http://bugzilla.xfce.org/.

If you have questions about the use or installation of this package, please ask on the xfce mailing list. Development discussion takes place on the xfce4-dev mailing list.

This program is distributed under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.