[Unit] Description=Restore of the GNOME settings upon login Before=graphical-session-pre.target ConditionPathIsDirectory=%h/.config/gnome-settings [Service] Environment=FRESH_SESSION=1 Type=oneshot ExecStart=%h/.local/bin/gnome-restore [Install] WantedBy=graphical-session-pre.target