mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
It was the icon update that was hanging things
This commit is contained in:
@@ -4,21 +4,6 @@ set -e
|
|||||||
|
|
||||||
FIRST_RUN_MODE=~/.local/state/omarchy/first-run.mode
|
FIRST_RUN_MODE=~/.local/state/omarchy/first-run.mode
|
||||||
|
|
||||||
wait_for_notifications() {
|
|
||||||
# Wait up to ~3s for org.freedesktop.Notifications to appear
|
|
||||||
for _ in {1..30}; do
|
|
||||||
if gdbus call --session \
|
|
||||||
--dest org.freedesktop.DBus \
|
|
||||||
--object-path /org/freedesktop/DBus \
|
|
||||||
--method org.freedesktop.DBus.ListNames |
|
|
||||||
grep -q "org.freedesktop.Notifications"; then
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
sleep 0.1
|
|
||||||
done
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
if [[ -f "$FIRST_RUN_MODE" ]]; then
|
if [[ -f "$FIRST_RUN_MODE" ]]; then
|
||||||
rm -f "$FIRST_RUN_MODE"
|
rm -f "$FIRST_RUN_MODE"
|
||||||
|
|
||||||
@@ -27,7 +12,6 @@ if [[ -f "$FIRST_RUN_MODE" ]]; then
|
|||||||
bash "$OMARCHY_PATH/install/first-run/gnome-theme.sh"
|
bash "$OMARCHY_PATH/install/first-run/gnome-theme.sh"
|
||||||
sudo rm -f /etc/sudoers.d/first-run
|
sudo rm -f /etc/sudoers.d/first-run
|
||||||
|
|
||||||
wait_for_notifications
|
|
||||||
bash "$OMARCHY_PATH/install/first-run/wifi.sh"
|
bash "$OMARCHY_PATH/install/first-run/wifi.sh"
|
||||||
bash "$OMARCHY_PATH/install/first-run/welcome.sh"
|
bash "$OMARCHY_PATH/install/first-run/welcome.sh"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ sudo tee /etc/sudoers.d/first-run >/dev/null <<EOF
|
|||||||
Cmnd_Alias FIRST_RUN_CLEANUP = /bin/rm -f /etc/sudoers.d/first-run
|
Cmnd_Alias FIRST_RUN_CLEANUP = /bin/rm -f /etc/sudoers.d/first-run
|
||||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/ufw
|
$USER ALL=(ALL) NOPASSWD: /usr/bin/ufw
|
||||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/ufw-docker
|
$USER ALL=(ALL) NOPASSWD: /usr/bin/ufw-docker
|
||||||
|
$USER ALL=(ALL) NOPASSWD: /usr/bin/gtk-update-icon-cache
|
||||||
$USER ALL=(ALL) NOPASSWD: FIRST_RUN_CLEANUP
|
$USER ALL=(ALL) NOPASSWD: FIRST_RUN_CLEANUP
|
||||||
EOF
|
EOF
|
||||||
sudo chmod 440 /etc/sudoers.d/first-run
|
sudo chmod 440 /etc/sudoers.d/first-run
|
||||||
|
|||||||
Reference in New Issue
Block a user