Skip to content

Commit 147d683

Browse files
Added upower and dbus session
- upower tool added to remove error like: ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files - dbus session enabled to reduce errors such as: ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
1 parent c512206 commit 147d683

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

debian.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ until sudo apt -y install python3 python3-pip python3-ujson \
8383
python3-dev libavutil-dev libmp3lame-dev libx264-dev yasm autoconf automake build-essential libass-dev libfreetype6-dev libtheora-dev \
8484
libtool libvorbis-dev pkg-config texi2html libtext-unidecode-perl python3-numpy python3-scipy perl \
8585
adb ethtool nodejs cmake git-core libsdl2-dev libva-dev libvdpau-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev texinfo wget \
86-
ttf-mscorefonts-installer fonts-noto fonts-roboto fonts-open-sans ffmpeg
86+
ttf-mscorefonts-installer fonts-noto fonts-roboto fonts-open-sans ffmpeg upower
8787
do
8888
sleep 1
8989
done
@@ -234,6 +234,8 @@ echo 'sleep 10' >> ~/agent.sh
234234
# Dummy X display
235235
echo 'export DISPLAY=:1' >> ~/agent.sh
236236
echo 'Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile /dev/null -config ./misc/xorg.conf :1 &' >> ~/agent.sh
237+
echo 'export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"' >> ~/agent.sh
238+
echo 'dbus-daemon --session --address=$DBUS_SESSION_BUS_ADDRESS --nofork --nopidfile --syslog-only &' >> ~/agent.sh
237239

238240
# Reboot every 24 hours
239241
echo 'for i in `seq 1 24`' >> ~/agent.sh

0 commit comments

Comments
 (0)