I've looked everywhere for a solution for this... but I haven't gotten in the usual pitfalls as many others who had this problem...
I can't get Openbox (and more specifically openbox-session) to run the autostart script in ~/.config/openbox/autostart.
Here's what it contains:
$this->bbcode_second_pass_code('', '## Openbox autostart.sh
## ====================
## Note*: some programs, such as 'nm-applet' are run via XDG
autostart.
## Run '/usr/lib/openbox/openbox-xdg-autostart --list' to list any
## XDG autostarted programs.
##
## More information about this can be found at:
## http://openbox.org/wiki/Help:Autostart
##
nitrogen --restore &
conky -qd &
qbittorrent &
')
I launch Openbox through systemd, here's what /etc/systemd/system/openbox.service contains:
$this->bbcode_second_pass_code('', '[Unit]
Description=OpenBox WM Service
After=network.target Xvfb.service
[Service]
User=andoru
ExecStart=/bin/sh -c "DISPLAY=:0 openbox-session"
[Install]
WantedBy=multi-user.target
')
I have to set it execute a command through sh like that, as openbox needs to have a display specified, since I run it through Xvfb.
Openbox itself runs fine at startup, but it just won't run the commands in the autostart file.
Anyone know what I'm doing wrong...?