From 00b8228c01c3743e52b1b14162d2e565e5f16bd3 Mon Sep 17 00:00:00 2001 From: Enno Date: Thu, 1 Aug 2024 07:28:16 +0200 Subject: [PATCH 1/2] xdg-autostart: Fall back to default XDG variable values For example, $XDG_RUNTIME_DIR might be unset in Debian 12 --- rc.lua.template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rc.lua.template b/rc.lua.template index 3b4c7bc..3765c3a 100644 --- a/rc.lua.template +++ b/rc.lua.template @@ -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 ) --]] From 250bb233ed0eba8394ca08bdfbdf3c48c5fca85f Mon Sep 17 00:00:00 2001 From: Enno Date: Sat, 12 Oct 2024 15:52:11 +0200 Subject: [PATCH 2/2] remove spurious parenthesis as observered by @lcpz in https://github.com/lcpz/awesome-copycats/pull/313/files#r1797683276 --- rc.lua.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc.lua.template b/rc.lua.template index 3765c3a..6370d0e 100644 --- a/rc.lua.template +++ b/rc.lua.template @@ -77,7 +77,7 @@ awful.spawn.with_shell( '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_HOME:-$HOME/.config}/autostart:${XDG_CONFIG_DIRS:-/etc/xdg}/autostart";') -- https://github.com/jceb/dex + '"${XDG_CONFIG_HOME:-$HOME/.config}/autostart:${XDG_CONFIG_DIRS:-/etc/xdg}/autostart";' -- https://github.com/jceb/dex ) --]]