查看“Xfce会话管理器操作手册”的源代码
来自Ubuntu中文
←
Xfce会话管理器操作手册
跳到导航
跳到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
== Xfce会话管理器操作手册 == === 概述 === xfce4-session is a session manager for Xfce 4. Its task is to save the state of your desktop (opened applications and their location) and restore it during a next startup. You can create several different sessions and choose one of them on startup. xfce4-session provides session management for both X11R6 and legacy X11R5 protocols. If you don't need legacy session management support, you can disable it at compile time, giving --disable-legacy-sm to ./configure. Do NOT EVER run smproxy in session that is managed by xfce4-session, or weird things will happen. The included legacy session management does everything that smproxy would do, and besides that, it also supports multiscreen display. ==== Session Manager设置 ==== === General preferences === Figure 1. xfce4-session general preferences attachment:xfsm-general.png '''Display chooser on login''' If set, the session manager will ask you to choose a session every time you log in to Xfce. '''Automatically save session on logout''' This option instructs the session manager to save the current session automatically when you log out. If you don't select this option you'll be prompted whether you want to save the current session on each logout. '''Prompt on logout''' This option disables the logout confirmation dialog. Whether the session will be saved or not depends on whether you enabled the automatic saving of sessions on logout or not. ==== 高级选项 ==== Figure 2. xfce4-session高级选项 attachment:xfsm-advanced.png '''启动时运行Gnome服务''' Enable this option if you need the GNOME keyring daemon to be run on startup. This option also instructs xfce4-session to bring up the GNOME assistive technologies at startup (if enabled in the GNOME control center). See the GNOME documentation for more information on this topic. '''启动时运行KDE服务''' Enable this option if you plan to run KDE applications as part of your Xfce Desktop session. This will notably increase the startup time, but on the other hand, KDE applications will startup faster. Some KDE applications may not work at all if you don't enable this option. '''Manage remote applications''' Allow the session manager to manage applications running on remote hosts. Since this option may constitute a security risk, by listening to a TCP port on your system, do not enable it unless you know what you are doing. System administrators may want to disable this option globally using the session managers KIOSK capabilities. === 定制Session Manager === 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. ==== Splash screen settings ==== Figure 3. Splash screen settings dialog attachment:xfsm-splash.png On the left, the dialog shows a list of all installed engines. Select an engine, and you will see, if available, a preview and information about it. You can click on the Test button to see a demonstration of the selected splash screen engine. xfce4-session provides three Splash themes engines by default. Their respective configuration options - if any - are available from the Configure button. ==== 关闭/重新启动选项 ==== xfce4-session supports shutting down your computer when you log out of your desktop session. To be able to shutdown the computer, you have to be listed in the systems sudoers file, in particular, you must be allowed to execute the command ${libexecdir}/xfsm-shutdown-helper (/usr/sbin/xfsm-shutdown-helper on Debian GNU/Linux) as user root (where ${libexecdir} is the libexec sub directory in the prefix you installed xfce4-session, for example /usr/local/libexec). 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/libexec/xfsm-shutdown-helper === 高级 === ==== 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}/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: <pre><nowiki> [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 </nowiki></pre> ==== 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: <pre><nowiki> [xfce4-session] CustomizeSplash=ALL CustomizeChooser=ALL CustomizeLogout=ALL CustomizeCompatibility=%wheel Shutdown=%wheel CustomizeSecurity=NONE </nowiki></pre> 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. '''关闭''' 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 === xfce4-session由 [mailto:benny@xfce.org Benedikt Meurer]编写。要获得更多信息,请访问 [http://www.xfce.org/ XFce web site]。 要报告bug或者对本软件或本手册提出建议,请使用http://bugzilla.xfce.org/的bug跟踪系统。 如果你对本软件包的使用或者安装有疑问,请在xfce通讯表单询问。开发讨论可在[http://www.moongroup.com/mailman/listinfo/xfce4-dev/ xfce4-dev]通讯表单进行。 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.
返回
Xfce会话管理器操作手册
。
导航菜单
页面操作
页面
讨论
阅读
查看源代码
历史
页面操作
页面
讨论
更多
工具
个人工具
登录
导航
首页
最近更改
随机页面
页面分类
帮助
搜索
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息