我正在通过 LightDM 在信息亭模式下运行我的应用程序 (GUI)。这工作正常,但我很难将 openbox 添加到它。我的应用程序没有边框或装饰,尽管我将 openbox 设置为 user-session
lightdm.conf:
[SeatDefaults]
user-session=openbox
autologin-user= xxxx
autologin-user-timeout=0
session-setup-script= /home/xxxx/Desktop/runapp.sh // run application
在 /usr/share/xsessions
中有一个 openbox.desktop
文件,所以我不知道为什么它对我不起作用。
最佳答案
所以解决方案很简单。
您需要在 /home/xxx/.config/openbox/autoscript.sh
中创建一个 autoscript.sh
文件>
如果您没有 openbox
文件夹,只需创建一个。
这是我的 autoscript.sh
文件的样子:
cd /home/xxx/Desktop/app //switch to folder where my app is located
./runapp // run my app
使其可执行:chmod +x autoscript.sh
lightdm.conf
[SeatDefaults]
user-session=openbox
autologin-user= xxx
autologin-user-timeout=0
现在,当我启动时,我的 GUI 应用程序可以使用 openbox 窗口管理器正确显示。
关于linux - LightDM 添加窗口管理器(Openbox),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51590396/