The new syntax for the 66 CLI introduced by 66 v0.7 broke the wayland session scripts installed via the ob-gtkgreet-sway package.
I have now updated the package accordingly.
For reference, the essential changes were:
1) For /usr/share/greetd/wayland-session
diff --git a/wayland-session b/wayland-session
index fe89715..38eb2d8 100755
--- a/wayland-session
+++ b/wayland-session
@@ -73,7 +73,7 @@ multisubstitute
# conditionally redirect program outputs
backtick -D1 -E fd_out
{
- if { s6-test -v USERSESSIONLOGDIR }
+ if { eltest -v USERSESSIONLOGDIR }
66-echo \${log_write_fd}
}
@@ -85,7 +85,7 @@ fdmove -c 2 1
# set up logging to read from pipe
background -d
{
- if -t { s6-test -v USERSESSIONLOGDIR }
+ if -t { eltest -v USERSESSIONLOGDIR }
importas -iu logdir USERSESSIONLOGDIR
execl-toc -d \${logdir}
fdmove 0 \${log_read_fd}
@@ -97,13 +97,13 @@ background -d
# Run the command line, optionally starting session services
#
emptyenv -c
-ifelse -n { s6-test -v USERSESSIONSERVICETREE }
+ifelse -n { eltest -v USERSESSIONSERVICETREE }
{
execl-cmdline -s { $@ }
}
importas tree USERSESSIONSERVICETREE
-foreground { 66-all -t \${tree} up }
+foreground { 66 tree start \${tree} }
foreground { execl-cmdline -s { $@ } }
-foreground { 66-all -t \${tree} down }
+foreground { 66 tree stop \${tree} }
EOF
2) For the gtkgreet sway config in /etc/greetd/config.obgreet.toml:
diff --git a/obgreet/sway.config b/obgreet/sway.config
index d79d376..4885548 100644
--- a/obgreet/sway.config
+++ b/obgreet/sway.config
@@ -14,8 +14,8 @@ exec "gtkgreet -l $gtkgreet_css_opts; swaymsg exit"
bindsym Ctrl+$mod+q exec swaynag \
-t warning \
-m 'What do you want to do?' \
- -b 'Poweroff' 'sudo /sbin/poweroff' \
- -b 'Reboot' 'sudo /sbin/reboot'
+ -b 'Poweroff' 'sudo 66 poweroff' \
+ -b 'Reboot' 'sudo 66 reboot'
include /etc/sway/config.d/*
include ./sway.config.d/*
Finally, to work with the seatd from the obextra repo, I had to add the obgreet
user to the seat
group:
# usermod -aG seat obgreet
The updated package should take care of all of these changes.