如何在登录前执行脚本
Tofloor
poster avatar
cetvb
deepin
2019-07-23 03:28
Author
如何在登录界面执行脚本,
我的脚本是
  1. xinput --map-to-output {设备id} eDP-1
Copy the Code
里边有xinput命令,需要xserver启动后执行,但在显示登录界面的时候,就要启动脚本,这个启动脚本应该放在什么位置呢?
Reply Favorite View the author
All Replies
avatar
jianguo922
deepin
2019-07-23 05:36
#1
我也想知道           
Reply View the author
avatar
funtoo
deepin
2019-07-23 05:57
#2
在/etc/lightdm/lightdm.conf的[SeatDefaults]段里面添加一行
  1. display-setup-script=/path/to/script.sh
Copy the Code
不过可能每次lightdm升级以后都得改一次配置。
Reply View the author
avatar
cetvb
deepin
2019-07-23 17:02
#3
https://bbs.deepin.org/post/180998
在/etc/lightdm/lightdm.conf的[SeatDefaults]段里面添加一行不过可能每次lightdm升级以后都得改一次配置。 ...

请问lightdom升级有钩子脚本么,我想在lightdm升级后,执行一个脚本,把我的工作脚本,自动添加到lightdm.conf里,这样应该就可以解决你说的升级后要重新配置的问题了
Reply View the author
avatar
funtoo
deepin
2019-07-23 18:54
#4
https://bbs.deepin.org/post/180998
请问lightdom升级有钩子脚本么,我想在lightdm升级后,执行一个脚本,把我的工作脚本,自动添加到lightdm.con ...

通过终端更新的话会提示是否覆盖配置文件,不过也不一定会覆盖,lightdm更新频率也不高。
我暂时想不到触发脚本,内核安装后的触发脚本倒是有的,在/etc/kernel下面。
Reply View the author