mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-05 20:28:25 +02:00
The /etc/profile.d/omarchy.sh default for OMARCHY_PATH was being clobbered
by shipped config files that re-export the variable to the old script-mode
path. In package mode, every login shell, UWSM session, and Hyprland
autostart was effectively reversing the migration. Fix:
- default/bashrc: source from $OMARCHY_PATH/default/bash/rc; default
OMARCHY_PATH to /usr/share/omarchy if not set (so the source line
works in any boot order, including non-login interactive shells).
- default/bash/envs: change 'export OMARCHY_PATH=$HOME/...' to
'export OMARCHY_PATH=${OMARCHY_PATH:-/usr/share/omarchy}' so the
profile.d default and install.sh script-mode override both win.
- config/uwsm/env: same defaulting pattern. UWSM may not source
profile.d, so the inline default still matters.
- default/hypr/autostart.lua: quickshell launched from $OMARCHY_PATH/shell
(not literal $HOME path). The bash that runs hl.exec_cmd sees
OMARCHY_PATH propagated from UWSM env.
- config/chromium-flags.conf: --load-extension hard-codes
/usr/share/omarchy/... because chromium doesn't expand env vars or
'~'. The omarchy-dev-link workflow symlinks /usr/share/omarchy to a
checkout.
- bin/omarchy-install-browser: same chromium-flag path correction for
brave-origin-beta-flags.conf.
15 lines
627 B
Lua
15 lines
627 B
Lua
hl.on("hyprland.start", function()
|
|
-- Slow app launch fix -- set systemd vars before starting session services.
|
|
hl.exec_cmd("systemctl --user import-environment $(env | cut -d'=' -f 1)")
|
|
hl.exec_cmd("dbus-update-activation-environment --systemd --all")
|
|
|
|
hl.exec_cmd("quickshell -n -p $OMARCHY_PATH/shell")
|
|
hl.exec_cmd(o.launch("fcitx5 --disable notificationitem"))
|
|
hl.exec_cmd("omarchy-first-run")
|
|
hl.exec_cmd("omarchy-powerprofiles-init")
|
|
hl.exec_cmd(o.launch("omarchy-hyprland-monitor-watch"))
|
|
|
|
-- Run post-boot hooks after startup config has loaded.
|
|
hl.exec_cmd("sleep 2 && omarchy-hook post-boot")
|
|
end)
|