如何在启动时启动 xcompmgr 等应用程序?

Uri*_*era 5 lubuntu openbox xcompmgr

我一直试图xcompmgr在 Lubuntu 11.10 中自动启动,但它没有,我必须手动启动它。

我已将下一行添加到自动启动脚本中 ~/.config/openbox/

#Run a composite manager
xcompmgr &
Run Code Online (Sandbox Code Playgroud)

但是每当我登录时它什么都不做,我真的不需要任何特殊参数,我只是希望它在登录时开始。

如何让它在登录时自动运行?

fos*_*dom 7

如果它不存在,首先创建自动启动文件夹:

mkdir -p ~/.config/autostart
Run Code Online (Sandbox Code Playgroud)

然后创建一个 xcompmgr 桌面文件

lxshortcut -o ~/.config/autostart/xcompmgr.desktop
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

注销和登录。

注意这张图片显示了xcompmgr.desktop文件包含的内容以及如何确认xcompmgr正在运行。

在此处输入图片说明