=?GB2312?B?UmU6ILy8yvXOyszio7rKuWdub21lxvS2r8ew1rTQ0NK7uPa9xQ==?= =?GB2312?B?sb4=?=
- From: 刘红丹 <hongdanliu gmail com>
- To: Jeff Cai <jeff cai oracle com>
- Cc: gnome-cn-list gnome org
- Subject: Re: 技术问题:使gnome启动前执行一个脚本
- Date: Wed, 3 Nov 2010 18:13:59 +0800
恭喜楼主,你用到的应该是这个脚本:
etc/gdm/PostLogin/Default
上面说错了,不是PreSession
这个PostLogin的含义看看Default的说明就知道了:
$ less Default:
#!/bin/sh
#
# Note: this is a sample and will not be run as is. Change the name of this
# file to <gdmconfdir>/PostLogin/Default for this script to be run. This
# script will be run before any setup is run on behalf of the user and is
# useful if you for example need to do some setup to create a home directory
# for the user or something like that. $HOME, $LOGIN and such will all be
# set appropriately and this script is run as root.
PreSession是在登录之前,PostLogin是在输入密码登录后,启动gnome桌面之前,我刚刚实验过了,比如加上:
/usr/bin/gedit &
sleep 30
在 2010年11月3日 下午5:57,Jeff Cai
<jeff cai oracle com>写道:
This should also work if you use gdm as the display manager.
Jeff
On Wed, 2010-11-03 at 17:01 +0800, 刘红丹 wrote:
> /etc/gdm/PreSession ?
>
> 在 2010年11月3日 下午4:28,Jeff Cai <
jeff cai oracle com>写道:
> You can put some scripts under /etc/X11/xinit/xinitrc.d which
> will run
> before gnome-session get started.
>
> Jeff
>
> On Wed, 2010-11-03 at 15:23 +0800, Zhang Weiwu, Beijing wrote:
> > 如果使gnome启动前,用户登录之后,在做任何其它事之前,先执行
> 一个脚本,等
> > 候脚本运行完,再启动gnome,如何做到?应该找哪方面资料?
> >
> > 我问这问题是想在登录后执行一个用户可选择是否的同步脚本,其退
> 出后gnome-
> > session再正常运行。待同步的内容有基本的gnome配置
> (如.gconf*),所以适合
> > 在任何gnome应用跑起来之前运行。
> >
> > 要是十年前,我就写.xsession了。如今怕是物是人非了,不知道从
> 哪里开始。
> >
> > 我使用的是Ubuntu 10.10.
> > _______________________________________________
> > gnome-cn-list mailing list
> >
gnome-cn-list gnome org
> >
http://mail.gnome.org/mailman/listinfo/gnome-cn-list
>
> _______________________________________________
> gnome-cn-list mailing list
>
gnome-cn-list gnome org
>
http://mail.gnome.org/mailman/listinfo/gnome-cn-list
>
>
>
>
> --
> 刘红丹
>
http://liuhongdan.com/
--
刘红丹
http://liuhongdan.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]