xdg-autostart: Fall back to default XDG variable values (#313)

* xdg-autostart: Fall back to default XDG variable values

For example, $XDG_RUNTIME_DIR might be unset in Debian 12
This commit is contained in:
Enno 2024-11-03 18:40:30 +01:00 committed by GitHub
parent f131fcbc4a
commit 368e3705df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -76,7 +76,8 @@ awful.spawn.with_shell(
'if (xrdb -query | grep -q "^awesome\\.started:\\s*true$"); then exit; fi;' ..
'xrdb -merge <<< "awesome.started:true";' ..
-- list each of your autostart commands, followed by ; inside single quotes, followed by ..
'dex --environment Awesome --autostart --search-paths "$XDG_CONFIG_DIRS/autostart:$XDG_CONFIG_HOME/autostart"' -- https://github.com/jceb/dex
'dex --environment Awesome --autostart --search-paths ' ..
'"${XDG_CONFIG_HOME:-$HOME/.config}/autostart:${XDG_CONFIG_DIRS:-/etc/xdg}/autostart";' -- https://github.com/jceb/dex
)
--]]