Skip to content

Commit

Permalink
configureseats: Only handle the waylandloginmanager if the waylandlog…
Browse files Browse the repository at this point in the history
…inmanager is running

git-svn-id: https://svn.code.sf.net/p/rebeccablackos/code@8768 b52b6941-3400-464c-9f42-43200397181c
  • Loading branch information
nerdopolis committed Aug 11, 2024
1 parent 35976b7 commit daacf42
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions rebeccablackos_files/usr/bin/configureseats
Original file line number Diff line number Diff line change
Expand Up @@ -499,13 +499,17 @@ function CommitConfigFile
#Function that sends the signal to udev and to the waylandloginmanagers to now detect the config changes that have been made
function SignalCompletion
{

$ZENITYCMD --info --text "Seat Configuration for all devices is now complete.
if [[ -e /run/waylandloginmanager ]]
then
$ZENITYCMD --info --text "Seat Configuration for all devices is now complete.
Press OK to apply all the changes. This will switch user to the loginmanager display.
This is to signal the display server to detect the new changes, and the waylandloginmanager to detect new seats.
Your sessions will NOT be terminated, but they will need to be switched back into with Switch User" --no-wrap --title="Multipointer and Seat Configuration" 2>/dev/null
else
$ZENITYCMD --info --text "Seat Configuration for all devices is now complete. You may need to restart for the changes to take effect" 2>/dev/null
fi

#Reload the new configuration into udev
udevadm control --reload-rules
Expand All @@ -521,6 +525,11 @@ Your sessions will NOT be terminated, but they will need to be switched back int
sleep 1
done

if [[ ! -e /run/waylandloginmanager ]]
then
return
fi

#Force the server to pickup the changes
waylandloginmanager --sendcommand DetectSeats
sleep 1
Expand Down

0 comments on commit daacf42

Please sign in to comment.