mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
fix: start elephant as systemd service (#3405)
This commit is contained in:
7
autostart/walker.desktop
Normal file
7
autostart/walker.desktop
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=Walker
|
||||||
|
Comment=Walker Service
|
||||||
|
Exec=walker --gapplication-service
|
||||||
|
StartupNotify=false
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
@@ -12,11 +12,10 @@ if [[ $EUID -eq 0 ]]; then
|
|||||||
# Restart services as the script owner
|
# Restart services as the script owner
|
||||||
systemd-run --uid="$SCRIPT_OWNER" --setenv=XDG_RUNTIME_DIR="/run/user/$USER_UID" \
|
systemd-run --uid="$SCRIPT_OWNER" --setenv=XDG_RUNTIME_DIR="/run/user/$USER_UID" \
|
||||||
bash -c "
|
bash -c "
|
||||||
setsid uwsm-app -- elephant &
|
systemctl --user restart elephant.service
|
||||||
setsid uwsm-app -- walker --gapplication-service &
|
systemctl --user restart app-walker@autostart.service
|
||||||
"
|
"
|
||||||
else
|
else
|
||||||
setsid uwsm-app -- elephant &
|
systemctl --user restart elephant.service
|
||||||
wait 2
|
systemctl --user restart app-walker@autostart.service
|
||||||
setsid uwsm-app -- walker --gapplication-service &
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -6,8 +6,6 @@ exec-once = uwsm-app -- swaybg -i ~/.config/omarchy/current/background -m fill
|
|||||||
exec-once = uwsm-app -- swayosd-server
|
exec-once = uwsm-app -- swayosd-server
|
||||||
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||||
exec-once = omarchy-cmd-first-run
|
exec-once = omarchy-cmd-first-run
|
||||||
exec-once = uwsm-app -- elephant
|
|
||||||
exec-once = uwsm-app -- walker --gapplication-service
|
|
||||||
|
|
||||||
# Slow app launch fix -- set systemd vars
|
# Slow app launch fix -- set systemd vars
|
||||||
exec-once = systemctl --user import-environment $(env | cut -d'=' -f 1)
|
exec-once = systemctl --user import-environment $(env | cut -d'=' -f 1)
|
||||||
|
|||||||
6
migrations/1762873545.sh
Normal file
6
migrations/1762873545.sh
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
pkill elephant
|
||||||
|
elephant service enable
|
||||||
|
systemctl --user start elephant.service
|
||||||
|
|
||||||
|
mkdir -p ~/.config/autostart/
|
||||||
|
cp $OMARCHY_PATH/autostart/walker.desktop ~/.config/autostart/
|
||||||
Reference in New Issue
Block a user