Skip to content

Commit

Permalink
Fix typo in gui placeholder string
Browse files Browse the repository at this point in the history
  • Loading branch information
guysoft committed Jan 2, 2025
1 parent 528d29e commit ee78961
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/modules/admin-toolkit/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ if [ "$ADMIN_TOOLKIT_SCREEN_ROTATION" != "normal" ]
then
# Handle rotation if the gui module closes after this module
echo "Adding screen rotation..."
if grep -q "GUI_SESSION_PLACEHOLDEFR" /home/pi/scripts/start_gui ; then
sed -i /home/pi/scripts/start_gui -e "s/^GUI_SESSION_PLACEHOLDEFR/export DISPLAY=:0/"
if grep -q "GUI_SESSION_PLACEHOLDER" /home/pi/scripts/start_gui ; then
sed -i /home/pi/scripts/start_gui -e "s/^GUI_SESSION_PLACEHOLDER/export DISPLAY=:0/"
echo "/home/pi/scripts/rotate.sh $ADMIN_TOOLKIT_SCREEN_ROTATION" >> /home/pi/scripts/start_gui
echo 'GUI_SESSION_PLACEHOLDEFR' >> /home/pi/scripts/start_gui
echo 'GUI_SESSION_PLACEHOLDER' >> /home/pi/scripts/start_gui
elif grep -q "/home/pi/scripts/run_onepageos" /home/pi/scripts/start_gui ; then
sed -i /home/pi/scripts/start_gui -e "s/^\/home\/pi\/scripts\/run_onepageos/export DISPLAY=:0/"
echo "/home/pi/scripts/rotate.sh $ADMIN_TOOLKIT_SCREEN_ROTATION" >> /home/pi/scripts/start_gui
Expand Down
2 changes: 1 addition & 1 deletion src/modules/gui/end_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [ "${BASE_DISTRO}" == "raspbian" ] || [ "${BASE_DISTRO}" == "raspios64" ] ||
fi

# set the gui to run the main script of the GUI session
sed -i "s@GUI_SESSION_PLACEHOLDEFR@${GUI_STARTUP_SCRIPT}@g" /opt/custompios/scripts/start_gui
sed -i "s@GUI_SESSION_PLACEHOLDER@${GUI_STARTUP_SCRIPT}@g" /opt/custompios/scripts/start_gui

# Set the boot target to use a gui
systemctl set-default graphical.target
Expand Down
2 changes: 1 addition & 1 deletion src/modules/gui/filesystem/opt/scripts/start_gui
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ fi

matchbox-window-manager &

GUI_SESSION_PLACEHOLDEFR
GUI_SESSION_PLACEHOLDER

0 comments on commit ee78961

Please sign in to comment.