LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1022|回复: 4

How to auto start sessions in KDE desktop?

[复制链接]
发表于 2005-10-11 00:45:21 | 显示全部楼层 |阅读模式
In gnome, there are two ways to auto start X clients:

1. customize the startx process by configuring X clients in the ~/.xinitrc file.

2. In GNOME, click main menu->preferencec->more preferences->sessions, add the new sessions you want to open upon startup, such as mozilla, which will open the mozilla browser automatically when login as this user.

When you run startx, all the sessions defined in xinitrc and in Sessions utility will be called.  If you run normal gui login (gdm or kdm or xdm, whatever), only the sessions defined in the Session utility will be called.

Here comes the question:
As we know, there is NO Sessions utility in KDE. The only option if you want to configure X client to start when running KDE desktop is to use .initrc file.

So what can I do to configure X client to auto start if I am using KDE desktop and use NORMAL login, instead of running startx?

Hope I make myself clear....
 楼主| 发表于 2005-10-11 01:09:27 | 显示全部楼层
More info about startx:

I use the init 3 command to change the system runlevel to 3, go to a virtual console by pressing F1, get the text-based login shell, login as root. And run startx, which will successfully sart the GUI from the command line in runlevel 3.

I am so curious about the startx.  Is it only be called if running from command line?  The normal bootup and display manager login (gdm,kdm or xdm) does not run the ~/.xinitrc file???

How are you guys configuring auto start x client in KDE????
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-12 08:53:27 | 显示全部楼层
5555....nobody knows the answer?  
回复 支持 反对

使用道具 举报

发表于 2005-10-17 09:55:38 | 显示全部楼层
ever tried ksmserver? maybe it can help.
refer to this: http://www.kde.org/areas/sysadmin/startup.php#ksmserver
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-27 10:13:58 | 显示全部楼层
haha, I figured this out...

After you switched KDE desktop, .kde directory will be created under your home directory.  In .kde, there is a Autostart directory....just put all the xclients you want to autostart when log in via desktop manager here...

Sounds simple and it works...
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表