XServer启动后运行shell脚本吗? [英] Run shell script after XServer is started?

查看:118
本文介绍了XServer启动后运行shell脚本吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在启动XServer以及lightdm时如何运行shell脚本.我在/etc目录中尝试了init.d和rc.local,但是我的脚本正在调用gui应用程序,因此启动XServer后需要运行它的原因.

How to run shell script when XServer is started and lightdm also. I tried with init.d and rc.local in /etc directory, but my script is calling an gui application so that the reason I need to run it after XServer is started.

我正在使用Debian Jessie.

I am using Debian Jessie.

推荐答案

根据此链接您的主目录中的.xinitrc将被读取并执行,否则将使用默认的/etc/X11/xinit/xinitrc.因此,您应该能够创建此文件并启动Shell脚本.

According to this link .xinitrc in your home directory will be read and executed, otherwise the default /etc/X11/xinit/xinitrc is used. So you should be able to create this file and have the shell script started.

这篇关于XServer启动后运行shell脚本吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆