Make dev unlink reset Omarchy path defensively
This commit is contained in:
@@ -4,8 +4,9 @@
|
||||
# /usr/share/uwsm/env.d/10-omarchy (Hyprland session via uwsm)
|
||||
# /usr/share/omarchy/default/bash/envs (bash rc chain; SSH/non-login)
|
||||
|
||||
# /etc/omarchy.conf is written by omarchy-dev-link. When absent, force the
|
||||
# packaged default instead of preserving a stale inherited value.
|
||||
# /etc/omarchy.conf is written by omarchy-dev-link and reset by
|
||||
# omarchy-dev-unlink. When absent, force the packaged default instead of
|
||||
# preserving a stale inherited value.
|
||||
if [ -f /etc/omarchy.conf ]; then
|
||||
. /etc/omarchy.conf
|
||||
: "${OMARCHY_PATH:=/usr/share/omarchy}"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
local home = os.getenv("HOME")
|
||||
|
||||
-- /etc/omarchy.conf wins over process env so dev-link survives stale sessions.
|
||||
-- /etc/omarchy.conf wins over process env so dev-link/unlink survives stale sessions.
|
||||
local function read_dev_link_omarchy_path()
|
||||
local f = io.open("/etc/omarchy.conf", "r")
|
||||
if not f then return nil end
|
||||
|
||||
Reference in New Issue
Block a user