secondarymenu-contains-showdetails=true
show-appmenu=false
show-apps-icon-file=''
-stockgs-keep-dash=false
+stockgs-keep-dash=true
stockgs-keep-top-panel=false
stockgs-panelbtn-click-only=false
taskbar-locked=false
[daemon]
# Uncomment the line below to force the login screen to use Xorg
-#WaylandEnable=false
+WaylandEnable=false
# Auto Login Live users
AutomaticLogin=%USERNAME%
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE policyconfig PUBLIC
+ "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
+ "https://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
+
+
+<policyconfig>
+
+ <action id="org.freedesktop.login1.power-off-multiple-sessions">
+ <description>Shutdown the system when multiple users are logged in</description>
+ <message>System policy prevents shutting down the system when other users are logged in</message>
+ <defaults>
+ <allow_inactive>yes</allow_inactive>
+ <allow_active>yes</allow_active>
+ </defaults>
+ </action>
+
+</policyconfig>
\ No newline at end of file
# Set autologin session
mkdir -p "/var/lib/AccountsService/users/"
-echo "XSession=gnome-xorg" > "/var/lib/AccountsService/users/${username}"
-echo -e "\nremove /var/lib/AccountsService/users/${username}" >> "/usr/share/calamares/final-process\n"
+remove "/var/lib/AccountsService/users/${username}"
+cat > "/var/lib/AccountsService/users/${username}" << "EOF"
+[User]
+Language=
+Session=gnome-xorg
+XSession=gnome-xorg
+Icon=/home/${username}/.face
+SystemAccount=false
+EOF
# Remove file for japanese input
if [[ ! "${language}" = "ja" ]]; then
remove /etc/mkinitcpio-archiso.conf
remove /etc/initcpio
-if [[ -f "/etc/systemd/journald.conf" ]]; then
- sed -i 's/Storage=volatile/#Storage=volatile/g' "/etc/systemd/journald.conf"
-fi
+remove /etc/systemd/journald.conf.d/volatile-storage.conf
+remove /airootfs.any/etc/systemd/logind.conf.d/do-not-suspend.conf
remove /etc/udev/rules.d/81-dhcpcd.rules
-remove /etc/systemd/system/{choose-mirror.service,etc-pacman.d-gnupg.mount,getty@tty1.service.d}
+remove /etc/systemd/system/{choose-mirror.service,getty@tty1.service.d}
# Disabled auto login
-sed -i "s/^AutomaticLogin/#AutomaticLogin/g" "/etc/gdm/gdm.conf"
+sed -i "s/Automatic*/#Automatic/g" "/etc/gdm/custom.conf"
+
+
+# Remove dconf for live environment
+remove "/etc/dconf/db/local.d/02-live-"*
+
+
+# Update system datebase
+dconf update