Copyright © 2003, 2004, 2005 Benedikt Meurer
Следующим разрешается копировать, распространять и модифицировать этот документ при условии соблюдения GNU Free Documentation License (GFDL), версии 1.1 или любой более поздней опубликованной ассоциацией свободного программного обеспечения версией без неизменяемых частей, без текстов на обложках. Вы можете найти копию лицензии по этой ссылке или в файле COPYING-DOCS, распространяемом с этим документом.
July 2005
Содержание
xfce4-session
- это менеджер сеансов для Xfce 4. Его задача - сохранить состояние вашего рабочего стола (открытые приложения и расположение окон) и восстановить его при следующей загрузке. Вы можете создать несколько различных сеансов и выбрать один из них при загрузке.
xfce4-session
обеспечивает управление сеансами как для X11R6, так и для устаревших X11R5 протоколов. Если вам не нужна поддержка управления устаревшими сеансами, вы можете ее отключить во время сборки, передав аргумент --disable-legacy-sm в ./configure. НИКОГДА не запускайте smproxy в сеансе, управляемом xfce4-session
. Входящее в состав управление устаревшими сеансами делает то же самое, что и smproxy, и, кроме этого, поддерживает многоэкранный вывод.
Если параметр установлен, менеджер сеансов будет просить вас выбрать сеанс каждый раз при входе в Xfce.
Данный параметр говорит менеджеру сеансов автоматически сохранять текущий сеанс, когда вы выходите из системы. Если вы не выберете данный параметр, при выходе вам каждый раз будет задаваться соответствующий вопрос.
Данный параметр включает/выключает диалоговое окно подтверждения выхода из системы. Если параметр отключен, то сохранение сеанса зависит от того, включили вы автоматическое сохранение сеанса при выходе из системы или нет.
Установите этот параметр, если вам нужно, чтобы при загрузке запускался сервис keyring из GNOME. Если этот параметр установлен, xfce4-session
при загрузке запускает вспомогательные службы GNOME (если так настроено в центре управления GNOME). Обратитесь к документации GNOME для более подробной информации по этой теме.
Установите этот параметр, если вы планируете запускать приложения 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.
В левой части окна приведен список всех установленных заставок. Выберите заставку и вы увидите предварительный просмотр и сведения о ней, если они доступны. Вы можете нажать кнопку
, чтобы увидеть демонстрацию выбранной заставки.Параметры конфигурации заставки, если они есть, доступны по нажатию кнопки
.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
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.
The first base directory to look for configuration
files. By default this is set to ~/.config/
.
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.
Specifies the root for all user-specific cache data. If
this environment variable is unset, it defaults to ~/.cache
.
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.
This is the location of the configuration file that
includes the various settings for xfce4-session
, which can be changed
from the settings dialog.
This is the location of the configuration file that includes the configuration for the splash screen, which can be changed from the settings dialog.
The directory where xfce4-session
and xfwm4
store the session data to.
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
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:
Whether or not the user is allowed to customize the splash screen.
Whether or not the user is allowed to customize the session chooser settings.
Whether or not the user is allowed to customize the logout settings.
Whether or not the user is allowed to customize the compatibility settings (KDE/Gnome compat)
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.
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.
xfce4-session
was written by Benedikt Meurer
(<benny@xfce.org>
).
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.