2

我正在通过 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文件,所以我不知道为什么它对我不起作用。

4

1 回答 1

1

So the solution is pretty easy.

You need to create a autoscript.sh file located in /home/xxx/.config/openbox/autoscript.sh

If you don't have an openbox folder, just create one.

this is what my autoscript.sh file looks like:

cd /home/xxx/Desktop/app         //switch to folder where my app is located
./runapp                        // run my app

make it executable: chmod +x autoscript.sh

lightdm.conf

[SeatDefaults]
user-session=openbox
autologin-user= xxx
autologin-user-timeout=0

Now, when I'm booting, my GUI application is shown correctly using the openbox window manager.

于 2018-07-30T12:15:18.927 回答