ioi-2023 / contestant-vm

Contestant virtual machine for online IOI (since 2020)
1 stars 2 forks source link

Background is only set for light mode #83

Closed Error-42 closed 1 year ago

Error-42 commented 1 year ago

Describe the bug

The background setting only applies to light mode. When switching to dark mode the IOI background is not set. (Also I can't find the background picture to manually set it.)

To Reproduce

Steps to reproduce the behavior:

  1. Set Settings -> Apperance -> Style -> Dark

Expected behavior

IOI background is also set for dark mode.

Screenshots

kép

Please complete the following information:

Additional context

None.

pobrn commented 1 year ago

picture-uri-dark needs to be set as well.

diff --git a/sbin/mkioiuser.sh b/sbin/mkioiuser.sh
index be26b84..d273eda 100755
--- a/sbin/mkioiuser.sh
+++ b/sbin/mkioiuser.sh
@@ -9,6 +9,8 @@ useradd -m ioi
 sudo -Hu ioi dbus-run-session gsettings set org.gnome.desktop.background picture-options 'centered'
 sudo -Hu ioi dbus-run-session gsettings set org.gnome.desktop.background picture-uri \
        'file:///opt/ioi/misc/ioi-wallpaper.png'
+sudo -Hu ioi dbus-run-session gsettings set org.gnome.desktop.background picture-uri-dark \
+       'file:///opt/ioi/misc/ioi-wallpaper.png'
 sudo -Hu ioi dbus-run-session gsettings set org.gnome.shell enabled-extensions "['add-username-ext', 'stealmyfocus-ext']"
 sudo -Hu ioi dbus-run-session gsettings set org.gnome.shell disable-user-extensions false
 # Favorites (apps in sidebar): Removed yelp (help function),